<div id="content" class="row"> <!-- page content -->
{{ form_start(search_form) }}
{{ form_errors(search_form) }}
{% form_theme search_form '@OxHoardBundle/form/search_fields.html.twig' %}
<div class="row">
<div class="col-md-6 marginTop">
<div id="search-hoard-tab" class="tabs">
<ul>
<li><a href="#search-hoard-tab-1">Hoard</a></li>
</ul>
<div id="search-hoard-tab-1">
<div class="hoardlistview-6col">
<div class="datalabel">Discovery year</div>
<div id="hoard-discovery-year-range" class="data year-range-input">
<div>
<input type="text" id="ox_hs_hoardDiscoveryYearRangeStart" name="ox_hs[hoardDiscoveryYearRangeStart]" class="form-control col-xs-2" value="{{ hoardDiscoveryYearRangeStart }}" style="width: 80px;">
</div>
<div class="year-range-input-delimiter">-</div>
<div>
<input type="text" id="ox_hs_hoardDiscoveryYearRangeEnd" name="ox_hs[hoardDiscoveryYearRangeEnd]" class="form-control" value="{{ hoardDiscoveryYearRangeEnd }}" style="width: 80px;">
</div>
</div>
<div id="hoard-discovery-year-slider"></div>
<div><br><br></div>
<div class="datalabel">Terminal year</div>
<div id="hoard-terminal-year-range" class="data year-range-input">
<div class="hoardlistview-2col">
<input type="text" id="ox_hs_hoardTerminalYearRangeStart" name="ox_hs[hoardTerminalYearRangeStart]" class="form-control col-xs-2" value="{{ hoardTerminalYearRangeStart }}" style="width: 80px;">
</div>
<div class="year-range-input-delimiter">-</div>
<div class="hoardlistview-2col">
<input type="text" id="ox_hs_hoardTerminalYearRangeEnd" name="ox_hs[hoardTerminalYearRangeEnd]" class="form-control" value="{{ hoardTerminalYearRangeEnd }}" style="width: 80px;">
</div>
</div>
<div id="hoard-terminal-year-slider"></div>
<div><br><br></div>
<div class="datalabel">Opening year</div>
<div id="hoard-opening-year-range" class="data year-range-input">
<div class="hoardlistview-2col">
<input type="text" id="ox_hs_hoardOpeningYearRangeStart" name="ox_hs[hoardOpeningYearRangeStart]" class="form-control col-xs-2" value="{{ hoardOpeningYearRangeStart }}" style="width: 80px;">
</div>
<div class="year-range-input-delimiter">-</div>
<div class="hoardlistview-2col">
<input type="text" id="ox_hs_hoardOpeningYearRangeEnd" name="ox_hs[hoardOpeningYearRangeEnd]" class="form-control" value="{{ hoardOpeningYearRangeEnd }}" style="width: 80px;">
</div>
</div>
<div id="hoard-opening-year-slider"></div>
<div><br><br></div>
<div class="datalabel">Hoard name</div>{{ form_widget(search_form.hoardFindSpotName) }}
<div class="datalabel">Data type</div>{{ form_widget(search_form.hoardType) }}
<br>
<div class="{% if not is_authenticated %}hidden{% endif %}">
<div class="datalabel">Address</div>{{ form_widget(search_form.hoardAddress) }}
</div>
<div class="datalabel">City</div>{{ form_widget(search_form.hoardCity) }}
<div class="datalabel">County</div>{{ form_widget(search_form.hoardCounty) }}
<div class="datalabel">Region</div>{{ form_widget(search_form.hoardRegion) }}
<div class="datalabel">Country</div>{{ form_widget(search_form.hoardCountries) }}
<br>
<div class="datalabel">Roman province</div>{{ form_widget(search_form.hoardProvince)}}
<div class="datalabel">Ancient place</div>{{ form_widget(search_form.hoardAncientPlace)}}
{# <div class="datalabel">Location detail</div>{{ form_widget(search_form.hoardFindSpotLocationDetail)}} #}
{# <div class="datalabel">Comment</div>{{ form_widget(search_form.hoardFindSpotComment)}} #}
<div class="{% if not is_authenticated %}hidden{% endif %}">
<div class="datalabel">Internal note</div>{{ form_widget(search_form.hoardInternalNote)}}
</div>
<div class="datalabel">Reference</div>{{ form_widget(search_form.hoardReference) }}
<div class="datalabel">Reference value</div>{{ form_widget(search_form.hoardReference_string) }}
{# <div class="datalabel">Discovery method</div>{{ form_widget(search_form.hoardDiscoveryMethod) }} #}
{# <div class="datalabel">Land use</div>{{ form_widget(search_form.hoardDiscoveryLandUse) }} #}
{# <div class="datalabel">Disposition</div>{{ form_widget(search_form.hoardOwner) }} #}
{# <div class="datalabel">Finder</div>{{ form_widget(search_form.hoardFinder) }} #}
<div class="datalabel">Coin-level data</div>{{ form_widget(search_form.hoardCoinLevelData) }}
<div class="datalabel">Closing reign from</div>{{ form_widget(search_form.hoardClosingReign1) }}
<div class="datalabel">Closing reign to</div>{{ form_widget(search_form.hoardClosingReign2) }}
<div class="datalabel">Numismatic rating</div>{{ form_widget(search_form.hoardRating)}}
<div class="datalabel">Context rating</div>{{ form_widget(search_form.hoardContextualRating) }}
<div class="datalabel">Findspot rating</div>{{ form_widget(search_form.hoardFindSpotRating) }}
{# <<div class="datalabel">Date of context</div>
div id="hoard-archaeology-context-date-range" class="data year-range-input">
<div>
<input type="text" id="ox_hs_hoardArchaeologyContextDateRangeStart" name="ox_hs[hoardArchaeologyContextDateRangeStart]" class="form-control col-xs-2" value="{{ hoardArchaeologyContextDateRangeStart }}" style="width: 80px;">
</div>
<div class="year-range-input-delimiter">-</div>
<div>
<input type="text" id="ox_hs_hoardArchaeologyContextDateRangeEnd" name="ox_hs[hoardArchaeologyContextDateRangeEnd]" class="form-control" value="{{ hoardArchaeologyContextDateRangeEnd }}" style="width: 80px;">
</div>
</div>
<div id="hoard-archaeology-context-date-slider"></div> #}
<div><br><br></div>
{# <div class="datalabel">Associated feature</div>{{ form_widget(search_form.hoardArchaeologyAssociatedFeatures) }} #}
{# <div class="datalabel">Recovery method</div>{{ form_widget(search_form.hoardArchaeologyRecoveryMethod) }} #}
<div class="datalabel">Site class</div>{{ form_widget(search_form.hoardArchaeologySiteContext) }}
<div class="datalabel">Context</div>{{ form_widget(search_form.hoardArchaeologySiteContextDetails) }}
<div class="datalabel">Depositional context</div>{{ form_widget(search_form.hoardArchaeologyContextNatures) }}
<br>
{# <div class="datalabel">Natural feature</div>{{ form_widget(search_form.hoardArchaeologyNaturalFeatures) }} #}
{# <div class="datalabel">Site comment</div>{{ form_widget(search_form.hoardArchaeologySiteComment) }} #}
{# <div class="datalabel">Context period</div>{{ form_widget(search_form.hoardArchaeologyPeriod) }} #}
{# <div class="datalabel">Context end period</div>{{ form_widget(search_form.hoardArchaeologyEndPeriod) }} #}
<div class="datalabel">Summary text</div>{{ form_widget(search_form.hoardComment)}}
<br>
<div class="{% if not is_authenticated %}hidden{% endif %}">
<div class="datalabel">Credit text</div>{{ form_widget(search_form.hoardCredit)}}
<div class="datalabel">Limit to hoards with images</div>{{ form_widget(search_form.hoardHasImage) }}
</div>
<br>
{# <div class="{% if not is_authenticated %}hidden{% endif %}">
{% if search_form.hoardHideLocation is defined %}
<div class="datalabel">Hidden location</div>{{ form_widget(search_form.hoardHideLocation) }}
{% endif %}
{% if search_form.hoardHideWhat is defined %}
<div class="datalabel">Hide what</div>{{ form_widget(search_form.hoardHideWhat)}}
{% endif %}
{% if search_form.hoardHideFrom is defined %}
<div class="datalabel">Hide from</div>{{ form_widget(search_form.hoardHideFrom)}}
{% endif %}
</div> #}
{% if search_form.hoardValidatedByUser is defined %}
<div class="datalabel">Hoard data validated by contributor</div>{{ form_widget(search_form.hoardValidatedByUser) }}
{% endif %}
{% if search_form.hoardValidatedByAdmin is defined %}
<div class="datalabel">Hoard data validated by administrator</div>{{ form_widget(search_form.hoardValidatedByAdmin) }}
{% endif %}
{% if search_form.showOnlyUsersHoards is defined %}
<div class="datalabel">Show only my hoards (created or last modified by me)</div>{{ form_widget(search_form.showOnlyUsersHoards) }}
{% endif %}
</div>
</div>
</div>
</div>
<div class="col-md-6 marginTop">
<div id="search-coins-tab" class="tabs">
<ul>
<li><a href="#search-coins-tab-1">Coins</a></li>
</ul>
<div id="search-coins-tab-1">
<div class="hoardlistview-6col">
<div class="datalabel">Year</div>
<div id="coin-year-range" class="data year-range-input">
<div class="hoardlistview-2col">
<input type="text" id="ox_hs_coinYearRangeStart" name="ox_hs[coinYearRangeStart]" class="form-control col-xs-2" value="{{ coinYearRangeStart }}" style="width: 80px;">
</div>
<div class="year-range-input-delimiter">-</div>
<div class="hoardlistview-2col">
<input type="text" id="ox_hs_coinYearRangeEnd" name="ox_hs[coinYearRangeEnd]" class="form-control" value="{{ coinYearRangeEnd }}" style="width: 80px;">
</div>
</div>
<div id="coin-year-slider"></div>
<div><br><br></div>
<div class="datalabel">Number of coins</div>
<div id="coin-count-range" class="data year-range-input">
<div class="hoardlistview-2col">
<input type="text" id="ox_hs_hoardCoinCountMin" name="ox_hs[hoardCoinCountMin]" class="form-control col-xs-2" value="{{ hoardCoinCountMin }}" style="width: 80px;">
</div>
<div class="year-range-input-delimiter">-</div>
<div class="hoardlistview-2col">
<input type="text" id="ox_hs_hoardCoinCountMax" name="ox_hs[hoardCoinCountMax]" class="form-control" value="{{ hoardCoinCountMax }}" style="width: 80px;">
</div>
</div>
<div id="coin-count-slider"></div>
<div><br><br></div>
<div class="datalabel">Period</div>{{ form_widget(search_form.coinPeriod) }}
<div class="datalabel">Person</div>{{ form_widget(search_form.coinPersons) }}
<div class="datalabel">Reign</div>{{ form_widget(search_form.coinReigns) }}
<div class="datalabel">Denomination</div>{{ form_widget(search_form.coinDenominations) }}
<div class="datalabel">Material</div>{{ form_widget(search_form.coinMaterials) }}
<div class="datalabel">Mint</div>{{ form_widget(search_form.coinMints) }}
{# <div class="datalabel">Issue</div>{{ form_widget(search_form.coinIssue) }} #}
<div class="datalabel">Aspect</div>{{ form_widget(search_form.coinAspects) }}
<div class="{% if not is_authenticated %}hidden{% endif %}">
<div class="datalabel">Condition</div>{{ form_widget(search_form.coinCondition) }}
</div>
<br>
<div class="datalabel">Reference</div>{{ form_widget(search_form.coinReference) }}
<div class="datalabel" data-toggle="tooltip" data-placement="right"
title="Wildcards * and ? are supported.<br><br>
To perform a single character wildcard search use the '?' symbol.<br><br>
To perform a multiple character wildcard search use the '*' symbol.">
Reference value<sup>*</sup></div>{{ form_widget(search_form.coinReferenceString) }}
<br>
<div class="datalabel">Imitation</div>{{ form_widget(search_form.coinImitation) }}
<div class="{% if not is_authenticated %}hidden{% endif %}">
<div class="datalabel">Limit to coins that have images</div>{{ form_widget(search_form.coinHasImage) }}
<div class="datalabel">Coin is flagged 'to check'</div>{{ form_widget(search_form.coinToCheck) }}
</div>
{% if search_form.hoardCoinDataValidatedByUser is defined %}
<div class="datalabel">Coin data validated by contributor</div>{{ form_widget(search_form.hoardCoinDataValidatedByUser) }}
{% endif %}
{% if search_form.hoardCoinDataValidatedByAdmin is defined %}
<div class="datalabel">Coin data validated by administrator</div>{{ form_widget(search_form.hoardCoinDataValidatedByAdmin) }}
{% endif %}
</div>
</div>
</div>
</div>
<div class="col-md-6 marginTop">
<div id="search-container-tab" class="tabs">
<ul>
<li><a href="#search-container-tab-1">Container</a></li>
</ul>
<div id="search-container-tab-1">
<div class="hoardlistview-6col">
{# <div class="datalabel">Container</div>{{ form_widget(search_form.hoardContainerString) }} #}
{# <div class="datalabel">Comment</div>{{ form_widget(search_form.hoardContainerComment) }} #}
<div class="datalabel">Container present</div>{{ form_widget(search_form.hoardHasContainer) }}
<div class="{% if not is_authenticated %}hidden{% endif %}">
<div class="datalabel">Container with image present</div>{{ form_widget(search_form.hoardContainerHasImage) }}
</div>
<div class="datalabel">Material</div>{{ form_widget(search_form.hoardContainerMaterials) }}
<div class="datalabel">Form</div>{{ form_widget(search_form.hoardContainerForms) }}
</div>
</div>
</div>
</div>
<div class="col-md-6 marginTop">
<div id="search-object-tab" class="tabs">
<ul>
<li><a href="#search-object-tab-1">Object</a></li>
</ul>
<div id="search-object-tab-1">
<div class="hoardlistview-6col">
{# <div class="datalabel">Comment</div>{{ form_widget(search_form.hoardObjectComment) }} #}
<div class="datalabel">Object present</div>{{ form_widget(search_form.hoardHasObject) }}
<div class="{% if not is_authenticated %}hidden{% endif %}">
<div class="datalabel">Object with image present</div>{{ form_widget(search_form.hoardHasObjectWithImage) }}
</div>
<div class="datalabel">Object Type</div>{{ form_widget(search_form.hoardObjectType) }}
<div class="datalabel">Material</div>{{ form_widget(search_form.hoardObjectMaterials) }}
</div>
</div>
</div>
</div>
</div>
{# Hidden fields for search_hoard.js to write values into when user clicks pagination or sort by links #}
<input type="hidden" name="page" value="1">
<input type="hidden" name="sort" value="{{current_sort}}">
<input type="hidden" name="direction" value="{{current_sort_direction}}">
<input type="hidden" name="format" value="">
<input type="hidden" name="search_type" value="{{search_type}}">
{{ form_end(search_form) }}
<a class="btn btn-default pull-right" href="{{ path('hoard') }}">Reset Search Fields</a>
</div>