src/Ox/HoardBundle/Resources/views/search/search.html.twig line 1

Open in your IDE?
  1. <div id="content" class="row"> <!-- page content -->
  2.     {{ form_start(search_form) }}
  3.     {{ form_errors(search_form) }}
  4. {% form_theme search_form '@OxHoardBundle/form/search_fields.html.twig' %}
  5.     <div class="row">
  6.         <div class="col-md-6 marginTop">
  7.             <div id="search-hoard-tab" class="tabs">
  8.                 <ul>
  9.                     <li><a href="#search-hoard-tab-1">Hoard</a></li>
  10.                 </ul>
  11.                 <div id="search-hoard-tab-1">
  12.                     <div class="hoardlistview-6col">
  13.                         <div class="datalabel">Discovery year</div>
  14.                         <div id="hoard-discovery-year-range" class="data year-range-input">
  15.                             <div>
  16.                                 <input type="text" id="ox_hs_hoardDiscoveryYearRangeStart" name="ox_hs[hoardDiscoveryYearRangeStart]" class="form-control col-xs-2" value="{{ hoardDiscoveryYearRangeStart }}" style="width: 80px;">
  17.                             </div>
  18.                             <div class="year-range-input-delimiter">-</div>
  19.                             <div>
  20.                                 <input type="text" id="ox_hs_hoardDiscoveryYearRangeEnd" name="ox_hs[hoardDiscoveryYearRangeEnd]" class="form-control" value="{{ hoardDiscoveryYearRangeEnd }}" style="width: 80px;">
  21.                             </div>
  22.                         </div>
  23.                         <div id="hoard-discovery-year-slider"></div>
  24.                         <div><br><br></div>
  25.                         <div class="datalabel">Terminal year</div>
  26.                         <div id="hoard-terminal-year-range" class="data year-range-input">
  27.                           <div class="hoardlistview-2col">
  28.                               <input type="text" id="ox_hs_hoardTerminalYearRangeStart" name="ox_hs[hoardTerminalYearRangeStart]" class="form-control col-xs-2" value="{{ hoardTerminalYearRangeStart }}" style="width: 80px;">
  29.                           </div>
  30.                           <div class="year-range-input-delimiter">-</div>
  31.                           <div class="hoardlistview-2col">
  32.                               <input type="text" id="ox_hs_hoardTerminalYearRangeEnd" name="ox_hs[hoardTerminalYearRangeEnd]" class="form-control" value="{{ hoardTerminalYearRangeEnd }}" style="width: 80px;">
  33.                           </div>
  34.                         </div>
  35.                         
  36.                         <div id="hoard-terminal-year-slider"></div>
  37.                         <div><br><br></div>
  38.                         <div class="datalabel">Opening year</div>
  39.                         <div id="hoard-opening-year-range" class="data year-range-input">
  40.                           <div class="hoardlistview-2col">
  41.                               <input type="text" id="ox_hs_hoardOpeningYearRangeStart" name="ox_hs[hoardOpeningYearRangeStart]" class="form-control col-xs-2" value="{{ hoardOpeningYearRangeStart }}" style="width: 80px;">
  42.                           </div>
  43.                           <div class="year-range-input-delimiter">-</div>
  44.                           <div class="hoardlistview-2col">
  45.                               <input type="text" id="ox_hs_hoardOpeningYearRangeEnd" name="ox_hs[hoardOpeningYearRangeEnd]" class="form-control" value="{{ hoardOpeningYearRangeEnd }}" style="width: 80px;">
  46.                           </div>
  47.                         </div>
  48.                         
  49.                         <div id="hoard-opening-year-slider"></div>
  50.                         <div><br><br></div>
  51.                         <div class="datalabel">Hoard name</div>{{ form_widget(search_form.hoardFindSpotName) }}
  52.                         <div class="datalabel">Data type</div>{{ form_widget(search_form.hoardType) }}
  53.                         <br>
  54.                         <div class="{% if not is_authenticated %}hidden{% endif %}">
  55.                             <div class="datalabel">Address</div>{{ form_widget(search_form.hoardAddress) }}
  56.                         </div>
  57.                         <div class="datalabel">City</div>{{ form_widget(search_form.hoardCity) }}
  58.                         <div class="datalabel">County</div>{{ form_widget(search_form.hoardCounty) }}
  59.                         <div class="datalabel">Region</div>{{ form_widget(search_form.hoardRegion) }}
  60.                         <div class="datalabel">Country</div>{{ form_widget(search_form.hoardCountries) }}
  61.                         <br>
  62.                         <div class="datalabel">Roman province</div>{{ form_widget(search_form.hoardProvince)}}
  63.                         <div class="datalabel">Ancient place</div>{{ form_widget(search_form.hoardAncientPlace)}}
  64.                         {# <div class="datalabel">Location detail</div>{{ form_widget(search_form.hoardFindSpotLocationDetail)}} #}
  65.                         {# <div class="datalabel">Comment</div>{{ form_widget(search_form.hoardFindSpotComment)}} #}
  66.                         <div class="{% if not is_authenticated %}hidden{% endif %}">
  67.                             <div class="datalabel">Internal note</div>{{ form_widget(search_form.hoardInternalNote)}}
  68.                         </div>
  69.                         <div class="datalabel">Reference</div>{{ form_widget(search_form.hoardReference) }}
  70.                         <div class="datalabel">Reference value</div>{{ form_widget(search_form.hoardReference_string) }}
  71.                         {# <div class="datalabel">Discovery method</div>{{ form_widget(search_form.hoardDiscoveryMethod) }} #}
  72.                         {# <div class="datalabel">Land use</div>{{ form_widget(search_form.hoardDiscoveryLandUse) }} #}
  73.                         {# <div class="datalabel">Disposition</div>{{ form_widget(search_form.hoardOwner) }} #}
  74.                         {# <div class="datalabel">Finder</div>{{ form_widget(search_form.hoardFinder) }} #}
  75.                         <div class="datalabel">Coin-level data</div>{{ form_widget(search_form.hoardCoinLevelData) }}
  76.                         <div class="datalabel">Closing reign from</div>{{ form_widget(search_form.hoardClosingReign1) }}
  77.                         <div class="datalabel">Closing reign to</div>{{ form_widget(search_form.hoardClosingReign2) }}
  78.                         <div class="datalabel">Numismatic rating</div>{{ form_widget(search_form.hoardRating)}}
  79.                         <div class="datalabel">Context rating</div>{{ form_widget(search_form.hoardContextualRating) }}
  80.                         <div class="datalabel">Findspot rating</div>{{ form_widget(search_form.hoardFindSpotRating) }}
  81.                         {# <<div class="datalabel">Date of context</div>
  82.                         div id="hoard-archaeology-context-date-range" class="data year-range-input">
  83.                             <div>
  84.                                 <input type="text" id="ox_hs_hoardArchaeologyContextDateRangeStart" name="ox_hs[hoardArchaeologyContextDateRangeStart]" class="form-control col-xs-2" value="{{ hoardArchaeologyContextDateRangeStart }}" style="width: 80px;">
  85.                             </div>
  86.                             <div class="year-range-input-delimiter">-</div>
  87.                             <div>
  88.                                 <input type="text" id="ox_hs_hoardArchaeologyContextDateRangeEnd" name="ox_hs[hoardArchaeologyContextDateRangeEnd]" class="form-control" value="{{ hoardArchaeologyContextDateRangeEnd }}" style="width: 80px;">
  89.                             </div>
  90.                         </div>
  91.                         <div id="hoard-archaeology-context-date-slider"></div> #}
  92.                         <div><br><br></div>
  93.                         {# <div class="datalabel">Associated feature</div>{{ form_widget(search_form.hoardArchaeologyAssociatedFeatures) }} #}
  94.                         {# <div class="datalabel">Recovery method</div>{{ form_widget(search_form.hoardArchaeologyRecoveryMethod) }} #}
  95.                         <div class="datalabel">Site class</div>{{ form_widget(search_form.hoardArchaeologySiteContext) }}
  96.                         <div class="datalabel">Context</div>{{ form_widget(search_form.hoardArchaeologySiteContextDetails) }}
  97.                         <div class="datalabel">Depositional context</div>{{ form_widget(search_form.hoardArchaeologyContextNatures) }}
  98.                         <br>
  99.                         {# <div class="datalabel">Natural feature</div>{{ form_widget(search_form.hoardArchaeologyNaturalFeatures) }} #}
  100.                         {# <div class="datalabel">Site comment</div>{{ form_widget(search_form.hoardArchaeologySiteComment) }} #}
  101.                         {# <div class="datalabel">Context period</div>{{ form_widget(search_form.hoardArchaeologyPeriod) }} #}
  102.                         {# <div class="datalabel">Context end period</div>{{ form_widget(search_form.hoardArchaeologyEndPeriod) }} #}
  103.                         <div class="datalabel">Summary text</div>{{ form_widget(search_form.hoardComment)}}
  104.                         <br>
  105.                         <div class="{% if not is_authenticated %}hidden{% endif %}">
  106.                             <div class="datalabel">Credit text</div>{{ form_widget(search_form.hoardCredit)}}
  107.                             <div class="datalabel">Limit to hoards with images</div>{{ form_widget(search_form.hoardHasImage) }}
  108.                         </div>
  109.                         <br>
  110.                         {# <div class="{% if not is_authenticated %}hidden{% endif %}">
  111.                             {% if search_form.hoardHideLocation is defined %}
  112.                                 <div class="datalabel">Hidden location</div>{{ form_widget(search_form.hoardHideLocation) }}
  113.                             {% endif %}
  114.                             {% if search_form.hoardHideWhat is defined %}
  115.                                 <div class="datalabel">Hide what</div>{{ form_widget(search_form.hoardHideWhat)}}
  116.                             {% endif %}
  117.                             {% if search_form.hoardHideFrom is defined %}
  118.                                 <div class="datalabel">Hide from</div>{{ form_widget(search_form.hoardHideFrom)}}
  119.                             {% endif %}
  120.                         </div> #}
  121.                         {% if search_form.hoardValidatedByUser is defined %}
  122.                             <div class="datalabel">Hoard data validated by contributor</div>{{ form_widget(search_form.hoardValidatedByUser) }}
  123.                         {% endif %}
  124.                         {% if search_form.hoardValidatedByAdmin is defined %}
  125.                             <div class="datalabel">Hoard data validated by administrator</div>{{ form_widget(search_form.hoardValidatedByAdmin) }}
  126.                         {% endif %}
  127.                         {% if search_form.showOnlyUsersHoards is defined %}
  128.                             <div class="datalabel">Show only my hoards (created or last modified by me)</div>{{ form_widget(search_form.showOnlyUsersHoards) }}
  129.                         {% endif %}
  130.                     </div>
  131.                 </div>
  132.             </div>
  133.         </div>
  134.         <div class="col-md-6 marginTop">
  135.             <div id="search-coins-tab" class="tabs">
  136.                 <ul>
  137.                     <li><a href="#search-coins-tab-1">Coins</a></li>
  138.                 </ul>
  139.                 <div id="search-coins-tab-1">
  140.                     <div class="hoardlistview-6col">
  141.                         <div class="datalabel">Year</div>
  142.                         <div id="coin-year-range" class="data year-range-input">
  143.                           <div class="hoardlistview-2col">
  144.                               <input type="text" id="ox_hs_coinYearRangeStart" name="ox_hs[coinYearRangeStart]" class="form-control col-xs-2" value="{{ coinYearRangeStart }}" style="width: 80px;">
  145.                           </div>
  146.                           <div class="year-range-input-delimiter">-</div>
  147.                           <div class="hoardlistview-2col">
  148.                               <input type="text" id="ox_hs_coinYearRangeEnd" name="ox_hs[coinYearRangeEnd]" class="form-control" value="{{ coinYearRangeEnd }}" style="width: 80px;">
  149.                           </div>
  150.                         </div>
  151.                         
  152.                         <div id="coin-year-slider"></div>
  153.                         <div><br><br></div>
  154.                         <div class="datalabel">Number of coins</div>
  155.                         <div id="coin-count-range" class="data year-range-input">
  156.                             <div class="hoardlistview-2col">
  157.                                 <input type="text" id="ox_hs_hoardCoinCountMin" name="ox_hs[hoardCoinCountMin]" class="form-control col-xs-2" value="{{ hoardCoinCountMin }}" style="width: 80px;">
  158.                             </div>
  159.                             <div class="year-range-input-delimiter">-</div>
  160.                             <div class="hoardlistview-2col">
  161.                                 <input type="text" id="ox_hs_hoardCoinCountMax" name="ox_hs[hoardCoinCountMax]" class="form-control" value="{{ hoardCoinCountMax }}" style="width: 80px;">
  162.                             </div> 
  163.                         </div>
  164.                         <div id="coin-count-slider"></div>
  165.                         <div><br><br></div>
  166.                         <div class="datalabel">Period</div>{{ form_widget(search_form.coinPeriod) }}
  167.                         <div class="datalabel">Person</div>{{ form_widget(search_form.coinPersons) }}
  168.                         <div class="datalabel">Reign</div>{{ form_widget(search_form.coinReigns) }}
  169.                         <div class="datalabel">Denomination</div>{{ form_widget(search_form.coinDenominations) }}
  170.                         <div class="datalabel">Material</div>{{ form_widget(search_form.coinMaterials) }}
  171.                         <div class="datalabel">Mint</div>{{ form_widget(search_form.coinMints) }}
  172.                         {# <div class="datalabel">Issue</div>{{ form_widget(search_form.coinIssue) }} #}
  173.                         <div class="datalabel">Aspect</div>{{ form_widget(search_form.coinAspects) }}
  174.                         <div class="{% if not is_authenticated %}hidden{% endif %}">
  175.                             <div class="datalabel">Condition</div>{{ form_widget(search_form.coinCondition) }}
  176.                         </div>
  177.                         <br>
  178.                         <div class="datalabel">Reference</div>{{ form_widget(search_form.coinReference) }}
  179.                         <div class="datalabel" data-toggle="tooltip" data-placement="right"
  180.                             title="Wildcards * and ? are supported.<br><br>
  181.                                     To perform a single character wildcard search use the '?' symbol.<br><br>
  182.                                     To perform a multiple character wildcard search use the '*' symbol.">
  183.                             Reference value<sup>*</sup></div>{{ form_widget(search_form.coinReferenceString) }}
  184.                         <br>
  185.                         <div class="datalabel">Imitation</div>{{ form_widget(search_form.coinImitation) }}
  186.                         <div class="{% if not is_authenticated %}hidden{% endif %}">
  187.                             <div class="datalabel">Limit to coins that have images</div>{{ form_widget(search_form.coinHasImage) }}
  188.                             <div class="datalabel">Coin is flagged 'to check'</div>{{ form_widget(search_form.coinToCheck) }}
  189.                         </div>
  190.                         {% if search_form.hoardCoinDataValidatedByUser is defined %}
  191.                             <div class="datalabel">Coin data validated by contributor</div>{{ form_widget(search_form.hoardCoinDataValidatedByUser) }}
  192.                         {% endif %}
  193.                         {% if search_form.hoardCoinDataValidatedByAdmin is defined %}
  194.                             <div class="datalabel">Coin data validated by administrator</div>{{ form_widget(search_form.hoardCoinDataValidatedByAdmin) }}
  195.                         {% endif %}
  196.                     </div>
  197.                 </div>
  198.             </div>
  199.         </div>
  200.         <div class="col-md-6 marginTop">
  201.             <div id="search-container-tab" class="tabs">
  202.                 <ul>
  203.                     <li><a href="#search-container-tab-1">Container</a></li>
  204.                 </ul>
  205.                 <div id="search-container-tab-1">
  206.                     <div class="hoardlistview-6col">
  207.                         {# <div class="datalabel">Container</div>{{ form_widget(search_form.hoardContainerString) }} #}
  208.                         {# <div class="datalabel">Comment</div>{{ form_widget(search_form.hoardContainerComment) }} #}
  209.                         <div class="datalabel">Container present</div>{{ form_widget(search_form.hoardHasContainer) }}
  210.                         <div class="{% if not is_authenticated %}hidden{% endif %}">
  211.                             <div class="datalabel">Container with image present</div>{{ form_widget(search_form.hoardContainerHasImage) }}
  212.                         </div>
  213.                         <div class="datalabel">Material</div>{{ form_widget(search_form.hoardContainerMaterials) }}
  214.                         <div class="datalabel">Form</div>{{ form_widget(search_form.hoardContainerForms) }}
  215.                     </div>
  216.                 </div>
  217.             </div>
  218.         </div>
  219.         <div class="col-md-6 marginTop">
  220.             <div id="search-object-tab" class="tabs">
  221.                 <ul>
  222.                     <li><a href="#search-object-tab-1">Object</a></li>
  223.                 </ul>
  224.                 <div id="search-object-tab-1">
  225.                     <div class="hoardlistview-6col">
  226.                         {# <div class="datalabel">Comment</div>{{ form_widget(search_form.hoardObjectComment) }} #}
  227.                         <div class="datalabel">Object present</div>{{ form_widget(search_form.hoardHasObject) }}
  228.                         <div class="{% if not is_authenticated %}hidden{% endif %}">
  229.                             <div class="datalabel">Object with image present</div>{{ form_widget(search_form.hoardHasObjectWithImage) }}
  230.                         </div>
  231.                         <div class="datalabel">Object Type</div>{{ form_widget(search_form.hoardObjectType) }}
  232.                         <div class="datalabel">Material</div>{{ form_widget(search_form.hoardObjectMaterials) }}
  233.                     </div>
  234.                 </div>
  235.             </div>
  236.         </div>
  237.     </div>
  238.     {# Hidden fields for search_hoard.js to write values into when user clicks pagination or sort by links #}
  239.     <input type="hidden" name="page" value="1">
  240.     <input type="hidden" name="sort" value="{{current_sort}}">
  241.     <input type="hidden" name="direction" value="{{current_sort_direction}}">
  242.     <input type="hidden" name="format" value="">
  243.     <input type="hidden" name="search_type" value="{{search_type}}">
  244.     {{ form_end(search_form) }}
  245.     <a class="btn btn-default pull-right" href="{{ path('hoard') }}">Reset Search Fields</a>
  246. </div>