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