[TASK] Move DefaultConfigurationDescription to Yaml format
[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="{f:count(subject: item.allowedValues)} || {item.dataType} == 'dropdown'">
38 <f:then>
39 <div class="form-group">
40 <span class="help-block">{item.description -> f:format.raw()}</span>
41 <select
42 data-path="{sectionName}/{item.key}"
43 class="t3-install-form-input-text form-control t3js-localConfiguration-pathValue">
44 <f:for each="{item.allowedValues}" as="value">
45 <option value="{item.value}" {f:if(condition:'{item.value} == {value}', then: 'selected="selected"')}>{value}</option>
46 </f:for>
47 </select>
48 </div>
49 </f:then>
50 <f:else>
51 <f:if condition="{item.type} == 'checkbox'">
52 <div class="checkbox">
53 <label>
54 <input
55 type="checkbox"
56 value="1"
57 class="t3js-localConfiguration-pathValue"
58 data-path="{sectionName}/{item.key}"
59 {f:if(condition: item.checked, then:'checked="checked"')}
60 />
61 {item.description -> f:format.raw()}
62 </label>
63 </div>
64 </f:if>
65 <f:if condition="{item.type} == 'input'">
66 <div class="form-group">
67 <span class="help-block">{item.description -> f:format.raw()}</span>
68 <input
69 type="text"
70 value="{item.value}"
71 data-path="{sectionName}/{item.key}"
72 class="t3-install-form-input-text form-control t3js-localConfiguration-pathValue"
73 />
74 </div>
75 </f:if>
76
77 <f:if condition="{item.type} == 'number'">
78 <div class="form-group">
79 <span class="help-block">{item.description -> f:format.raw()}</span>
80 <input
81 type="number"
82 value="{item.value}"
83 data-path="{sectionName}/{item.key}"
84 class="t3-install-form-input-text form-control t3js-localConfiguration-pathValue"
85 />
86 </div>
87 </f:if>
88
89 <f:if condition="{item.type} == 'textarea'">
90 <span class="help-block">{item.description -> f:format.raw()}</span>
91 <div class="form-group">
92 <textarea
93 rows="5"
94 cols="60"
95 data-path="{sectionName}/{item.key}"
96 class="form-control t3js-localConfiguration-pathValue"
97 >{item.value}</textarea>
98 </div>
99 </f:if>
100 </f:else>
101 </f:if>
102
103 <f:if condition="{item.phpErrorCode}">
104 <div class="fieldNote">
105 Current PHP error code <strong>{item.value}</strong> represents:<br/>
106 <code>
107 <i:format.phpErrorCode phpErrorCode="{item.value}"/>
108 </code>
109 </div>
110 </f:if>
111 </div>
112 </div>
113 </f:for>
114 </div>
115 </div>