@@ -60,18 +60,18 @@ |
||
60 | 60 | $html = []; |
61 | 61 | if (!empty($selectIcons)) { |
62 | 62 | $html[] = '<div class="t3js-forms-select-single-icons icon-list">'; |
63 | - $html[] = '<div class="row">'; |
|
63 | + $html[] = '<div class="row">'; |
|
64 | 64 | foreach ($selectIcons as $i => $selectIcon) { |
65 | - $active = $selectIcon['active'] ? ' active' : ''; |
|
66 | - $html[] = '<div class="col col-auto item' . $active . '">'; |
|
65 | + $active = $selectIcon['active'] ? ' active' : ''; |
|
66 | + $html[] = '<div class="col col-auto item' . $active . '">'; |
|
67 | 67 | if (is_array($selectIcon)) { |
68 | 68 | $html[] = '<a href="#" title="' . htmlspecialchars($selectIcon['title'], ENT_COMPAT, 'UTF-8', false) . '" data-select-index="' . htmlspecialchars((string)$selectIcon['index']) . '">'; |
69 | - $html[] = $selectIcon['icon']; |
|
69 | + $html[] = $selectIcon['icon']; |
|
70 | 70 | $html[] = '</a>'; |
71 | 71 | } |
72 | - $html[] = '</div>'; |
|
72 | + $html[] = '</div>'; |
|
73 | 73 | } |
74 | - $html[] = '</div>'; |
|
74 | + $html[] = '</div>'; |
|
75 | 75 | $html[] = '</div>'; |
76 | 76 | } |
77 | 77 |
@@ -112,58 +112,58 @@ |
||
112 | 112 | $thisSlugId = 't3js-form-field-slug-id' . StringUtility::getUniqueId(); |
113 | 113 | $mainFieldHtml = []; |
114 | 114 | $mainFieldHtml[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
115 | - $mainFieldHtml[] = $fieldInformationHtml; |
|
116 | - $mainFieldHtml[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px" id="' . htmlspecialchars($thisSlugId) . '">'; |
|
117 | - $mainFieldHtml[] = '<div class="form-wizards-wrap">'; |
|
118 | - $mainFieldHtml[] = '<div class="form-wizards-element">'; |
|
119 | - $mainFieldHtml[] = '<div class="input-group">'; |
|
120 | - $mainFieldHtml[] = ($baseUrl ? '<span class="input-group-addon">' . htmlspecialchars($baseUrl) . '</span>' : ''); |
|
115 | + $mainFieldHtml[] = $fieldInformationHtml; |
|
116 | + $mainFieldHtml[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px" id="' . htmlspecialchars($thisSlugId) . '">'; |
|
117 | + $mainFieldHtml[] = '<div class="form-wizards-wrap">'; |
|
118 | + $mainFieldHtml[] = '<div class="form-wizards-element">'; |
|
119 | + $mainFieldHtml[] = '<div class="input-group">'; |
|
120 | + $mainFieldHtml[] = ($baseUrl ? '<span class="input-group-addon">' . htmlspecialchars($baseUrl) . '</span>' : ''); |
|
121 | 121 | // We deal with 3 fields here: a readonly field for current / default values, an input |
122 | 122 | // field to manipulate the value, and the final hidden field used to send the value |
123 | - $mainFieldHtml[] = '<input'; |
|
124 | - $mainFieldHtml[] = ' class="form-control t3js-form-field-slug-readonly"'; |
|
125 | - $mainFieldHtml[] = ' data-bs-toggle="tooltip"'; |
|
126 | - $mainFieldHtml[] = ' data-title="' . htmlspecialchars($itemValue) . '"'; |
|
127 | - $mainFieldHtml[] = ' value="' . htmlspecialchars($itemValue) . '"'; |
|
128 | - $mainFieldHtml[] = ' readonly'; |
|
129 | - $mainFieldHtml[] = ' />'; |
|
130 | - $mainFieldHtml[] = '<input type="text"'; |
|
131 | - $mainFieldHtml[] = ' id="' . htmlspecialchars(StringUtility::getUniqueId('formengine-input-')) . '"'; |
|
132 | - $mainFieldHtml[] = ' class="form-control t3js-form-field-slug-input hidden"'; |
|
133 | - $mainFieldHtml[] = ' placeholder="' . htmlspecialchars($row['slug'] ?? '/') . '"'; |
|
134 | - $mainFieldHtml[] = ' data-formengine-validation-rules="' . htmlspecialchars($this->getValidationDataAsJsonString($config)) . '"'; |
|
135 | - $mainFieldHtml[] = ' data-formengine-input-params="' . htmlspecialchars((string)json_encode(['field' => $parameterArray['itemFormElName'], 'evalList' => implode(',', $evalList)])) . '"'; |
|
136 | - $mainFieldHtml[] = ' data-formengine-input-name="' . htmlspecialchars($parameterArray['itemFormElName']) . '"'; |
|
137 | - $mainFieldHtml[] = ' />'; |
|
138 | - $mainFieldHtml[] = '<span class="input-group-btn">'; |
|
139 | - $mainFieldHtml[] = '<button class="btn btn-default t3js-form-field-slug-toggle" type="button" title="' . htmlspecialchars($toggleButtonTitle) . '">'; |
|
140 | - $mainFieldHtml[] = $this->iconFactory->getIcon('actions-version-workspaces-preview-link', Icon::SIZE_SMALL)->render(); |
|
141 | - $mainFieldHtml[] = '</button>'; |
|
142 | - $mainFieldHtml[] = '<button class="btn btn-default t3js-form-field-slug-recreate" type="button" title="' . htmlspecialchars($recreateButtonTitle) . '">'; |
|
143 | - $mainFieldHtml[] = $this->iconFactory->getIcon('actions-refresh', Icon::SIZE_SMALL)->render(); |
|
144 | - $mainFieldHtml[] = '</button>'; |
|
145 | - $mainFieldHtml[] = '</span>'; |
|
146 | - $mainFieldHtml[] = '<input type="hidden"'; |
|
147 | - $mainFieldHtml[] = ' class="t3js-form-field-slug-hidden"'; |
|
148 | - $mainFieldHtml[] = ' name="' . htmlspecialchars($parameterArray['itemFormElName']) . '"'; |
|
149 | - $mainFieldHtml[] = ' value="' . htmlspecialchars($itemValue) . '"'; |
|
150 | - $mainFieldHtml[] = ' />'; |
|
151 | - $mainFieldHtml[] = '</div>'; |
|
152 | - $mainFieldHtml[] = '</div>'; |
|
123 | + $mainFieldHtml[] = '<input'; |
|
124 | + $mainFieldHtml[] = ' class="form-control t3js-form-field-slug-readonly"'; |
|
125 | + $mainFieldHtml[] = ' data-bs-toggle="tooltip"'; |
|
126 | + $mainFieldHtml[] = ' data-title="' . htmlspecialchars($itemValue) . '"'; |
|
127 | + $mainFieldHtml[] = ' value="' . htmlspecialchars($itemValue) . '"'; |
|
128 | + $mainFieldHtml[] = ' readonly'; |
|
129 | + $mainFieldHtml[] = ' />'; |
|
130 | + $mainFieldHtml[] = '<input type="text"'; |
|
131 | + $mainFieldHtml[] = ' id="' . htmlspecialchars(StringUtility::getUniqueId('formengine-input-')) . '"'; |
|
132 | + $mainFieldHtml[] = ' class="form-control t3js-form-field-slug-input hidden"'; |
|
133 | + $mainFieldHtml[] = ' placeholder="' . htmlspecialchars($row['slug'] ?? '/') . '"'; |
|
134 | + $mainFieldHtml[] = ' data-formengine-validation-rules="' . htmlspecialchars($this->getValidationDataAsJsonString($config)) . '"'; |
|
135 | + $mainFieldHtml[] = ' data-formengine-input-params="' . htmlspecialchars((string)json_encode(['field' => $parameterArray['itemFormElName'], 'evalList' => implode(',', $evalList)])) . '"'; |
|
136 | + $mainFieldHtml[] = ' data-formengine-input-name="' . htmlspecialchars($parameterArray['itemFormElName']) . '"'; |
|
137 | + $mainFieldHtml[] = ' />'; |
|
138 | + $mainFieldHtml[] = '<span class="input-group-btn">'; |
|
139 | + $mainFieldHtml[] = '<button class="btn btn-default t3js-form-field-slug-toggle" type="button" title="' . htmlspecialchars($toggleButtonTitle) . '">'; |
|
140 | + $mainFieldHtml[] = $this->iconFactory->getIcon('actions-version-workspaces-preview-link', Icon::SIZE_SMALL)->render(); |
|
141 | + $mainFieldHtml[] = '</button>'; |
|
142 | + $mainFieldHtml[] = '<button class="btn btn-default t3js-form-field-slug-recreate" type="button" title="' . htmlspecialchars($recreateButtonTitle) . '">'; |
|
143 | + $mainFieldHtml[] = $this->iconFactory->getIcon('actions-refresh', Icon::SIZE_SMALL)->render(); |
|
144 | + $mainFieldHtml[] = '</button>'; |
|
145 | + $mainFieldHtml[] = '</span>'; |
|
146 | + $mainFieldHtml[] = '<input type="hidden"'; |
|
147 | + $mainFieldHtml[] = ' class="t3js-form-field-slug-hidden"'; |
|
148 | + $mainFieldHtml[] = ' name="' . htmlspecialchars($parameterArray['itemFormElName']) . '"'; |
|
149 | + $mainFieldHtml[] = ' value="' . htmlspecialchars($itemValue) . '"'; |
|
150 | + $mainFieldHtml[] = ' />'; |
|
151 | + $mainFieldHtml[] = '</div>'; |
|
152 | + $mainFieldHtml[] = '</div>'; |
|
153 | 153 | if (!empty($fieldControlHtml)) { |
154 | - $mainFieldHtml[] = '<div class="form-wizards-items-aside">'; |
|
155 | - $mainFieldHtml[] = '<div class="btn-group">'; |
|
156 | - $mainFieldHtml[] = $fieldControlHtml; |
|
157 | - $mainFieldHtml[] = '</div>'; |
|
158 | - $mainFieldHtml[] = '</div>'; |
|
154 | + $mainFieldHtml[] = '<div class="form-wizards-items-aside">'; |
|
155 | + $mainFieldHtml[] = '<div class="btn-group">'; |
|
156 | + $mainFieldHtml[] = $fieldControlHtml; |
|
157 | + $mainFieldHtml[] = '</div>'; |
|
158 | + $mainFieldHtml[] = '</div>'; |
|
159 | 159 | } |
160 | - $mainFieldHtml[] = '<div class="form-wizards-items-bottom">'; |
|
161 | - $mainFieldHtml[] = '<span class="t3js-form-proposal-accepted hidden label label-success">' . htmlspecialchars($successMessage) . '<span>/abc/</span></span>'; |
|
162 | - $mainFieldHtml[] = '<span class="t3js-form-proposal-different hidden label label-warning">' . htmlspecialchars($errorMessage) . '<span>/abc/</span></span>'; |
|
163 | - $mainFieldHtml[] = $fieldWizardHtml; |
|
164 | - $mainFieldHtml[] = '</div>'; |
|
165 | - $mainFieldHtml[] = '</div>'; |
|
166 | - $mainFieldHtml[] = '</div>'; |
|
160 | + $mainFieldHtml[] = '<div class="form-wizards-items-bottom">'; |
|
161 | + $mainFieldHtml[] = '<span class="t3js-form-proposal-accepted hidden label label-success">' . htmlspecialchars($successMessage) . '<span>/abc/</span></span>'; |
|
162 | + $mainFieldHtml[] = '<span class="t3js-form-proposal-different hidden label label-warning">' . htmlspecialchars($errorMessage) . '<span>/abc/</span></span>'; |
|
163 | + $mainFieldHtml[] = $fieldWizardHtml; |
|
164 | + $mainFieldHtml[] = '</div>'; |
|
165 | + $mainFieldHtml[] = '</div>'; |
|
166 | + $mainFieldHtml[] = '</div>'; |
|
167 | 167 | $mainFieldHtml[] = '</div>'; |
168 | 168 | |
169 | 169 | $resultArray['html'] = implode(LF, $mainFieldHtml); |
@@ -49,22 +49,22 @@ discard block |
||
49 | 49 | ], |
50 | 50 | 'insertClipboard' => [ |
51 | 51 | 'renderType' => 'insertClipboard', |
52 | - 'after' => [ 'elementBrowser' ], |
|
52 | + 'after' => ['elementBrowser'], |
|
53 | 53 | ], |
54 | 54 | 'editPopup' => [ |
55 | 55 | 'renderType' => 'editPopup', |
56 | 56 | 'disabled' => true, |
57 | - 'after' => [ 'insertClipboard' ], |
|
57 | + 'after' => ['insertClipboard'], |
|
58 | 58 | ], |
59 | 59 | 'addRecord' => [ |
60 | 60 | 'renderType' => 'addRecord', |
61 | 61 | 'disabled' => true, |
62 | - 'after' => [ 'editPopup' ], |
|
62 | + 'after' => ['editPopup'], |
|
63 | 63 | ], |
64 | 64 | 'listModule' => [ |
65 | 65 | 'renderType' => 'listModule', |
66 | 66 | 'disabled' => true, |
67 | - 'after' => [ 'addRecord' ], |
|
67 | + 'after' => ['addRecord'], |
|
68 | 68 | ], |
69 | 69 | ]; |
70 | 70 | |
@@ -79,19 +79,19 @@ discard block |
||
79 | 79 | ], |
80 | 80 | 'recordsOverview' => [ |
81 | 81 | 'renderType' => 'recordsOverview', |
82 | - 'after' => [ 'tableList' ], |
|
82 | + 'after' => ['tableList'], |
|
83 | 83 | ], |
84 | 84 | 'localizationStateSelector' => [ |
85 | 85 | 'renderType' => 'localizationStateSelector', |
86 | - 'after' => [ 'recordsOverview' ], |
|
86 | + 'after' => ['recordsOverview'], |
|
87 | 87 | ], |
88 | 88 | 'otherLanguageContent' => [ |
89 | 89 | 'renderType' => 'otherLanguageContent', |
90 | - 'after' => [ 'localizationStateSelector' ], |
|
90 | + 'after' => ['localizationStateSelector'], |
|
91 | 91 | ], |
92 | 92 | 'defaultLanguageDifferences' => [ |
93 | 93 | 'renderType' => 'defaultLanguageDifferences', |
94 | - 'after' => [ 'otherLanguageContent' ], |
|
94 | + 'after' => ['otherLanguageContent'], |
|
95 | 95 | ], |
96 | 96 | ]; |
97 | 97 | |
@@ -171,21 +171,21 @@ discard block |
||
171 | 171 | // Return early if element is read only |
172 | 172 | $html = []; |
173 | 173 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
174 | - $html[] = $fieldInformationHtml; |
|
175 | - $html[] = '<div class="form-wizards-wrap">'; |
|
176 | - $html[] = '<div class="form-wizards-element">'; |
|
177 | - $html[] = '<select'; |
|
178 | - $html[] = ' size="' . $size . '"'; |
|
179 | - $html[] = ' disabled="disabled"'; |
|
180 | - $html[] = ' class="form-select"'; |
|
181 | - $html[] = ($maxItems !== 1 && $size !== 1) ? ' multiple="multiple"' : ''; |
|
182 | - $html[] = '>'; |
|
183 | - $html[] = implode(LF, $selectorOptionsHtml); |
|
184 | - $html[] = '</select>'; |
|
185 | - $html[] = '</div>'; |
|
186 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
187 | - $html[] = '</div>'; |
|
188 | - $html[] = '</div>'; |
|
174 | + $html[] = $fieldInformationHtml; |
|
175 | + $html[] = '<div class="form-wizards-wrap">'; |
|
176 | + $html[] = '<div class="form-wizards-element">'; |
|
177 | + $html[] = '<select'; |
|
178 | + $html[] = ' size="' . $size . '"'; |
|
179 | + $html[] = ' disabled="disabled"'; |
|
180 | + $html[] = ' class="form-select"'; |
|
181 | + $html[] = ($maxItems !== 1 && $size !== 1) ? ' multiple="multiple"' : ''; |
|
182 | + $html[] = '>'; |
|
183 | + $html[] = implode(LF, $selectorOptionsHtml); |
|
184 | + $html[] = '</select>'; |
|
185 | + $html[] = '</div>'; |
|
186 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
187 | + $html[] = '</div>'; |
|
188 | + $html[] = '</div>'; |
|
189 | 189 | $html[] = '</div>'; |
190 | 190 | $resultArray['html'] = implode(LF, $html); |
191 | 191 | return $resultArray; |
@@ -265,100 +265,100 @@ discard block |
||
265 | 265 | |
266 | 266 | $html = []; |
267 | 267 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
268 | - $html[] = $fieldInformationHtml; |
|
269 | - $html[] = '<div class="form-wizards-wrap">'; |
|
268 | + $html[] = $fieldInformationHtml; |
|
269 | + $html[] = '<div class="form-wizards-wrap">'; |
|
270 | 270 | if ($internalType === 'db' && (!isset($config['hideSuggest']) || (bool)$config['hideSuggest'] !== true)) { |
271 | - $html[] = '<div class="form-wizards-items-top">'; |
|
272 | - $html[] = '<div class="autocomplete t3-form-suggest-container">'; |
|
273 | - $html[] = '<div class="input-group">'; |
|
274 | - $html[] = '<span class="input-group-addon">'; |
|
275 | - $html[] = $this->iconFactory->getIcon('actions-search', Icon::SIZE_SMALL)->render(); |
|
276 | - $html[] = '</span>'; |
|
277 | - $html[] = '<input type="search" class="t3-form-suggest form-control"'; |
|
278 | - $html[] = ' placeholder="' . $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.findRecord') . '"'; |
|
279 | - $html[] = ' data-fieldname="' . htmlspecialchars($fieldName) . '"'; |
|
280 | - $html[] = ' data-tablename="' . htmlspecialchars($table) . '"'; |
|
281 | - $html[] = ' data-field="' . htmlspecialchars($elementName) . '"'; |
|
282 | - $html[] = ' data-uid="' . htmlspecialchars($this->data['databaseRow']['uid']) . '"'; |
|
283 | - $html[] = ' data-pid="' . htmlspecialchars($this->data['parentPageRow']['uid'] ?? 0) . '"'; |
|
284 | - $html[] = ' data-fieldtype="' . htmlspecialchars($config['type']) . '"'; |
|
285 | - $html[] = ' data-minchars="' . htmlspecialchars((string)$suggestMinimumCharacters) . '"'; |
|
286 | - $html[] = ' data-datastructureidentifier="' . htmlspecialchars($dataStructureIdentifier) . '"'; |
|
287 | - $html[] = ' data-flexformsheetname="' . htmlspecialchars($flexFormSheetName) . '"'; |
|
288 | - $html[] = ' data-flexformfieldname="' . htmlspecialchars($flexFormFieldName) . '"'; |
|
289 | - $html[] = ' data-flexformcontainername="' . htmlspecialchars($flexFormContainerName) . '"'; |
|
290 | - $html[] = ' data-flexformcontainerfieldname="' . htmlspecialchars($flexFormContainerFieldName) . '"'; |
|
291 | - $html[] = '/>'; |
|
292 | - $html[] = '</div>'; |
|
293 | - $html[] = '</div>'; |
|
294 | - $html[] = '</div>'; |
|
271 | + $html[] = '<div class="form-wizards-items-top">'; |
|
272 | + $html[] = '<div class="autocomplete t3-form-suggest-container">'; |
|
273 | + $html[] = '<div class="input-group">'; |
|
274 | + $html[] = '<span class="input-group-addon">'; |
|
275 | + $html[] = $this->iconFactory->getIcon('actions-search', Icon::SIZE_SMALL)->render(); |
|
276 | + $html[] = '</span>'; |
|
277 | + $html[] = '<input type="search" class="t3-form-suggest form-control"'; |
|
278 | + $html[] = ' placeholder="' . $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.findRecord') . '"'; |
|
279 | + $html[] = ' data-fieldname="' . htmlspecialchars($fieldName) . '"'; |
|
280 | + $html[] = ' data-tablename="' . htmlspecialchars($table) . '"'; |
|
281 | + $html[] = ' data-field="' . htmlspecialchars($elementName) . '"'; |
|
282 | + $html[] = ' data-uid="' . htmlspecialchars($this->data['databaseRow']['uid']) . '"'; |
|
283 | + $html[] = ' data-pid="' . htmlspecialchars($this->data['parentPageRow']['uid'] ?? 0) . '"'; |
|
284 | + $html[] = ' data-fieldtype="' . htmlspecialchars($config['type']) . '"'; |
|
285 | + $html[] = ' data-minchars="' . htmlspecialchars((string)$suggestMinimumCharacters) . '"'; |
|
286 | + $html[] = ' data-datastructureidentifier="' . htmlspecialchars($dataStructureIdentifier) . '"'; |
|
287 | + $html[] = ' data-flexformsheetname="' . htmlspecialchars($flexFormSheetName) . '"'; |
|
288 | + $html[] = ' data-flexformfieldname="' . htmlspecialchars($flexFormFieldName) . '"'; |
|
289 | + $html[] = ' data-flexformcontainername="' . htmlspecialchars($flexFormContainerName) . '"'; |
|
290 | + $html[] = ' data-flexformcontainerfieldname="' . htmlspecialchars($flexFormContainerFieldName) . '"'; |
|
291 | + $html[] = '/>'; |
|
292 | + $html[] = '</div>'; |
|
293 | + $html[] = '</div>'; |
|
294 | + $html[] = '</div>'; |
|
295 | 295 | } |
296 | - $html[] = '<div class="form-wizards-element">'; |
|
297 | - $html[] = '<input type="hidden" class="t3js-group-hidden-field" data-formengine-input-name="' . htmlspecialchars($elementName) . '" value="' . $itemCanBeSelectedMoreThanOnce . '" />'; |
|
298 | - $html[] = '<select ' . GeneralUtility::implodeAttributes($selectorAttributes, true) . '>'; |
|
299 | - $html[] = implode(LF, $selectorOptionsHtml); |
|
300 | - $html[] = '</select>'; |
|
301 | - $html[] = '</div>'; |
|
302 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
303 | - $html[] = '<div class="btn-group-vertical">'; |
|
304 | - if ($maxItems > 1 && $size >=5 && $showMoveIcons) { |
|
305 | - $html[] = '<a href="#"'; |
|
306 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-top"'; |
|
307 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
308 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_to_top')) . '"'; |
|
309 | - $html[] = '>'; |
|
310 | - $html[] = $this->iconFactory->getIcon('actions-move-to-top', Icon::SIZE_SMALL)->render(); |
|
311 | - $html[] = '</a>'; |
|
296 | + $html[] = '<div class="form-wizards-element">'; |
|
297 | + $html[] = '<input type="hidden" class="t3js-group-hidden-field" data-formengine-input-name="' . htmlspecialchars($elementName) . '" value="' . $itemCanBeSelectedMoreThanOnce . '" />'; |
|
298 | + $html[] = '<select ' . GeneralUtility::implodeAttributes($selectorAttributes, true) . '>'; |
|
299 | + $html[] = implode(LF, $selectorOptionsHtml); |
|
300 | + $html[] = '</select>'; |
|
301 | + $html[] = '</div>'; |
|
302 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
303 | + $html[] = '<div class="btn-group-vertical">'; |
|
304 | + if ($maxItems > 1 && $size >= 5 && $showMoveIcons) { |
|
305 | + $html[] = '<a href="#"'; |
|
306 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-top"'; |
|
307 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
308 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_to_top')) . '"'; |
|
309 | + $html[] = '>'; |
|
310 | + $html[] = $this->iconFactory->getIcon('actions-move-to-top', Icon::SIZE_SMALL)->render(); |
|
311 | + $html[] = '</a>'; |
|
312 | 312 | } |
313 | 313 | if ($maxItems > 1 && $size > 1 && $showMoveIcons) { |
314 | - $html[] = '<a href="#"'; |
|
315 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-up"'; |
|
316 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
317 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_up')) . '"'; |
|
318 | - $html[] = '>'; |
|
319 | - $html[] = $this->iconFactory->getIcon('actions-move-up', Icon::SIZE_SMALL)->render(); |
|
320 | - $html[] = '</a>'; |
|
321 | - $html[] = '<a href="#"'; |
|
322 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-down"'; |
|
323 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
324 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_down')) . '"'; |
|
325 | - $html[] = '>'; |
|
326 | - $html[] = $this->iconFactory->getIcon('actions-move-down', Icon::SIZE_SMALL)->render(); |
|
327 | - $html[] = '</a>'; |
|
314 | + $html[] = '<a href="#"'; |
|
315 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-up"'; |
|
316 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
317 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_up')) . '"'; |
|
318 | + $html[] = '>'; |
|
319 | + $html[] = $this->iconFactory->getIcon('actions-move-up', Icon::SIZE_SMALL)->render(); |
|
320 | + $html[] = '</a>'; |
|
321 | + $html[] = '<a href="#"'; |
|
322 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-down"'; |
|
323 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
324 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_down')) . '"'; |
|
325 | + $html[] = '>'; |
|
326 | + $html[] = $this->iconFactory->getIcon('actions-move-down', Icon::SIZE_SMALL)->render(); |
|
327 | + $html[] = '</a>'; |
|
328 | 328 | } |
329 | 329 | if ($maxItems > 1 && $size >= 5 && $showMoveIcons) { |
330 | - $html[] = '<a href="#"'; |
|
331 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-bottom"'; |
|
332 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
333 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_to_bottom')) . '"'; |
|
334 | - $html[] = '>'; |
|
335 | - $html[] = $this->iconFactory->getIcon('actions-move-to-bottom', Icon::SIZE_SMALL)->render(); |
|
336 | - $html[] = '</a>'; |
|
330 | + $html[] = '<a href="#"'; |
|
331 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-bottom"'; |
|
332 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
333 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_to_bottom')) . '"'; |
|
334 | + $html[] = '>'; |
|
335 | + $html[] = $this->iconFactory->getIcon('actions-move-to-bottom', Icon::SIZE_SMALL)->render(); |
|
336 | + $html[] = '</a>'; |
|
337 | 337 | } |
338 | 338 | if ($showDeleteControl) { |
339 | - $html[] = '<a href="#"'; |
|
340 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-removeoption t3js-revert-unique"'; |
|
341 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
342 | - $html[] = ' data-uid="' . htmlspecialchars($row['uid']) . '"'; |
|
343 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.remove_selected')) . '"'; |
|
344 | - $html[] = '>'; |
|
345 | - $html[] = $this->iconFactory->getIcon('actions-selection-delete', Icon::SIZE_SMALL)->render(); |
|
346 | - $html[] = '</a>'; |
|
339 | + $html[] = '<a href="#"'; |
|
340 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-removeoption t3js-revert-unique"'; |
|
341 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
342 | + $html[] = ' data-uid="' . htmlspecialchars($row['uid']) . '"'; |
|
343 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.remove_selected')) . '"'; |
|
344 | + $html[] = '>'; |
|
345 | + $html[] = $this->iconFactory->getIcon('actions-selection-delete', Icon::SIZE_SMALL)->render(); |
|
346 | + $html[] = '</a>'; |
|
347 | 347 | } |
348 | - $html[] = '</div>'; |
|
349 | - $html[] = '</div>'; |
|
350 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
351 | - $html[] = '<div class="btn-group-vertical">'; |
|
352 | - $html[] = $fieldControlHtml; |
|
353 | - $html[] = '</div>'; |
|
354 | - $html[] = '</div>'; |
|
348 | + $html[] = '</div>'; |
|
349 | + $html[] = '</div>'; |
|
350 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
351 | + $html[] = '<div class="btn-group-vertical">'; |
|
352 | + $html[] = $fieldControlHtml; |
|
353 | + $html[] = '</div>'; |
|
354 | + $html[] = '</div>'; |
|
355 | 355 | if (!empty($fieldWizardHtml)) { |
356 | 356 | $html[] = '<div class="form-wizards-items-bottom">'; |
357 | 357 | $html[] = $fieldWizardHtml; |
358 | 358 | $html[] = '</div>'; |
359 | 359 | } |
360 | - $html[] = '</div>'; |
|
361 | - $html[] = '<input type="hidden" name="' . htmlspecialchars($elementName) . '" value="' . htmlspecialchars(implode(',', $listOfSelectedValues)) . '" />'; |
|
360 | + $html[] = '</div>'; |
|
361 | + $html[] = '<input type="hidden" name="' . htmlspecialchars($elementName) . '" value="' . htmlspecialchars(implode(',', $listOfSelectedValues)) . '" />'; |
|
362 | 362 | $html[] = '</div>'; |
363 | 363 | |
364 | 364 | $resultArray['requireJsModules'][] = ['TYPO3/CMS/Backend/FormEngine/Element/GroupElement' => ' |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | 'listModule' => [ |
59 | 59 | 'renderType' => 'listModule', |
60 | 60 | 'disabled' => true, |
61 | - 'after' => [ 'addRecord' ], |
|
61 | + 'after' => ['addRecord'], |
|
62 | 62 | ], |
63 | 63 | ]; |
64 | 64 | |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | */ |
93 | 93 | protected function renderFieldControl(): array |
94 | 94 | { |
95 | - $alternativeResult = [ |
|
95 | + $alternativeResult = [ |
|
96 | 96 | 'additionalJavaScriptPost' => [], |
97 | 97 | 'additionalHiddenFields' => [], |
98 | 98 | 'additionalInlineLanguageLabelFiles' => [], |
@@ -185,10 +185,10 @@ discard block |
||
185 | 185 | |
186 | 186 | // Html stuff for filter and select filter on top of right side of multi select boxes |
187 | 187 | $filterTextfield[] = '<span class="input-group input-group-sm">'; |
188 | - $filterTextfield[] = '<span class="input-group-addon">'; |
|
189 | - $filterTextfield[] = '<span class="fa fa-filter"></span>'; |
|
190 | - $filterTextfield[] = '</span>'; |
|
191 | - $filterTextfield[] = '<input class="t3js-formengine-multiselect-filter-textfield form-control" value="">'; |
|
188 | + $filterTextfield[] = '<span class="input-group-addon">'; |
|
189 | + $filterTextfield[] = '<span class="fa fa-filter"></span>'; |
|
190 | + $filterTextfield[] = '</span>'; |
|
191 | + $filterTextfield[] = '<input class="t3js-formengine-multiselect-filter-textfield form-control" value="">'; |
|
192 | 192 | $filterTextfield[] = '</span>'; |
193 | 193 | |
194 | 194 | $filterDropDownOptions = []; |
@@ -206,14 +206,14 @@ discard block |
||
206 | 206 | $filterHtml[] = '<div class="form-multigroup-item-wizard">'; |
207 | 207 | if (!empty($filterDropDownOptions)) { |
208 | 208 | $filterHtml[] = '<div class="t3js-formengine-multiselect-filter-container form-multigroup-wrap">'; |
209 | - $filterHtml[] = '<div class="form-multigroup-item form-multigroup-element">'; |
|
210 | - $filterHtml[] = '<select class="form-select form-select-sm t3js-formengine-multiselect-filter-dropdown">'; |
|
211 | - $filterHtml[] = implode(LF, $filterDropDownOptions); |
|
212 | - $filterHtml[] = '</select>'; |
|
213 | - $filterHtml[] = '</div>'; |
|
214 | - $filterHtml[] = '<div class="form-multigroup-item form-multigroup-element">'; |
|
215 | - $filterHtml[] = implode(LF, $filterTextfield); |
|
216 | - $filterHtml[] = '</div>'; |
|
209 | + $filterHtml[] = '<div class="form-multigroup-item form-multigroup-element">'; |
|
210 | + $filterHtml[] = '<select class="form-select form-select-sm t3js-formengine-multiselect-filter-dropdown">'; |
|
211 | + $filterHtml[] = implode(LF, $filterDropDownOptions); |
|
212 | + $filterHtml[] = '</select>'; |
|
213 | + $filterHtml[] = '</div>'; |
|
214 | + $filterHtml[] = '<div class="form-multigroup-item form-multigroup-element">'; |
|
215 | + $filterHtml[] = implode(LF, $filterTextfield); |
|
216 | + $filterHtml[] = '</div>'; |
|
217 | 217 | $filterHtml[] = '</div>'; |
218 | 218 | } else { |
219 | 219 | $filterHtml[] = implode(LF, $filterTextfield); |
@@ -244,112 +244,112 @@ discard block |
||
244 | 244 | |
245 | 245 | $html = []; |
246 | 246 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
247 | - $html[] = $fieldInformationHtml; |
|
248 | - $html[] = '<div class="form-wizards-wrap">'; |
|
249 | - $html[] = '<div class="form-wizards-element">'; |
|
250 | - $html[] = '<input type="hidden" data-formengine-input-name="' . htmlspecialchars($elementName) . '" value="' . (int)$itemCanBeSelectedMoreThanOnce . '" />'; |
|
251 | - $html[] = '<div class="form-multigroup-wrap t3js-formengine-field-group">'; |
|
252 | - $html[] = '<div class="form-multigroup-item form-multigroup-element">'; |
|
253 | - $html[] = '<label>'; |
|
254 | - $html[] = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.selected')); |
|
255 | - $html[] = '</label>'; |
|
256 | - $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
257 | - $html[] = '<div class="form-wizards-element">'; |
|
258 | - $html[] = '<select'; |
|
259 | - $html[] = ' id="' . $selectedOptionsFieldId . '"'; |
|
260 | - $html[] = ' size="' . $size . '"'; |
|
261 | - $html[] = ' class="form-select"'; |
|
262 | - $html[] = $multipleAttribute; |
|
263 | - $html[] = ' data-formengine-input-name="' . htmlspecialchars($elementName) . '"'; |
|
264 | - $html[] = '>'; |
|
265 | - $html[] = implode(LF, $selectedItemsHtml); |
|
266 | - $html[] = '</select>'; |
|
267 | - $html[] = '</div>'; |
|
268 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
269 | - $html[] = '<div class="btn-group-vertical">'; |
|
247 | + $html[] = $fieldInformationHtml; |
|
248 | + $html[] = '<div class="form-wizards-wrap">'; |
|
249 | + $html[] = '<div class="form-wizards-element">'; |
|
250 | + $html[] = '<input type="hidden" data-formengine-input-name="' . htmlspecialchars($elementName) . '" value="' . (int)$itemCanBeSelectedMoreThanOnce . '" />'; |
|
251 | + $html[] = '<div class="form-multigroup-wrap t3js-formengine-field-group">'; |
|
252 | + $html[] = '<div class="form-multigroup-item form-multigroup-element">'; |
|
253 | + $html[] = '<label>'; |
|
254 | + $html[] = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.selected')); |
|
255 | + $html[] = '</label>'; |
|
256 | + $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
257 | + $html[] = '<div class="form-wizards-element">'; |
|
258 | + $html[] = '<select'; |
|
259 | + $html[] = ' id="' . $selectedOptionsFieldId . '"'; |
|
260 | + $html[] = ' size="' . $size . '"'; |
|
261 | + $html[] = ' class="form-select"'; |
|
262 | + $html[] = $multipleAttribute; |
|
263 | + $html[] = ' data-formengine-input-name="' . htmlspecialchars($elementName) . '"'; |
|
264 | + $html[] = '>'; |
|
265 | + $html[] = implode(LF, $selectedItemsHtml); |
|
266 | + $html[] = '</select>'; |
|
267 | + $html[] = '</div>'; |
|
268 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
269 | + $html[] = '<div class="btn-group-vertical">'; |
|
270 | 270 | if ($maxItems > 1 && $size >= 5) { |
271 | - $html[] = '<a href="#"'; |
|
272 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-top"'; |
|
273 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
274 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_to_top')) . '"'; |
|
275 | - $html[] = '>'; |
|
276 | - $html[] = $this->iconFactory->getIcon('actions-move-to-top', Icon::SIZE_SMALL)->render(); |
|
277 | - $html[] = '</a>'; |
|
271 | + $html[] = '<a href="#"'; |
|
272 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-top"'; |
|
273 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
274 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_to_top')) . '"'; |
|
275 | + $html[] = '>'; |
|
276 | + $html[] = $this->iconFactory->getIcon('actions-move-to-top', Icon::SIZE_SMALL)->render(); |
|
277 | + $html[] = '</a>'; |
|
278 | 278 | } |
279 | 279 | if ($maxItems > 1) { |
280 | - $html[] = '<a href="#"'; |
|
281 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-up"'; |
|
282 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
283 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_up')) . '"'; |
|
284 | - $html[] = '>'; |
|
285 | - $html[] = $this->iconFactory->getIcon('actions-move-up', Icon::SIZE_SMALL)->render(); |
|
286 | - $html[] = '</a>'; |
|
287 | - $html[] = '<a href="#"'; |
|
288 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-down"'; |
|
289 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
290 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_down')) . '"'; |
|
291 | - $html[] = '>'; |
|
292 | - $html[] = $this->iconFactory->getIcon('actions-move-down', Icon::SIZE_SMALL)->render(); |
|
293 | - $html[] = '</a>'; |
|
280 | + $html[] = '<a href="#"'; |
|
281 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-up"'; |
|
282 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
283 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_up')) . '"'; |
|
284 | + $html[] = '>'; |
|
285 | + $html[] = $this->iconFactory->getIcon('actions-move-up', Icon::SIZE_SMALL)->render(); |
|
286 | + $html[] = '</a>'; |
|
287 | + $html[] = '<a href="#"'; |
|
288 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-down"'; |
|
289 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
290 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_down')) . '"'; |
|
291 | + $html[] = '>'; |
|
292 | + $html[] = $this->iconFactory->getIcon('actions-move-down', Icon::SIZE_SMALL)->render(); |
|
293 | + $html[] = '</a>'; |
|
294 | 294 | } |
295 | 295 | if ($maxItems > 1 && $size >= 5) { |
296 | - $html[] = '<a href="#"'; |
|
297 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-bottom"'; |
|
298 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
299 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_to_bottom')) . '"'; |
|
300 | - $html[] = '>'; |
|
301 | - $html[] = $this->iconFactory->getIcon('actions-move-to-bottom', Icon::SIZE_SMALL)->render(); |
|
302 | - $html[] = '</a>'; |
|
296 | + $html[] = '<a href="#"'; |
|
297 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-bottom"'; |
|
298 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
299 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_to_bottom')) . '"'; |
|
300 | + $html[] = '>'; |
|
301 | + $html[] = $this->iconFactory->getIcon('actions-move-to-bottom', Icon::SIZE_SMALL)->render(); |
|
302 | + $html[] = '</a>'; |
|
303 | 303 | } |
304 | - $html[] = $alternativeFieldControlHtml; |
|
305 | - $html[] = '<a href="#"'; |
|
306 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-removeoption"'; |
|
307 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
308 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.remove_selected')) . '"'; |
|
309 | - $html[] = '>'; |
|
310 | - $html[] = $this->iconFactory->getIcon('actions-selection-delete', Icon::SIZE_SMALL)->render(); |
|
311 | - $html[] = '</a>'; |
|
312 | - $html[] = '</div>'; |
|
313 | - $html[] = '</div>'; |
|
314 | - $html[] = '</div>'; |
|
315 | - $html[] = '</div>'; |
|
316 | - $html[] = '<div class="form-multigroup-item form-multigroup-element">'; |
|
317 | - $html[] = '<label>'; |
|
318 | - $html[] = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.items')); |
|
319 | - $html[] = '</label>'; |
|
320 | - $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
321 | - $html[] = '<div class="form-wizards-element">'; |
|
322 | - $html[] = implode(LF, $filterHtml); |
|
323 | - $html[] = '<select'; |
|
324 | - $html[] = ' data-relatedfieldname="' . htmlspecialchars($elementName) . '"'; |
|
325 | - $html[] = ' data-exclusivevalues="' . htmlspecialchars($config['exclusiveKeys']) . '"'; |
|
326 | - $html[] = ' id="' . $availableOptionsFieldId . '"'; |
|
327 | - $html[] = ' class="form-select t3js-formengine-select-itemstoselect"'; |
|
328 | - $html[] = ' size="' . $size . '"'; |
|
329 | - $html[] = ' onchange="' . htmlspecialchars(implode('', $parameterArray['fieldChangeFunc'])) . '"'; |
|
330 | - $html[] = ' data-formengine-validation-rules="' . htmlspecialchars($this->getValidationDataAsJsonString($config)) . '"'; |
|
331 | - $html[] = '>'; |
|
332 | - $html[] = implode(LF, $selectableItemsHtml); |
|
333 | - $html[] = '</select>'; |
|
334 | - $html[] = '</div>'; |
|
304 | + $html[] = $alternativeFieldControlHtml; |
|
305 | + $html[] = '<a href="#"'; |
|
306 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-removeoption"'; |
|
307 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
308 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.remove_selected')) . '"'; |
|
309 | + $html[] = '>'; |
|
310 | + $html[] = $this->iconFactory->getIcon('actions-selection-delete', Icon::SIZE_SMALL)->render(); |
|
311 | + $html[] = '</a>'; |
|
312 | + $html[] = '</div>'; |
|
313 | + $html[] = '</div>'; |
|
314 | + $html[] = '</div>'; |
|
315 | + $html[] = '</div>'; |
|
316 | + $html[] = '<div class="form-multigroup-item form-multigroup-element">'; |
|
317 | + $html[] = '<label>'; |
|
318 | + $html[] = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.items')); |
|
319 | + $html[] = '</label>'; |
|
320 | + $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
321 | + $html[] = '<div class="form-wizards-element">'; |
|
322 | + $html[] = implode(LF, $filterHtml); |
|
323 | + $html[] = '<select'; |
|
324 | + $html[] = ' data-relatedfieldname="' . htmlspecialchars($elementName) . '"'; |
|
325 | + $html[] = ' data-exclusivevalues="' . htmlspecialchars($config['exclusiveKeys']) . '"'; |
|
326 | + $html[] = ' id="' . $availableOptionsFieldId . '"'; |
|
327 | + $html[] = ' class="form-select t3js-formengine-select-itemstoselect"'; |
|
328 | + $html[] = ' size="' . $size . '"'; |
|
329 | + $html[] = ' onchange="' . htmlspecialchars(implode('', $parameterArray['fieldChangeFunc'])) . '"'; |
|
330 | + $html[] = ' data-formengine-validation-rules="' . htmlspecialchars($this->getValidationDataAsJsonString($config)) . '"'; |
|
331 | + $html[] = '>'; |
|
332 | + $html[] = implode(LF, $selectableItemsHtml); |
|
333 | + $html[] = '</select>'; |
|
334 | + $html[] = '</div>'; |
|
335 | 335 | if (!empty($fieldControlHtml)) { |
336 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
337 | - $html[] = '<div class="btn-group-vertical">'; |
|
338 | - $html[] = $fieldControlHtml; |
|
339 | - $html[] = '</div>'; |
|
340 | - $html[] = '</div>'; |
|
336 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
337 | + $html[] = '<div class="btn-group-vertical">'; |
|
338 | + $html[] = $fieldControlHtml; |
|
339 | + $html[] = '</div>'; |
|
340 | + $html[] = '</div>'; |
|
341 | 341 | } |
342 | - $html[] = '</div>'; |
|
343 | - $html[] = '</div>'; |
|
344 | - $html[] = '</div>'; |
|
345 | - $html[] = '<input type="hidden" name="' . htmlspecialchars($elementName) . '" value="' . htmlspecialchars(implode(',', $listOfSelectedValues)) . '" />'; |
|
346 | - $html[] = '</div>'; |
|
342 | + $html[] = '</div>'; |
|
343 | + $html[] = '</div>'; |
|
344 | + $html[] = '</div>'; |
|
345 | + $html[] = '<input type="hidden" name="' . htmlspecialchars($elementName) . '" value="' . htmlspecialchars(implode(',', $listOfSelectedValues)) . '" />'; |
|
346 | + $html[] = '</div>'; |
|
347 | 347 | if (!empty($fieldWizardHtml)) { |
348 | 348 | $html[] = '<div class="form-wizards-items-bottom">'; |
349 | 349 | $html[] = $fieldWizardHtml; |
350 | 350 | $html[] = '</div>'; |
351 | 351 | } |
352 | - $html[] = '</div>'; |
|
352 | + $html[] = '</div>'; |
|
353 | 353 | $html[] = '</div>'; |
354 | 354 | |
355 | 355 | $resultArray['requireJsModules'][] = ['TYPO3/CMS/Backend/FormEngine/Element/SelectMultipleSideBySideElement' => ' |
@@ -416,29 +416,29 @@ discard block |
||
416 | 416 | |
417 | 417 | $html = []; |
418 | 418 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
419 | - $html[] = $fieldInformationHtml; |
|
420 | - $html[] = '<div class="form-wizards-wrap">'; |
|
421 | - $html[] = '<div class="form-wizards-element">'; |
|
422 | - $html[] = '<label>'; |
|
423 | - $html[] = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.selected')); |
|
424 | - $html[] = '</label>'; |
|
425 | - $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
426 | - $html[] = '<div class="form-wizards-element">'; |
|
427 | - $html[] = '<select'; |
|
428 | - $html[] = ' id="' . StringUtility::getUniqueId('tceforms-multiselect-') . '"'; |
|
429 | - $html[] = ' size="' . $size . '"'; |
|
430 | - $html[] = ' class="form-select"'; |
|
431 | - $html[] = $multiple; |
|
432 | - $html[] = ' data-formengine-input-name="' . htmlspecialchars($fieldName) . '"'; |
|
433 | - $html[] = ' disabled="disabled">'; |
|
434 | - $html[] = '/>'; |
|
435 | - $html[] = implode(LF, $optionsHtml); |
|
436 | - $html[] = '</select>'; |
|
437 | - $html[] = '</div>'; |
|
438 | - $html[] = '</div>'; |
|
439 | - $html[] = '<input type="hidden" name="' . htmlspecialchars($fieldName) . '" value="' . htmlspecialchars(implode(',', $listOfSelectedValues)) . '" />'; |
|
440 | - $html[] = '</div>'; |
|
441 | - $html[] = '</div>'; |
|
419 | + $html[] = $fieldInformationHtml; |
|
420 | + $html[] = '<div class="form-wizards-wrap">'; |
|
421 | + $html[] = '<div class="form-wizards-element">'; |
|
422 | + $html[] = '<label>'; |
|
423 | + $html[] = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.selected')); |
|
424 | + $html[] = '</label>'; |
|
425 | + $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
426 | + $html[] = '<div class="form-wizards-element">'; |
|
427 | + $html[] = '<select'; |
|
428 | + $html[] = ' id="' . StringUtility::getUniqueId('tceforms-multiselect-') . '"'; |
|
429 | + $html[] = ' size="' . $size . '"'; |
|
430 | + $html[] = ' class="form-select"'; |
|
431 | + $html[] = $multiple; |
|
432 | + $html[] = ' data-formengine-input-name="' . htmlspecialchars($fieldName) . '"'; |
|
433 | + $html[] = ' disabled="disabled">'; |
|
434 | + $html[] = '/>'; |
|
435 | + $html[] = implode(LF, $optionsHtml); |
|
436 | + $html[] = '</select>'; |
|
437 | + $html[] = '</div>'; |
|
438 | + $html[] = '</div>'; |
|
439 | + $html[] = '<input type="hidden" name="' . htmlspecialchars($fieldName) . '" value="' . htmlspecialchars(implode(',', $listOfSelectedValues)) . '" />'; |
|
440 | + $html[] = '</div>'; |
|
441 | + $html[] = '</div>'; |
|
442 | 442 | $html[] = '</div>'; |
443 | 443 | |
444 | 444 | $resultArray['html'] = implode(LF, $html); |
@@ -138,26 +138,26 @@ |
||
138 | 138 | |
139 | 139 | $html = []; |
140 | 140 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
141 | - $html[] = $fieldInformationHtml; |
|
142 | - $html[] = '<div class="form-control-wrap">'; |
|
143 | - $html[] = '<div class="form-wizards-wrap">'; |
|
144 | - $html[] = '<div class="form-wizards-element">'; |
|
145 | - $html[] = $editorHtml; |
|
146 | - $html[] = '</div>'; |
|
141 | + $html[] = $fieldInformationHtml; |
|
142 | + $html[] = '<div class="form-control-wrap">'; |
|
143 | + $html[] = '<div class="form-wizards-wrap">'; |
|
144 | + $html[] = '<div class="form-wizards-element">'; |
|
145 | + $html[] = $editorHtml; |
|
146 | + $html[] = '</div>'; |
|
147 | 147 | if (!empty($fieldControlHtml)) { |
148 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
149 | - $html[] = '<div class="btn-group">'; |
|
150 | - $html[] = $fieldControlHtml; |
|
151 | - $html[] = '</div>'; |
|
152 | - $html[] = '</div>'; |
|
148 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
149 | + $html[] = '<div class="btn-group">'; |
|
150 | + $html[] = $fieldControlHtml; |
|
151 | + $html[] = '</div>'; |
|
152 | + $html[] = '</div>'; |
|
153 | 153 | } |
154 | 154 | if (!empty($fieldWizardHtml)) { |
155 | 155 | $html[] = '<div class="form-wizards-items-bottom">'; |
156 | 156 | $html[] = $fieldWizardHtml; |
157 | 157 | $html[] = '</div>'; |
158 | 158 | } |
159 | - $html[] = '</div>'; |
|
160 | - $html[] = '</div>'; |
|
159 | + $html[] = '</div>'; |
|
160 | + $html[] = '</div>'; |
|
161 | 161 | $html[] = '</div>'; |
162 | 162 | |
163 | 163 | $this->resultArray['html'] = implode(LF, $html); |
@@ -164,8 +164,8 @@ discard block |
||
164 | 164 | |
165 | 165 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item" data-formengine-validation-rules="' . htmlspecialchars($this->getValidationDataAsJsonString($config)) . '">'; |
166 | 166 | $html[] = $fieldInformationHtml; |
167 | - $html[] = '<div class="form-wizards-wrap">'; |
|
168 | - $html[] = '<div class="form-wizards-element">'; |
|
167 | + $html[] = '<div class="form-wizards-wrap">'; |
|
168 | + $html[] = '<div class="form-wizards-element">'; |
|
169 | 169 | |
170 | 170 | // Add an empty hidden field which will send a blank value if all items are unselected. |
171 | 171 | $html[] = '<input type="hidden" class="select-checkbox" name="' . htmlspecialchars($parameterArray['itemFormElName']) . '" value="">'; |
@@ -189,22 +189,22 @@ discard block |
||
189 | 189 | // Render rows |
190 | 190 | foreach ($group['items'] as $item) { |
191 | 191 | $tableRows[] = '<tr class="' . $item['class'] . '">'; |
192 | - $tableRows[] = '<td class="col-checkbox">'; |
|
193 | - $tableRows[] = '<input type="checkbox" class="t3js-checkbox" ' |
|
192 | + $tableRows[] = '<td class="col-checkbox">'; |
|
193 | + $tableRows[] = '<input type="checkbox" class="t3js-checkbox" ' |
|
194 | 194 | . 'id="' . $item['id'] . '" ' |
195 | 195 | . 'name="' . htmlspecialchars($item['name']) . '" ' |
196 | 196 | . 'value="' . htmlspecialchars($item['value']) . '" ' |
197 | 197 | . 'onclick="' . htmlspecialchars($sOnChange) . '" ' |
198 | 198 | . ($item['checked'] ? 'checked=checked ' : '') |
199 | 199 | . ($item['disabled'] ? 'disabled=disabled ' : '') . '>'; |
200 | - $tableRows[] = '</td>'; |
|
201 | - $tableRows[] = '<td class="col-title">'; |
|
202 | - $tableRows[] = '<label class="label-block nowrap-disabled" for="' . $item['id'] . '">'; |
|
203 | - $tableRows[] = '<span class="inline-icon">' . $item['icon'] . '</span>'; |
|
204 | - $tableRows[] = htmlspecialchars($this->appendValueToLabelInDebugMode($item['title'], $item['value']), ENT_COMPAT, 'UTF-8', false); |
|
205 | - $tableRows[] = '</label>'; |
|
206 | - $tableRows[] = '</td>'; |
|
207 | - $tableRows[] = '<td class="text-right">' . $item['help'] . '</td>'; |
|
200 | + $tableRows[] = '</td>'; |
|
201 | + $tableRows[] = '<td class="col-title">'; |
|
202 | + $tableRows[] = '<label class="label-block nowrap-disabled" for="' . $item['id'] . '">'; |
|
203 | + $tableRows[] = '<span class="inline-icon">' . $item['icon'] . '</span>'; |
|
204 | + $tableRows[] = htmlspecialchars($this->appendValueToLabelInDebugMode($item['title'], $item['value']), ENT_COMPAT, 'UTF-8', false); |
|
205 | + $tableRows[] = '</label>'; |
|
206 | + $tableRows[] = '</td>'; |
|
207 | + $tableRows[] = '<td class="text-right">' . $item['help'] . '</td>'; |
|
208 | 208 | $tableRows[] = '</tr>'; |
209 | 209 | } |
210 | 210 | |
@@ -226,20 +226,20 @@ discard block |
||
226 | 226 | } |
227 | 227 | $checkboxId = StringUtility::getUniqueId($groupId); |
228 | 228 | $title = htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.toggleall')); |
229 | - $html[] = '<div class="table-responsive">'; |
|
230 | - $html[] = '<table class="table table-transparent table-hover">'; |
|
231 | - $html[] = '<thead>'; |
|
232 | - $html[] = '<tr>'; |
|
233 | - $html[] = '<th class="col-checkbox">'; |
|
234 | - $html[] = '<input type="checkbox" id="' . $checkboxId . '" class="t3js-toggle-checkboxes" data-bs-trigger="hover" data-bs-placement="right" data-title="' . $title . '" data-bs-toggle="tooltip" />'; |
|
235 | - $html[] = '</th>'; |
|
236 | - $html[] = '<th class="col-title"><label for="' . $checkboxId . '">' . $title . '</label></th>'; |
|
237 | - $html[] = '<th class="text-right">' . $resetGroupBtn . '</th>'; |
|
238 | - $html[] = '</tr>'; |
|
239 | - $html[] = '</thead>'; |
|
240 | - $html[] = '<tbody>' . implode(LF, $tableRows) . '</tbody>'; |
|
241 | - $html[] = '</table>'; |
|
242 | - $html[] = '</div>'; |
|
229 | + $html[] = '<div class="table-responsive">'; |
|
230 | + $html[] = '<table class="table table-transparent table-hover">'; |
|
231 | + $html[] = '<thead>'; |
|
232 | + $html[] = '<tr>'; |
|
233 | + $html[] = '<th class="col-checkbox">'; |
|
234 | + $html[] = '<input type="checkbox" id="' . $checkboxId . '" class="t3js-toggle-checkboxes" data-bs-trigger="hover" data-bs-placement="right" data-title="' . $title . '" data-bs-toggle="tooltip" />'; |
|
235 | + $html[] = '</th>'; |
|
236 | + $html[] = '<th class="col-title"><label for="' . $checkboxId . '">' . $title . '</label></th>'; |
|
237 | + $html[] = '<th class="text-right">' . $resetGroupBtn . '</th>'; |
|
238 | + $html[] = '</tr>'; |
|
239 | + $html[] = '</thead>'; |
|
240 | + $html[] = '<tbody>' . implode(LF, $tableRows) . '</tbody>'; |
|
241 | + $html[] = '</table>'; |
|
242 | + $html[] = '</div>'; |
|
243 | 243 | if (is_array($group['header'])) { |
244 | 244 | $html[] = '</div>'; |
245 | 245 | } |
@@ -253,13 +253,13 @@ discard block |
||
253 | 253 | $html[] = '</div>'; |
254 | 254 | } |
255 | 255 | |
256 | - $html[] = '</div>'; |
|
256 | + $html[] = '</div>'; |
|
257 | 257 | if (!$disabled && !empty($fieldWizardHtml)) { |
258 | - $html[] = '<div class="form-wizards-items-bottom">'; |
|
259 | - $html[] = $fieldWizardHtml; |
|
260 | - $html[] = '</div>'; |
|
258 | + $html[] = '<div class="form-wizards-items-bottom">'; |
|
259 | + $html[] = $fieldWizardHtml; |
|
260 | + $html[] = '</div>'; |
|
261 | 261 | } |
262 | - $html[] = '</div>'; |
|
262 | + $html[] = '</div>'; |
|
263 | 263 | $html[] = '</div>'; |
264 | 264 | } |
265 | 265 |
@@ -282,7 +282,7 @@ |
||
282 | 282 | // Try adding or editing |
283 | 283 | $content .= $this->editTaskAction($requestUri); |
284 | 284 | $sectionTitle = $this->getLanguageService()->getLL('action.' . $this->getCurrentAction()); |
285 | - } catch (\LogicException|\UnexpectedValueException|\OutOfBoundsException $e) { |
|
285 | + } catch (\LogicException | \UnexpectedValueException | \OutOfBoundsException $e) { |
|
286 | 286 | // Catching all types of exceptions that were previously handled and |
287 | 287 | // converted to messages |
288 | 288 | $content .= $this->listTasksAction(); |
@@ -76,7 +76,7 @@ |
||
76 | 76 | 'route' => $this->getRequest()->getAttribute('route')->getPath(), |
77 | 77 | 'action' => $this->request->getControllerActionName(), |
78 | 78 | 'controller' => $this->request->getControllerName(), |
79 | - 'compareGroupUidList' => array_map(static function ($value) { // uid as key and force value to 1 |
|
79 | + 'compareGroupUidList' => array_map(static function($value) { // uid as key and force value to 1 |
|
80 | 80 | return 1; |
81 | 81 | }, array_flip($compareGroupUidList)), |
82 | 82 | 'compareGroupList' => !empty($compareGroupUidList) ? $this->backendUserGroupRepository->findByUidList($compareGroupUidList) : [], |
@@ -596,7 +596,7 @@ |
||
596 | 596 | break; |
597 | 597 | default: |
598 | 598 | if (!$hasDiff) { |
599 | - $state = 'unchanged'; |
|
599 | + $state = 'unchanged'; |
|
600 | 600 | } else { |
601 | 601 | $state = ($hiddenState ?: 'modified'); |
602 | 602 | } |