4597a43c5d5ad689a4771ca0e3a30a7d026a3068
[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}" class="collapsed">
7 <span class="caret"></span>
8 <strong><i:object.arrayValueByKey array="{sections}" key="{sectionName}" /></strong> [{sectionName}]
9 </a>
10 </h3>
11 </div>
12 <div id="collapse{sectionName}" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading{sectionName}">
13 <f:for each="{sectionData}" as="item">
14 <a id="{sectionName}-{item.key}"></a>
15 <div class="item">
16 <div class="item-heading">
17 <strong>[{sectionName}][{item.key}] </strong>
18 <f:if condition="{item.type} == 'checkbox'">
19 <f:then>
20 = {item.value}
21 </f:then>
22 <f:else>
23 <f:if condition="{item.value}">
24 = {item.value -> i:format.crop(maxCharacters: 40)}
25 </f:if>
26 </f:else>
27 </f:if>
28 </div>
29 <div class="item-body">
30 <f:if condition="{item.type} == 'checkbox'">
31 <div class="checkbox">
32 <label>
33 <input
34 type="hidden"
35 value="0"
36 name="install[values][{sectionName}][{item.key}]"
37 />
38 <input
39 type="checkbox"
40 value="1"
41 name="install[values][{sectionName}][{item.key}]"
42 {f:if(condition: item.checked, then:'checked="checked"')}
43 />
44 {item.description -> f:format.raw()}
45 </label>
46 </div>
47 </f:if>
48
49 <f:if condition="{item.type} == 'input'">
50 <div class="form-group">
51 <span class="help-block">{item.description -> f:format.raw()}</span>
52 <input
53 type="text"
54 value="{item.value}"
55 name="install[values][{sectionName}][{item.key}]"
56 class="t3-install-form-input-text form-control"
57 />
58 </div>
59 </f:if>
60
61 <f:if condition="{item.type} == 'textarea'">
62 <span class="help-block">{item.description -> f:format.raw()}</span>
63 <div class="form-group">
64 <textarea
65 rows="5"
66 cols="60"
67 name="install[values][{sectionName}][{item.key}]"
68 class="form-control"
69 >{item.value}</textarea>
70 </div>
71 </f:if>
72
73 <f:if condition="{item.phpErrorCode}">
74 <div class="fieldNote">
75 Current PHP error code <strong>{item.value}</strong> represents:<br/>
76 <code><i:format.phpErrorCode phpErrorCode="{item.value}" /></code>
77 </div>
78 </f:if>
79 </div>
80 </div>
81 </f:for>
82 </div>
83 </div>