[BUGFIX] indexed_search fix advanced search select boxes in extbase plugin
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / Resources / Private / Templates / Search / Form.html
1 <div class="tx-indexedsearch-searchbox">
2 <f:form action="search" method="post" id="tx_indexedsearch" noCacheHash="true">
3 <div class="tx-indexedsearch-hidden-fields">
4 <f:form.hidden name="search[_sections]" value="0" />
5 <f:form.hidden name="search[_freeIndexUid]" id="tx_indexedsearch_freeIndexUid" value="_" />
6 <f:form.hidden name="search[pointer]" id="tx_indexedsearch_pointer" value="0" />
7 <f:form.hidden name="search[ext]" value="{searchParams.ext}" />
8 <f:form.hidden name="search[searchType]" value="{searchParams.searchType}" />
9 <f:form.hidden name="search[defaultOperand]" value="{searchParams.defaultOperand}" />
10 <f:form.hidden name="search[mediaType]" value="{searchParams.mediaType}" />
11 <f:form.hidden name="search[sortOrder]" value="{searchParams.sortOrder}" />
12 <f:form.hidden name="search[group]" value="{searchParams.group}" />
13 <f:form.hidden name="search[languageUid]" value="{searchParams.languageUid}" />
14 <f:form.hidden name="search[desc]" value="{searchParams.desc}" />
15 <f:form.hidden name="search[numberOfResults]" value="{searchParams.numberOfResults}" />
16 </div>
17
18 <fieldset>
19 <legend><f:translate key="form.legend" /></legend>
20
21 <div class="tx-indexedsearch-form">
22 <label for="tx-indexedsearch-searchbox-sword"><f:translate key="form.searchFor" />:</label>
23 <f:form.textfield name="search[sword]" value="{sword}" id="tx-indexedsearch-searchbox-sword" class="tx-indexedsearch-searchbox-sword" />
24 </div>
25
26 <f:if condition="{showAdditionalKeywordSearch}">
27 <f:form.hidden name="search[sword_prev]" value="{previousSearchWord}" />
28 <f:form.checkbox name="search[sword_prev_include]" id="tx_indexedsearch_sword_prev_include" value="1" checked="{searchParams.sword_prev}" /> <label for="tx_indexedsearch_sword_prev_include"><f:translate key="form.addToSearch" />.</label>
29 </f:if>
30
31 <f:if condition="{searchParams.extendedSearch}">
32 <f:if condition="{showTypeSearch}">
33 <div class="tx-indexedsearch-search-for">
34 <label for="tx-indexedsearch-selectbox-type"><f:translate key="form.match" />:</label>
35
36 <f:if condition="{allSearchTypes}">
37 <f:form.select name="search[searchType]" options="{allSearchTypes}" value="{searchParams.searchType}" id="tx-indexedsearch-selectbox-searchtype" class="tx-indexedsearch-selectbox-searchtype" />
38 </f:if>
39
40 <f:if condition="{allDefaultOperands}">
41 <f:form.select name="search[defaultOperand]" options="{allDefaultOperands}" value="{searchParams.defaultOperand}" id="tx-indexedsearch-selectbox-defaultoperand" class="tx-indexedsearch-selectbox-defaultoperand" />
42 </f:if>
43 </div>
44 </f:if>
45
46 <f:if condition="{showMediaAndLanguageSearch}">
47 <div class="tx-indexedsearch-search-in">
48 <label for="tx-indexedsearch-selectbox-media"><f:translate key="form.searchIn" />:</label>
49
50 <f:if condition="{allMediaTypes}">
51 <f:form.select name="search[mediaType]" options="{allMediaTypes}" value="{searchParams.mediaType}" id="tx-indexedsearch-selectbox-media" class="tx-indexedsearch-selectbox-media media" />
52 </f:if>
53
54 <f:if condition="{allLanguageUids}">
55 <f:form.select name="search[languageUid]" options="{allLanguageUids}" value="{searchParams.languageUid}" id="tx-indexedsearch-selectbox-lang" class="tx-indexedsearch-selectbox-lang lang" />
56 </f:if>
57 </div>
58 </f:if>
59
60 <f:if condition="{allSections}">
61 <div class="tx-indexedsearch-search-select-section">
62 <label for="tx-indexedsearch-selectbox-sections"><f:translate key="form.fromSection" />:</label>
63 <f:form.select name="search[sections]" options="{allSections}" value="{searchParams.sections}" id="tx-indexedsearch-selectbox-sections" class="tx-indexedsearch-selectbox-sections" />
64 </div>
65 </f:if>
66
67 <f:if condition="{allIndexConfigurations}">
68 <div class="tx-indexedsearch-search-freeindexuid">
69 <label for="tx-indexedsearch-selectbox-freeIndexUid"><f:translate key="form.freeIndexUid" />:</label>
70 <f:form.select name="search[freeIndexUid]" options="{allIndexConfigurations}" value="{searchParams.freeIndexUid}" id="tx-indexedsearch-selectbox-freeIndexUid" class="tx-indexedsearch-selectbox-freeIndexUid" />
71 </div>
72 </f:if>
73
74 <f:if condition="{showSortOrders}">
75 <div class="tx-indexedsearch-search-select-order">
76 <label for="tx-indexedsearch-selectbox-order"><f:translate key="form.orderBy" />:</label>
77 <f:form.select name="search[sortOrder]" options="{allSortOrders}" value="{searchParams.sortOrder}" id="tx-indexedsearch-selectbox-order" class="tx-indexedsearch-selectbox-order" />&nbsp;
78 <f:form.select name="search[sortDesc]" options="{allSortDescendings}" value="{searchParams.sortDesc}" id="tx-indexedsearch-selectbox-desc" class="tx-indexedsearch-selectbox-desc" />
79 </div>
80 </f:if>
81
82 <f:if condition="{allNumberOfResults}">
83 <div class="tx-indexedsearch-search-select-results">
84 <label for="tx-indexedsearch-selectbox-results"><f:translate key="form.atATime" /></label>
85 <f:form.select name="search[numberOfResults]" options="{allNumberOfResults}" value="{searchParams.numberOfResults}" id="tx-indexedsearch-selectbox-results" class="tx-indexedsearch-selectbox-results" />
86 </div>
87 </f:if>
88
89 <f:if condition="{allGroups}">
90 <div class="tx-indexedsearch-search-select-group">
91 <label for="tx-indexedsearch-selectbox-group"><f:translate key="form.style" />:</label>
92 <f:form.select name="search[group]" options="{allGroups}" value="{searchParams.group}" id="tx-indexedsearch-selectbox-group" class="tx-indexedsearch-selectbox-group" />
93 <f:if condition="{settings.blind.extResume} == 0">
94 <f:form.checkbox name="tx_indexedsearch[extResume]" id="tx_indexedsearch_extResume" checked="{searchParams.extResume}" value="1" />
95 </f:if>
96 </div>
97 </f:if>
98 </f:if>
99
100 <div class="tx-indexedsearch-search-submit">
101 <f:form.submit name="search[submitButton]" value="{f:translate(key: 'form.submit')}" id="tx-indexedsearch-searchbox-button-submit" class="tx-indexedsearch-searchbox-button" />
102 </div>
103 </fieldset>
104
105
106 <f:if condition="{settings.displayAdvancedSearchLink}">
107 <p>
108 <f:if condition="{searchParams.extendedSearch}">
109 <f:then>
110 <f:link.action action="form" arguments="{extendedSearch: 0}"><f:translate key="form.linkToRegularSearch" /></f:link.action>
111 </f:then>
112 <f:else>
113 <f:link.action action="form" arguments="{extendedSearch: 1}"><f:translate key="form.linkToAdvancedSearch" /></f:link.action>
114 </f:else>
115 </f:if>
116 </p>
117 </f:if>
118 </f:form>
119 </div>
120
121 <f:render partial="Rules" />