[BUGFIX] Use correct values in settings InstallTool
[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.path} </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.differentValueInCurrentConfiguration}">
38 <div class="t3js-infobox callout callout-sm callout-warning">
39 <div class="callout-body">
40 Note that <code>$GLOBALS['TYPO3_CONF_VARS']</code> currently contains a different value.
41 This could mean that the value is overwritten in AdditionalConfiguration.php.
42 </div>
43 </div>
44 </f:if>
45 <f:if condition="{f:count(subject: item.allowedValues)} || {item.dataType} == 'dropdown'">
46 <f:then>
47 <div class="form-group">
48 <span class="help-block">{item.description -> f:format.raw()}</span>
49 <select
50 data-path="{sectionName}/{item.key}"
51 class="t3-install-form-input-text form-control t3js-localConfiguration-pathValue">
52 <f:for each="{item.allowedValues}" as="value">
53 <option value="{item.value}" {f:if(condition:'{item.value} == {value}', then: 'selected="selected"')}>{value}</option>
54 </f:for>
55 </select>
56 </div>
57 </f:then>
58 <f:else>
59 <f:if condition="{item.type} == 'checkbox'">
60 <div class="checkbox">
61 <label>
62 <input
63 type="checkbox"
64 value="1"
65 class="t3js-localConfiguration-pathValue"
66 data-path="{sectionName}/{item.key}"
67 {f:if(condition: item.checked, then:'checked="checked"')}
68 />
69 {item.description -> f:format.raw()}
70 </label>
71 </div>
72 </f:if>
73 <f:if condition="{item.type} == 'input'">
74 <div class="form-group">
75 <span class="help-block">{item.description -> f:format.raw()}</span>
76 <input
77 type="text"
78 value="{item.value}"
79 data-path="{sectionName}/{item.key}"
80 class="t3-install-form-input-text form-control t3js-localConfiguration-pathValue"
81 />
82 </div>
83 </f:if>
84
85 <f:if condition="{item.type} == 'number'">
86 <div class="form-group">
87 <span class="help-block">{item.description -> f:format.raw()}</span>
88 <input
89 type="number"
90 value="{item.value}"
91 data-path="{sectionName}/{item.key}"
92 class="t3-install-form-input-text form-control t3js-localConfiguration-pathValue"
93 />
94 </div>
95 </f:if>
96
97 <f:if condition="{item.type} == 'textarea'">
98 <span class="help-block">{item.description -> f:format.raw()}</span>
99 <div class="form-group">
100 <textarea
101 rows="5"
102 cols="60"
103 data-path="{sectionName}/{item.key}"
104 class="form-control t3js-localConfiguration-pathValue"
105 >{item.value}</textarea>
106 </div>
107 </f:if>
108 </f:else>
109 </f:if>
110
111 <f:if condition="{item.phpErrorCode}">
112 <div class="fieldNote">
113 Current PHP error code <strong>{item.value}</strong> represents:<br/>
114 <code>
115 <i:format.phpErrorCode phpErrorCode="{item.value}"/>
116 </code>
117 </div>
118 </f:if>
119 </div>
120 </div>
121 </f:for>
122 </div>
123 </div>