[BUGFIX] Correct label for-parameter to the correct target id in indexed_search
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / Resources / Private / Partials / Form.html
1 <div class="tx-indexedsearch-searchbox">
2 <f:form action="search" method="post" id="tx_indexedsearch" noCacheHash="true" pageUid="{settings.targetPid}">
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 <f:form.hidden name="search[extendedSearch]" value="{searchParams.extendedSearch}" />
17 </div>
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 <f:if condition="{searchParams.extendedSearch}">
31 <f:if condition="{showTypeSearch}">
32 <div class="tx-indexedsearch-search-for">
33 <label for="tx-indexedsearch-selectbox-searchtype"><f:translate key="form.match" />:</label>
34
35 <f:if condition="{allSearchTypes}">
36 <f:form.select name="search[searchType]" options="{allSearchTypes}" value="{searchParams.searchType}" id="tx-indexedsearch-selectbox-searchtype" class="tx-indexedsearch-selectbox-searchtype" />
37 </f:if>
38
39 <f:if condition="{allDefaultOperands}">
40 <f:form.select name="search[defaultOperand]" options="{allDefaultOperands}" value="{searchParams.defaultOperand}" id="tx-indexedsearch-selectbox-defaultoperand" class="tx-indexedsearch-selectbox-defaultoperand" />
41 </f:if>
42 </div>
43 </f:if>
44
45 <f:if condition="{showMediaAndLanguageSearch}">
46 <div class="tx-indexedsearch-search-in">
47 <label for="tx-indexedsearch-selectbox-media"><f:translate key="form.searchIn" />:</label>
48
49 <f:if condition="{allMediaTypes}">
50 <f:form.select name="search[mediaType]" options="{allMediaTypes}" value="{searchParams.mediaType}" id="tx-indexedsearch-selectbox-media" class="tx-indexedsearch-selectbox-media media" />
51 </f:if>
52
53 <f:if condition="{allLanguageUids}">
54 <f:form.select name="search[languageUid]" options="{allLanguageUids}" value="{searchParams.languageUid}" id="tx-indexedsearch-selectbox-lang" class="tx-indexedsearch-selectbox-lang lang" />
55 </f:if>
56 </div>
57 </f:if>
58
59 <f:if condition="{allSections}">
60 <div class="tx-indexedsearch-search-select-section">
61 <label for="tx-indexedsearch-selectbox-sections"><f:translate key="form.fromSection" />:</label>
62 <f:form.select name="search[sections]" options="{allSections}" value="{searchParams.sections}" id="tx-indexedsearch-selectbox-sections" class="tx-indexedsearch-selectbox-sections" />
63 </div>
64 </f:if>
65
66 <f:if condition="{allIndexConfigurations}">
67 <div class="tx-indexedsearch-search-freeindexuid">
68 <label for="tx-indexedsearch-selectbox-freeIndexUid"><f:translate key="form.freeIndexUid" />:</label>
69 <f:form.select name="search[freeIndexUid]" options="{allIndexConfigurations}" value="{searchParams.freeIndexUid}" id="tx-indexedsearch-selectbox-freeIndexUid" class="tx-indexedsearch-selectbox-freeIndexUid" />
70 </div>
71 </f:if>
72
73 <f:if condition="{showSortOrders}">
74 <div class="tx-indexedsearch-search-select-order">
75 <label for="tx-indexedsearch-selectbox-order"><f:translate key="form.orderBy" />:</label>
76 <f:form.select name="search[sortOrder]" options="{allSortOrders}" value="{searchParams.sortOrder}" id="tx-indexedsearch-selectbox-order" class="tx-indexedsearch-selectbox-order" />&nbsp;
77 <f:form.select name="search[sortDesc]" options="{allSortDescendings}" value="{searchParams.sortDesc}" id="tx-indexedsearch-selectbox-desc" class="tx-indexedsearch-selectbox-desc" />
78 </div>
79 </f:if>
80
81 <f:if condition="{allNumberOfResults}">
82 <div class="tx-indexedsearch-search-select-results">
83 <label for="tx-indexedsearch-selectbox-results"><f:translate key="form.atATime" /></label>
84 <f:form.select name="search[numberOfResults]" options="{allNumberOfResults}" value="{searchParams.numberOfResults}" id="tx-indexedsearch-selectbox-results" class="tx-indexedsearch-selectbox-results" />
85 </div>
86 </f:if>
87
88 <f:if condition="{allGroups}">
89 <div class="tx-indexedsearch-search-select-group">
90 <label for="tx-indexedsearch-selectbox-group"><f:translate key="form.style" />:</label>
91 <f:form.select name="search[group]" options="{allGroups}" value="{searchParams.group}" id="tx-indexedsearch-selectbox-group" class="tx-indexedsearch-selectbox-group" />
92 <f:if condition="{settings.blind.extResume} == 0">
93 <f:form.checkbox name="search[extResume]" id="tx_indexedsearch_extResume" checked="{searchParams.extResume}" value="1" />
94 </f:if>
95 </div>
96 </f:if>
97 </f:if>
98
99 <div class="tx-indexedsearch-search-submit">
100 <f:form.submit name="search[submitButton]" value="{f:translate(key: 'form.submit')}" id="tx-indexedsearch-searchbox-button-submit" class="tx-indexedsearch-searchbox-button" />
101 </div>
102 </fieldset>
103
104
105 <f:if condition="{settings.displayAdvancedSearchLink}">
106 <p>
107 <f:if condition="{searchParams.extendedSearch}">
108 <f:then>
109 <f:link.action action="form" arguments="{search: {extendedSearch: 0}}"><f:translate key="form.linkToRegularSearch" /></f:link.action>
110 </f:then>
111 <f:else>
112 <f:link.action action="form" arguments="{search: {extendedSearch: 1}}"><f:translate key="form.linkToAdvancedSearch" /></f:link.action>
113 </f:else>
114 </f:if>
115 </p>
116 </f:if>
117 </f:form>
118 </div>
119
120 <f:render partial="Rules" />