Use select viewHelper in test form
[TYPO3CMS/Extensions/static_info_tables.git] / Resources / Private / Templates / Manager / TestForm.html
1 {namespace static=SJBR\StaticInfoTables\ViewHelpers}
2 <f:layout name="Default" />
3
4 <f:section name="Content">
5 <h3>{f:translate(key: 'testFormTitle')}</h3>
6 <f:form method="post" controller="Manager" action="testForm" name="testForm" class="sjbr-static-info-tables-manager">
7 <fieldset>
8 <dl>
9 <dt>
10 <label for="sjbr-static-info-tables-manager-country">{f:translate(key: 'selectCountry')}:</label>
11 </dt>
12 <dd>
13 <static:form.select id="sjbr-static-info-tables-manager-country" name="country" staticInfoTable="country" options="{}" value="{selectedCountry}" additionalAttributes="{onchange:'javascript:this.form.submit();'}"/>
14 </dd>
15 <f:if condition="{selectedCountry}">
16 <f:if condition="{selectedCountry.countryZones}">
17 <dt>
18 <label for="sjbr-static-info-tables-manager-country-zone">{f:translate(key: 'selectCountryZone')}:</label>
19 </dt>
20 <dd>
21 <static:form.select id="sjbr-static-info-tables-manager-country-zone" name="countryZone" staticInfoTable="countryZone" staticInfoTableSubselect="{country: '{selectedCountry.uid}'}" options="{}" value="{selectedCountryZone}" />
22 </dd>
23 </f:if>
24 </f:if>
25 <dt>
26 <label for="sjbr-static-info-tables-manager-language">{f:translate(key: 'selectLanguage')}:</label>
27 </dt>
28 <dd>
29 <static:form.select id="sjbr-static-info-tables-manager-language" name="language" staticInfoTable="language" options="{}" value="{selectedLanguage}" />
30 </dd>
31 <dt>
32 </dt>
33 <dd>
34 <f:form.submit class="submit" value="{f:translate(key: 'testFormSubmit')}" />
35 </dd>
36 </dl>
37 </fieldset>
38 </f:form>
39 </f:section>