[BUGFIX] Store boolean value properly in Install Tool (again)
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / Resources / Private / Partials / Action / Tool / AllConfiguration / SubSection.html
1 {namespace i=TYPO3\CMS\Install\ViewHelpers}
2
3 <div class="panel panel-default">
4 <div class="panel-heading" role="tab" id="heading{sectionName}">
5 <h3 class="panel-title">
6 <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse{sectionName}" aria-expanded="true" aria-controls="collapse{sectionName}">
7 <strong><i:object.arrayValueByKey array="{sections}" key="{sectionName}" /></strong> [{sectionName}]
8 </a>
9 </h3>
10 </div>
11 <div id="collapse{sectionName}" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading{sectionName}">
12 <f:for each="{sectionData}" as="item">
13 <a id="{sectionName}-{item.key}"></a>
14 <div class="item">
15 <div class="item-heading">
16 <strong>[{sectionName}][{item.key}] </strong>
17 <f:if condition="{item.type} == 'checkbox'">
18 <f:then>
19 = {item.value}
20 </f:then>
21 <f:else>
22 <f:if condition="{item.value}">
23 = {item.value -> i:format.crop(maxCharacters: 40)}
24 </f:if>
25 </f:else>
26 </f:if>
27 </div>
28 <div class="item-body">
29 <f:if condition="{item.type} == 'checkbox'">
30 <div class="checkbox">
31 <label>
32 <input
33 type="hidden"
34 value="0"
35 name="install[values][{sectionName}][{item.key}]"
36 />
37 <input
38 type="checkbox"
39 value="1"
40 name="install[values][{sectionName}][{item.key}]"
41 {f:if(condition: item.checked, then:'checked="checked"')}
42 />
43 {item.description -> f:format.raw()}
44 </label>
45 </div>
46 </f:if>
47
48 <f:if condition="{item.type} == 'input'">
49 <div class="form-group">
50 <span class="help-block">{item.description -> f:format.raw()}</span>
51 <input
52 type="text"
53 value="{item.value}"
54 name="install[values][{sectionName}][{item.key}]"
55 class="t3-install-form-input-text form-control"
56 />
57 </div>
58 </f:if>
59
60 <f:if condition="{item.type} == 'textarea'">
61 <span class="help-block">{item.description -> f:format.raw()}</span>
62 <div class="form-group">
63 <textarea
64 rows="5"
65 cols="60"
66 name="install[values][{sectionName}][{item.key}]"
67 class="form-control"
68 >{item.value}</textarea>
69 </div>
70 </f:if>
71
72 <f:if condition="{item.phpErrorCode}">
73 <div class="fieldNote">
74 Current PHP error code <strong>{item.value}</strong> represents:<br/>
75 <code><i:format.phpErrorCode phpErrorCode="{item.value}" /></code>
76 </div>
77 </f:if>
78 </div>
79 </div>
80 </f:for>
81 </div>
82 </div>