[!!!][FEATURE] Main install tool refactoring
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / Resources / Private / Partials / Action / Tool / Settings / LocalConfiguration / SubSection.html
1 {namespace i=TYPO3\CMS\Install\ViewHelpers}
2 <div class="panel panel-default panel-flat">
3 <div class="panel-heading" role="tab" id="heading{sectionName}">
4 <h3 class="panel-title">
5 <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse{sectionName}"
6 aria-expanded="true" aria-controls="collapse{sectionName}" class="collapsed"
7 >
8 <span class="caret"></span>
9 <strong>
10 <i:object.arrayValueByKey array="{localConfigurationSectionNames}" key="{sectionName}"/>
11 </strong> [{sectionName}]
12 </a>
13 </h3>
14 </div>
15 <div id="collapse{sectionName}" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading{sectionName}">
16 <f:for each="{sectionData}" as="item">
17 <a id="{sectionName}-{item.key}"></a>
18 <div class="item">
19 <div class="item-heading">
20 <strong>[{sectionName}][{item.key}] </strong>
21 <f:if condition="{item.type} == 'checkbox'">
22 <f:then>
23 =
24 <f:if condition="{item.value}">
25 <f:then>true</f:then>
26 <f:else>false</f:else>
27 </f:if>
28 </f:then>
29 <f:else>
30 <f:if condition="{item.value}">
31 = {item.value -> f:format.crop(maxCharacters: 40, respectWordBoundaries:0, respectHtml:0)}
32 </f:if>
33 </f:else>
34 </f:if>
35 </div>
36 <div class="item-body">
37 <f:if condition="{item.type} == 'checkbox'">
38 <div class="checkbox">
39 <label>
40 <input
41 type="checkbox"
42 value="1"
43 class="t3js-localConfiguration-pathValue"
44 data-path="{sectionName}/{item.key}"
45 {f:if(condition: item.checked, then:'checked="checked"')}
46 />
47 {item.description -> f:format.raw()}
48 </label>
49 </div>
50 </f:if>
51
52 <f:if condition="{item.type} == 'input'">
53 <div class="form-group">
54 <span class="help-block">{item.description -> f:format.raw()}</span>
55 <input
56 type="text"
57 value="{item.value}"
58 data-path="{sectionName}/{item.key}"
59 class="t3-install-form-input-text form-control t3js-localConfiguration-pathValue"
60 />
61 </div>
62 </f:if>
63
64 <f:if condition="{item.type} == 'number'">
65 <div class="form-group">
66 <span class="help-block">{item.description -> f:format.raw()}</span>
67 <input
68 type="number"
69 value="{item.value}"
70 data-path="{sectionName}/{item.key}"
71 class="t3-install-form-input-text form-control t3js-localConfiguration-pathValue"
72 />
73 </div>
74 </f:if>
75
76 <f:if condition="{item.type} == 'textarea'">
77 <span class="help-block">{item.description -> f:format.raw()}</span>
78 <div class="form-group">
79 <textarea
80 rows="5"
81 cols="60"
82 data-path="{sectionName}/{item.key}"
83 class="form-control t3js-localConfiguration-pathValue"
84 >{item.value}</textarea>
85 </div>
86 </f:if>
87
88 <f:if condition="{item.phpErrorCode}">
89 <div class="fieldNote">
90 Current PHP error code <strong>{item.value}</strong> represents:<br/>
91 <code>
92 <i:format.phpErrorCode phpErrorCode="{item.value}"/>
93 </code>
94 </div>
95 </f:if>
96 </div>
97 </div>
98 </f:for>
99 </div>
100 </div>