@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | if (MathUtility::canBeInterpretedAsInteger($fileUid)) { |
228 | 228 | try { |
229 | 229 | $file = GeneralUtility::makeInstance(ResourceFactory::class)->getFileObject($fileUid); |
230 | - } catch (FileDoesNotExistException|\InvalidArgumentException $e) { |
|
230 | + } catch (FileDoesNotExistException | \InvalidArgumentException $e) { |
|
231 | 231 | } |
232 | 232 | } |
233 | 233 | return $file; |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | foreach ($config['cropVariants'] as $id => $cropVariant) { |
278 | 278 | |
279 | 279 | // Filter allowed aspect ratios |
280 | - $cropVariant['allowedAspectRatios'] = array_filter($cropVariant['allowedAspectRatios'] ?? [], static function ($aspectRatio) { |
|
280 | + $cropVariant['allowedAspectRatios'] = array_filter($cropVariant['allowedAspectRatios'] ?? [], static function($aspectRatio) { |
|
281 | 281 | return !(bool)($aspectRatio['disabled'] ?? false); |
282 | 282 | }); |
283 | 283 |
@@ -114,7 +114,7 @@ |
||
114 | 114 | |
115 | 115 | $overwrittenTaskList = $input->getOption('task'); |
116 | 116 | $overwrittenTaskList = is_array($overwrittenTaskList) ? $overwrittenTaskList : []; |
117 | - $overwrittenTaskList = array_filter($overwrittenTaskList, fn ($value) => MathUtility::canBeInterpretedAsInteger($value)); |
|
117 | + $overwrittenTaskList = array_filter($overwrittenTaskList, fn($value) => MathUtility::canBeInterpretedAsInteger($value)); |
|
118 | 118 | $overwrittenTaskList = array_map('intval', $overwrittenTaskList); |
119 | 119 | if ($overwrittenTaskList !== []) { |
120 | 120 | $this->overwrittenTaskList = $overwrittenTaskList; |
@@ -104,14 +104,14 @@ discard block |
||
104 | 104 | |
105 | 105 | $html = []; |
106 | 106 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
107 | - $html[] = $fieldInformationHtml; |
|
108 | - $html[] = '<div class="form-wizards-wrap">'; |
|
109 | - $html[] = '<div class="form-wizards-element">'; |
|
110 | - $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
111 | - $html[] = '<input ' . GeneralUtility::implodeAttributes($disabledFieldAttributes, true) . ' disabled>'; |
|
112 | - $html[] = '</div>'; |
|
113 | - $html[] = '</div>'; |
|
114 | - $html[] = '</div>'; |
|
107 | + $html[] = $fieldInformationHtml; |
|
108 | + $html[] = '<div class="form-wizards-wrap">'; |
|
109 | + $html[] = '<div class="form-wizards-element">'; |
|
110 | + $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
111 | + $html[] = '<input ' . GeneralUtility::implodeAttributes($disabledFieldAttributes, true) . ' disabled>'; |
|
112 | + $html[] = '</div>'; |
|
113 | + $html[] = '</div>'; |
|
114 | + $html[] = '</div>'; |
|
115 | 115 | $html[] = '</div>'; |
116 | 116 | $resultArray['html'] = implode(LF, $html); |
117 | 117 | return $resultArray; |
@@ -253,26 +253,26 @@ discard block |
||
253 | 253 | |
254 | 254 | $mainFieldHtml = []; |
255 | 255 | $mainFieldHtml[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
256 | - $mainFieldHtml[] = '<div class="form-wizards-wrap">'; |
|
257 | - $mainFieldHtml[] = '<div class="form-wizards-element">'; |
|
258 | - $mainFieldHtml[] = '<input type="' . $inputType . '" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />'; |
|
259 | - $mainFieldHtml[] = '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />'; |
|
260 | - $mainFieldHtml[] = '</div>'; |
|
256 | + $mainFieldHtml[] = '<div class="form-wizards-wrap">'; |
|
257 | + $mainFieldHtml[] = '<div class="form-wizards-element">'; |
|
258 | + $mainFieldHtml[] = '<input type="' . $inputType . '" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />'; |
|
259 | + $mainFieldHtml[] = '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />'; |
|
260 | + $mainFieldHtml[] = '</div>'; |
|
261 | 261 | if (!empty($valuePickerHtml) || !empty($valueSliderHtml) || !empty($fieldControlHtml)) { |
262 | - $mainFieldHtml[] = '<div class="form-wizards-items-aside">'; |
|
263 | - $mainFieldHtml[] = '<div class="btn-group">'; |
|
264 | - $mainFieldHtml[] = implode(LF, $valuePickerHtml); |
|
265 | - $mainFieldHtml[] = implode(LF, $valueSliderHtml); |
|
266 | - $mainFieldHtml[] = $fieldControlHtml; |
|
267 | - $mainFieldHtml[] = '</div>'; |
|
268 | - $mainFieldHtml[] = '</div>'; |
|
262 | + $mainFieldHtml[] = '<div class="form-wizards-items-aside">'; |
|
263 | + $mainFieldHtml[] = '<div class="btn-group">'; |
|
264 | + $mainFieldHtml[] = implode(LF, $valuePickerHtml); |
|
265 | + $mainFieldHtml[] = implode(LF, $valueSliderHtml); |
|
266 | + $mainFieldHtml[] = $fieldControlHtml; |
|
267 | + $mainFieldHtml[] = '</div>'; |
|
268 | + $mainFieldHtml[] = '</div>'; |
|
269 | 269 | } |
270 | 270 | if (!empty($fieldWizardHtml)) { |
271 | 271 | $mainFieldHtml[] = '<div class="form-wizards-items-bottom">'; |
272 | 272 | $mainFieldHtml[] = $fieldWizardHtml; |
273 | 273 | $mainFieldHtml[] = '</div>'; |
274 | 274 | } |
275 | - $mainFieldHtml[] = '</div>'; |
|
275 | + $mainFieldHtml[] = '</div>'; |
|
276 | 276 | $mainFieldHtml[] = '</div>'; |
277 | 277 | $mainFieldHtml = implode(LF, $mainFieldHtml); |
278 | 278 | |
@@ -282,11 +282,11 @@ discard block |
||
282 | 282 | $fullElement = []; |
283 | 283 | $fullElement[] = '<div class="t3-form-field-disable"></div>'; |
284 | 284 | $fullElement[] = '<div class="form-check t3-form-field-eval-null-checkbox">'; |
285 | - $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />'; |
|
286 | - $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />'; |
|
287 | - $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
288 | - $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox'); |
|
289 | - $fullElement[] = '</label>'; |
|
285 | + $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />'; |
|
286 | + $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />'; |
|
287 | + $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
288 | + $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox'); |
|
289 | + $fullElement[] = '</label>'; |
|
290 | 290 | $fullElement[] = '</div>'; |
291 | 291 | $fullElement[] = $mainFieldHtml; |
292 | 292 | $fullElement = implode(LF, $fullElement); |
@@ -315,19 +315,19 @@ discard block |
||
315 | 315 | } |
316 | 316 | $fullElement = []; |
317 | 317 | $fullElement[] = '<div class="form-check t3js-form-field-eval-null-placeholder-checkbox">'; |
318 | - $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />'; |
|
319 | - $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />'; |
|
320 | - $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
321 | - $fullElement[] = $overrideLabel; |
|
322 | - $fullElement[] = '</label>'; |
|
318 | + $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />'; |
|
319 | + $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />'; |
|
320 | + $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
321 | + $fullElement[] = $overrideLabel; |
|
322 | + $fullElement[] = '</label>'; |
|
323 | 323 | $fullElement[] = '</div>'; |
324 | 324 | $fullElement[] = '<div class="t3js-formengine-placeholder-placeholder">'; |
325 | - $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">'; |
|
326 | - $fullElement[] = '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />'; |
|
327 | - $fullElement[] = '</div>'; |
|
325 | + $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">'; |
|
326 | + $fullElement[] = '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />'; |
|
327 | + $fullElement[] = '</div>'; |
|
328 | 328 | $fullElement[] = '</div>'; |
329 | 329 | $fullElement[] = '<div class="t3js-formengine-placeholder-formfield">'; |
330 | - $fullElement[] = $mainFieldHtml; |
|
330 | + $fullElement[] = $mainFieldHtml; |
|
331 | 331 | $fullElement[] = '</div>'; |
332 | 332 | $fullElement = implode(LF, $fullElement); |
333 | 333 | } |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | if (!in_array($field, $fieldList, true)) { |
245 | 245 | continue; |
246 | 246 | } |
247 | - if (($config['table'] ?? '') === 'be_users' && !in_array($field, ['password', 'password2', 'passwordCurrent', 'email', 'realName', 'admin', 'avatar'], true)) { |
|
247 | + if (($config['table'] ?? '') === 'be_users' && !in_array($field, ['password', 'password2', 'passwordCurrent', 'email', 'realName', 'admin', 'avatar'], true)) { |
|
248 | 248 | if (!isset($config['access']) || $this->checkAccess($config) && ($backendUser->user[$field] !== $d['be_users'][$field])) { |
249 | 249 | if (($config['type'] ?? false) === 'check') { |
250 | 250 | $fieldValue = isset($d['be_users'][$field]) ? 1 : 0; |
@@ -664,8 +664,8 @@ discard block |
||
664 | 664 | break; |
665 | 665 | } |
666 | 666 | $html .= '<a href="' . htmlspecialchars((string)$uriBuilder->buildUriFromRoute('mfa')) . '" class="btn btn-' . ($hasActiveProviders ? 'default' : 'success') . '">'; |
667 | - $html .= $this->iconFactory->getIcon($hasActiveProviders ? 'actions-cog' : 'actions-add', Icon::SIZE_SMALL); |
|
668 | - $html .= ' <span>' . htmlspecialchars($lang->getLL('mfaProviders.' . ($hasActiveProviders ? 'manageLinkTitle' : 'setupLinkTitle'))) . '</span>'; |
|
667 | + $html .= $this->iconFactory->getIcon($hasActiveProviders ? 'actions-cog' : 'actions-add', Icon::SIZE_SMALL); |
|
668 | + $html .= ' <span>' . htmlspecialchars($lang->getLL('mfaProviders.' . ($hasActiveProviders ? 'manageLinkTitle' : 'setupLinkTitle'))) . '</span>'; |
|
669 | 669 | $html .= '</a>'; |
670 | 670 | break; |
671 | 671 | default: |
@@ -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); |
@@ -118,16 +118,16 @@ discard block |
||
118 | 118 | if ($config['readOnly'] ?? false) { |
119 | 119 | $html = []; |
120 | 120 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
121 | - $html[] = $fieldInformationHtml; |
|
122 | - $html[] = '<div class="form-wizards-wrap">'; |
|
123 | - $html[] = '<div class="form-wizards-element">'; |
|
124 | - $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
125 | - $html[] = '<textarea class="form-control" rows="' . $rows . '" disabled>'; |
|
126 | - $html[] = htmlspecialchars($itemValue); |
|
127 | - $html[] = '</textarea>'; |
|
128 | - $html[] = '</div>'; |
|
129 | - $html[] = '</div>'; |
|
130 | - $html[] = '</div>'; |
|
121 | + $html[] = $fieldInformationHtml; |
|
122 | + $html[] = '<div class="form-wizards-wrap">'; |
|
123 | + $html[] = '<div class="form-wizards-element">'; |
|
124 | + $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
125 | + $html[] = '<textarea class="form-control" rows="' . $rows . '" disabled>'; |
|
126 | + $html[] = htmlspecialchars($itemValue); |
|
127 | + $html[] = '</textarea>'; |
|
128 | + $html[] = '</div>'; |
|
129 | + $html[] = '</div>'; |
|
130 | + $html[] = '</div>'; |
|
131 | 131 | $html[] = '</div>'; |
132 | 132 | $resultArray['html'] = implode(LF, $html); |
133 | 133 | return $resultArray; |
@@ -197,26 +197,26 @@ discard block |
||
197 | 197 | |
198 | 198 | $html = []; |
199 | 199 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
200 | - $html[] = $fieldInformationHtml; |
|
201 | - $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
202 | - $html[] = '<div class="form-wizards-wrap">'; |
|
203 | - $html[] = '<div class="form-wizards-element">'; |
|
204 | - $html[] = '<textarea ' . GeneralUtility::implodeAttributes($attributes, true) . '>' . htmlspecialchars($itemValue) . '</textarea>'; |
|
205 | - $html[] = '</div>'; |
|
200 | + $html[] = $fieldInformationHtml; |
|
201 | + $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
202 | + $html[] = '<div class="form-wizards-wrap">'; |
|
203 | + $html[] = '<div class="form-wizards-element">'; |
|
204 | + $html[] = '<textarea ' . GeneralUtility::implodeAttributes($attributes, true) . '>' . htmlspecialchars($itemValue) . '</textarea>'; |
|
205 | + $html[] = '</div>'; |
|
206 | 206 | if (!empty($fieldControlHtml)) { |
207 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
208 | - $html[] = '<div class="btn-group">'; |
|
209 | - $html[] = $fieldControlHtml; |
|
210 | - $html[] = '</div>'; |
|
211 | - $html[] = '</div>'; |
|
207 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
208 | + $html[] = '<div class="btn-group">'; |
|
209 | + $html[] = $fieldControlHtml; |
|
210 | + $html[] = '</div>'; |
|
211 | + $html[] = '</div>'; |
|
212 | 212 | } |
213 | 213 | if (!empty($fieldWizardHtml)) { |
214 | 214 | $html[] = '<div class="form-wizards-items-bottom">'; |
215 | 215 | $html[] = $fieldWizardHtml; |
216 | 216 | $html[] = '</div>'; |
217 | 217 | } |
218 | - $html[] = '</div>'; |
|
219 | - $html[] = '</div>'; |
|
218 | + $html[] = '</div>'; |
|
219 | + $html[] = '</div>'; |
|
220 | 220 | $html[] = '</div>'; |
221 | 221 | |
222 | 222 | $resultArray['requireJsModules'][] = ['TYPO3/CMS/Backend/FormEngine/Element/TextTableElement' => ' |
@@ -115,16 +115,16 @@ discard block |
||
115 | 115 | if ($config['readOnly'] ?? false) { |
116 | 116 | $html = []; |
117 | 117 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
118 | - $html[] = $fieldInformationHtml; |
|
119 | - $html[] = '<div class="form-wizards-wrap">'; |
|
120 | - $html[] = '<div class="form-wizards-element">'; |
|
121 | - $html[] = '<div class="form-control-wrap"' . ($width ? ' style="max-width: ' . $width . 'px">' : '>'); |
|
122 | - $html[] = '<textarea class="form-control" rows="' . $rows . '" disabled>'; |
|
123 | - $html[] = htmlspecialchars($itemValue); |
|
124 | - $html[] = '</textarea>'; |
|
125 | - $html[] = '</div>'; |
|
126 | - $html[] = '</div>'; |
|
127 | - $html[] = '</div>'; |
|
118 | + $html[] = $fieldInformationHtml; |
|
119 | + $html[] = '<div class="form-wizards-wrap">'; |
|
120 | + $html[] = '<div class="form-wizards-element">'; |
|
121 | + $html[] = '<div class="form-control-wrap"' . ($width ? ' style="max-width: ' . $width . 'px">' : '>'); |
|
122 | + $html[] = '<textarea class="form-control" rows="' . $rows . '" disabled>'; |
|
123 | + $html[] = htmlspecialchars($itemValue); |
|
124 | + $html[] = '</textarea>'; |
|
125 | + $html[] = '</div>'; |
|
126 | + $html[] = '</div>'; |
|
127 | + $html[] = '</div>'; |
|
128 | 128 | $html[] = '</div>'; |
129 | 129 | $resultArray['html'] = implode(LF, $html); |
130 | 130 | return $resultArray; |
@@ -217,24 +217,24 @@ discard block |
||
217 | 217 | |
218 | 218 | $mainFieldHtml = []; |
219 | 219 | $mainFieldHtml[] = '<div class="form-control-wrap"' . ($width ? ' style="max-width: ' . $width . 'px">' : '>'); |
220 | - $mainFieldHtml[] = '<div class="form-wizards-wrap">'; |
|
221 | - $mainFieldHtml[] = '<div class="form-wizards-element">'; |
|
222 | - $mainFieldHtml[] = '<textarea ' . GeneralUtility::implodeAttributes($attributes, true) . '>' . htmlspecialchars($itemValue) . '</textarea>'; |
|
223 | - $mainFieldHtml[] = '</div>'; |
|
220 | + $mainFieldHtml[] = '<div class="form-wizards-wrap">'; |
|
221 | + $mainFieldHtml[] = '<div class="form-wizards-element">'; |
|
222 | + $mainFieldHtml[] = '<textarea ' . GeneralUtility::implodeAttributes($attributes, true) . '>' . htmlspecialchars($itemValue) . '</textarea>'; |
|
223 | + $mainFieldHtml[] = '</div>'; |
|
224 | 224 | if (!empty($valuePickerHtml) || !empty($fieldControlHtml)) { |
225 | - $mainFieldHtml[] = '<div class="form-wizards-items-aside">'; |
|
226 | - $mainFieldHtml[] = '<div class="btn-group">'; |
|
227 | - $mainFieldHtml[] = implode(LF, $valuePickerHtml); |
|
228 | - $mainFieldHtml[] = $fieldControlHtml; |
|
229 | - $mainFieldHtml[] = '</div>'; |
|
230 | - $mainFieldHtml[] = '</div>'; |
|
225 | + $mainFieldHtml[] = '<div class="form-wizards-items-aside">'; |
|
226 | + $mainFieldHtml[] = '<div class="btn-group">'; |
|
227 | + $mainFieldHtml[] = implode(LF, $valuePickerHtml); |
|
228 | + $mainFieldHtml[] = $fieldControlHtml; |
|
229 | + $mainFieldHtml[] = '</div>'; |
|
230 | + $mainFieldHtml[] = '</div>'; |
|
231 | 231 | } |
232 | 232 | if (!empty($fieldWizardHtml)) { |
233 | 233 | $mainFieldHtml[] = '<div class="form-wizards-items-bottom">'; |
234 | 234 | $mainFieldHtml[] = $fieldWizardHtml; |
235 | 235 | $mainFieldHtml[] = '</div>'; |
236 | 236 | } |
237 | - $mainFieldHtml[] = '</div>'; |
|
237 | + $mainFieldHtml[] = '</div>'; |
|
238 | 238 | $mainFieldHtml[] = '</div>'; |
239 | 239 | $mainFieldHtml = implode(LF, $mainFieldHtml); |
240 | 240 | |
@@ -244,11 +244,11 @@ discard block |
||
244 | 244 | $fullElement = []; |
245 | 245 | $fullElement[] = '<div class="t3-form-field-disable"></div>'; |
246 | 246 | $fullElement[] = '<div class="form-check t3-form-field-eval-null-checkbox">'; |
247 | - $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />'; |
|
248 | - $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />'; |
|
249 | - $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
250 | - $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox'); |
|
251 | - $fullElement[] = '</label>'; |
|
247 | + $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />'; |
|
248 | + $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />'; |
|
249 | + $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
250 | + $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox'); |
|
251 | + $fullElement[] = '</label>'; |
|
252 | 252 | $fullElement[] = '</div>'; |
253 | 253 | $fullElement[] = $mainFieldHtml; |
254 | 254 | $fullElement = implode(LF, $fullElement); |
@@ -277,28 +277,28 @@ discard block |
||
277 | 277 | } |
278 | 278 | $fullElement = []; |
279 | 279 | $fullElement[] = '<div class="form-check t3js-form-field-eval-null-placeholder-checkbox">'; |
280 | - $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />'; |
|
281 | - $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />'; |
|
282 | - $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
283 | - $fullElement[] = $overrideLabel; |
|
284 | - $fullElement[] = '</label>'; |
|
280 | + $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />'; |
|
281 | + $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />'; |
|
282 | + $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
283 | + $fullElement[] = $overrideLabel; |
|
284 | + $fullElement[] = '</label>'; |
|
285 | 285 | $fullElement[] = '</div>'; |
286 | 286 | $fullElement[] = '<div class="t3js-formengine-placeholder-placeholder">'; |
287 | - $fullElement[] = '<div class="form-control-wrap"' . ($width ? ' style="max-width: ' . $width . 'px">' : '>'); |
|
288 | - $fullElement[] = '<textarea'; |
|
289 | - $fullElement[] = ' class="form-control formengine-textarea' . (isset($config['fixedFont']) ? ' text-monospace' : '') . '"'; |
|
290 | - $fullElement[] = ' disabled="disabled"'; |
|
291 | - $fullElement[] = ' rows="' . htmlspecialchars($attributes['rows']) . '"'; |
|
292 | - $fullElement[] = ' wrap="' . htmlspecialchars($attributes['wrap']) . '"'; |
|
293 | - $fullElement[] = isset($attributes['style']) ? ' style="' . htmlspecialchars($attributes['style']) . '"' : ''; |
|
294 | - $fullElement[] = isset($attributes['maxlength']) ? ' maxlength="' . htmlspecialchars($attributes['maxlength']) . '"' : ''; |
|
295 | - $fullElement[] = '>'; |
|
296 | - $fullElement[] = htmlspecialchars($shortenedPlaceholder); |
|
297 | - $fullElement[] = '</textarea>'; |
|
298 | - $fullElement[] = '</div>'; |
|
287 | + $fullElement[] = '<div class="form-control-wrap"' . ($width ? ' style="max-width: ' . $width . 'px">' : '>'); |
|
288 | + $fullElement[] = '<textarea'; |
|
289 | + $fullElement[] = ' class="form-control formengine-textarea' . (isset($config['fixedFont']) ? ' text-monospace' : '') . '"'; |
|
290 | + $fullElement[] = ' disabled="disabled"'; |
|
291 | + $fullElement[] = ' rows="' . htmlspecialchars($attributes['rows']) . '"'; |
|
292 | + $fullElement[] = ' wrap="' . htmlspecialchars($attributes['wrap']) . '"'; |
|
293 | + $fullElement[] = isset($attributes['style']) ? ' style="' . htmlspecialchars($attributes['style']) . '"' : ''; |
|
294 | + $fullElement[] = isset($attributes['maxlength']) ? ' maxlength="' . htmlspecialchars($attributes['maxlength']) . '"' : ''; |
|
295 | + $fullElement[] = '>'; |
|
296 | + $fullElement[] = htmlspecialchars($shortenedPlaceholder); |
|
297 | + $fullElement[] = '</textarea>'; |
|
298 | + $fullElement[] = '</div>'; |
|
299 | 299 | $fullElement[] = '</div>'; |
300 | 300 | $fullElement[] = '<div class="t3js-formengine-placeholder-formfield">'; |
301 | - $fullElement[] = $mainFieldHtml; |
|
301 | + $fullElement[] = $mainFieldHtml; |
|
302 | 302 | $fullElement[] = '</div>'; |
303 | 303 | $fullElement = implode(LF, $fullElement); |
304 | 304 | } |
@@ -113,14 +113,14 @@ discard block |
||
113 | 113 | // Early return for read only fields |
114 | 114 | $html = []; |
115 | 115 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
116 | - $html[] = $fieldInformationHtml; |
|
117 | - $html[] = '<div class="form-wizards-wrap">'; |
|
118 | - $html[] = '<div class="form-wizards-element">'; |
|
119 | - $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
120 | - $html[] = '<input class="form-control" value="' . htmlspecialchars($itemValue) . '" type="text" disabled>'; |
|
121 | - $html[] = '</div>'; |
|
122 | - $html[] = '</div>'; |
|
123 | - $html[] = '</div>'; |
|
116 | + $html[] = $fieldInformationHtml; |
|
117 | + $html[] = '<div class="form-wizards-wrap">'; |
|
118 | + $html[] = '<div class="form-wizards-element">'; |
|
119 | + $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
120 | + $html[] = '<input class="form-control" value="' . htmlspecialchars($itemValue) . '" type="text" disabled>'; |
|
121 | + $html[] = '</div>'; |
|
122 | + $html[] = '</div>'; |
|
123 | + $html[] = '</div>'; |
|
124 | 124 | $html[] = '</div>'; |
125 | 125 | $resultArray['html'] = implode(LF, $html); |
126 | 126 | return $resultArray; |
@@ -216,31 +216,31 @@ discard block |
||
216 | 216 | |
217 | 217 | $expansionHtml = []; |
218 | 218 | $expansionHtml[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
219 | - $expansionHtml[] = '<div class="form-wizards-wrap">'; |
|
220 | - $expansionHtml[] = '<div class="form-wizards-element">'; |
|
221 | - $expansionHtml[] = '<div class="input-group t3js-form-field-inputlink">'; |
|
222 | - $expansionHtml[] = '<span class="t3js-form-field-inputlink-icon input-group-addon">' . ($linkExplanation['icon'] ?? '') . '</span>'; |
|
223 | - $expansionHtml[] = '<input class="form-control t3js-form-field-inputlink-explanation" data-bs-toggle="tooltip" title="' . $explanation . '" value="' . $explanation . '" readonly>'; |
|
224 | - $expansionHtml[] = '<input type="text" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />'; |
|
225 | - $expansionHtml[] = '<button class="btn btn-default t3js-form-field-inputlink-explanation-toggle" type="button" title="' . htmlspecialchars($toggleButtonTitle) . '">'; |
|
226 | - $expansionHtml[] = $this->iconFactory->getIcon('actions-version-workspaces-preview-link', Icon::SIZE_SMALL)->render(); |
|
227 | - $expansionHtml[] = '</button>'; |
|
228 | - $expansionHtml[] = '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />'; |
|
229 | - $expansionHtml[] = '</div>'; |
|
230 | - $expansionHtml[] = '</div>'; |
|
219 | + $expansionHtml[] = '<div class="form-wizards-wrap">'; |
|
220 | + $expansionHtml[] = '<div class="form-wizards-element">'; |
|
221 | + $expansionHtml[] = '<div class="input-group t3js-form-field-inputlink">'; |
|
222 | + $expansionHtml[] = '<span class="t3js-form-field-inputlink-icon input-group-addon">' . ($linkExplanation['icon'] ?? '') . '</span>'; |
|
223 | + $expansionHtml[] = '<input class="form-control t3js-form-field-inputlink-explanation" data-bs-toggle="tooltip" title="' . $explanation . '" value="' . $explanation . '" readonly>'; |
|
224 | + $expansionHtml[] = '<input type="text" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />'; |
|
225 | + $expansionHtml[] = '<button class="btn btn-default t3js-form-field-inputlink-explanation-toggle" type="button" title="' . htmlspecialchars($toggleButtonTitle) . '">'; |
|
226 | + $expansionHtml[] = $this->iconFactory->getIcon('actions-version-workspaces-preview-link', Icon::SIZE_SMALL)->render(); |
|
227 | + $expansionHtml[] = '</button>'; |
|
228 | + $expansionHtml[] = '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />'; |
|
229 | + $expansionHtml[] = '</div>'; |
|
230 | + $expansionHtml[] = '</div>'; |
|
231 | 231 | if (!empty($valuePickerHtml) || !empty($fieldControlHtml)) { |
232 | - $expansionHtml[] = '<div class="form-wizards-items-aside">'; |
|
233 | - $expansionHtml[] = '<div class="btn-group">'; |
|
234 | - $expansionHtml[] = implode(LF, $valuePickerHtml); |
|
235 | - $expansionHtml[] = $fieldControlHtml; |
|
236 | - $expansionHtml[] = '</div>'; |
|
237 | - $expansionHtml[] = '</div>'; |
|
232 | + $expansionHtml[] = '<div class="form-wizards-items-aside">'; |
|
233 | + $expansionHtml[] = '<div class="btn-group">'; |
|
234 | + $expansionHtml[] = implode(LF, $valuePickerHtml); |
|
235 | + $expansionHtml[] = $fieldControlHtml; |
|
236 | + $expansionHtml[] = '</div>'; |
|
237 | + $expansionHtml[] = '</div>'; |
|
238 | 238 | } |
239 | - $expansionHtml[] = '<div class="form-wizards-items-bottom">'; |
|
240 | - $expansionHtml[] = $linkExplanation['additionalAttributes'] ?? ''; |
|
241 | - $expansionHtml[] = $fieldWizardHtml; |
|
242 | - $expansionHtml[] = '</div>'; |
|
243 | - $expansionHtml[] = '</div>'; |
|
239 | + $expansionHtml[] = '<div class="form-wizards-items-bottom">'; |
|
240 | + $expansionHtml[] = $linkExplanation['additionalAttributes'] ?? ''; |
|
241 | + $expansionHtml[] = $fieldWizardHtml; |
|
242 | + $expansionHtml[] = '</div>'; |
|
243 | + $expansionHtml[] = '</div>'; |
|
244 | 244 | $expansionHtml[] = '</div>'; |
245 | 245 | $expansionHtml = implode(LF, $expansionHtml); |
246 | 246 | |
@@ -250,11 +250,11 @@ discard block |
||
250 | 250 | $fullElement = []; |
251 | 251 | $fullElement[] = '<div class="t3-form-field-disable"></div>'; |
252 | 252 | $fullElement[] = '<div class="form-check t3-form-field-eval-null-checkbox">'; |
253 | - $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />'; |
|
254 | - $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />'; |
|
255 | - $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
256 | - $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox'); |
|
257 | - $fullElement[] = '</label>'; |
|
253 | + $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />'; |
|
254 | + $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />'; |
|
255 | + $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
256 | + $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox'); |
|
257 | + $fullElement[] = '</label>'; |
|
258 | 258 | $fullElement[] = '</div>'; |
259 | 259 | $fullElement[] = $expansionHtml; |
260 | 260 | $fullElement = implode(LF, $fullElement); |
@@ -283,19 +283,19 @@ discard block |
||
283 | 283 | } |
284 | 284 | $fullElement = []; |
285 | 285 | $fullElement[] = '<div class="form-check t3js-form-field-eval-null-placeholder-checkbox">'; |
286 | - $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />'; |
|
287 | - $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />'; |
|
288 | - $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
289 | - $fullElement[] = $overrideLabel; |
|
290 | - $fullElement[] = '</label>'; |
|
286 | + $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />'; |
|
287 | + $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />'; |
|
288 | + $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
289 | + $fullElement[] = $overrideLabel; |
|
290 | + $fullElement[] = '</label>'; |
|
291 | 291 | $fullElement[] = '</div>'; |
292 | 292 | $fullElement[] = '<div class="t3js-formengine-placeholder-placeholder">'; |
293 | - $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">'; |
|
294 | - $fullElement[] = '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />'; |
|
295 | - $fullElement[] = '</div>'; |
|
293 | + $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">'; |
|
294 | + $fullElement[] = '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />'; |
|
295 | + $fullElement[] = '</div>'; |
|
296 | 296 | $fullElement[] = '</div>'; |
297 | 297 | $fullElement[] = '<div class="t3js-formengine-placeholder-formfield">'; |
298 | - $fullElement[] = $expansionHtml; |
|
298 | + $fullElement[] = $expansionHtml; |
|
299 | 299 | $fullElement[] = '</div>'; |
300 | 300 | $fullElement = implode(LF, $fullElement); |
301 | 301 | } |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | |
326 | 326 | try { |
327 | 327 | $linkData = $linkService->resolve($linkParts['url']); |
328 | - } catch (FileDoesNotExistException|FolderDoesNotExistException|UnknownLinkHandlerException|InvalidPathException $e) { |
|
328 | + } catch (FileDoesNotExistException | FolderDoesNotExistException | UnknownLinkHandlerException | InvalidPathException $e) { |
|
329 | 329 | return $data; |
330 | 330 | } |
331 | 331 |
@@ -89,14 +89,14 @@ discard block |
||
89 | 89 | if ($config['readOnly'] ?? false) { |
90 | 90 | $html = []; |
91 | 91 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
92 | - $html[] = $fieldInformationHtml; |
|
93 | - $html[] = '<div class="form-wizards-wrap">'; |
|
94 | - $html[] = '<div class="form-wizards-element">'; |
|
95 | - $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
96 | - $html[] = '<input class="form-control" value="' . htmlspecialchars($itemValue) . '" type="text" disabled>'; |
|
97 | - $html[] = '</div>'; |
|
98 | - $html[] = '</div>'; |
|
99 | - $html[] = '</div>'; |
|
92 | + $html[] = $fieldInformationHtml; |
|
93 | + $html[] = '<div class="form-wizards-wrap">'; |
|
94 | + $html[] = '<div class="form-wizards-element">'; |
|
95 | + $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
96 | + $html[] = '<input class="form-control" value="' . htmlspecialchars($itemValue) . '" type="text" disabled>'; |
|
97 | + $html[] = '</div>'; |
|
98 | + $html[] = '</div>'; |
|
99 | + $html[] = '</div>'; |
|
100 | 100 | $html[] = '</div>'; |
101 | 101 | $resultArray['html'] = implode(LF, $html); |
102 | 102 | return $resultArray; |
@@ -178,23 +178,23 @@ discard block |
||
178 | 178 | |
179 | 179 | $mainFieldHtml = []; |
180 | 180 | $mainFieldHtml[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
181 | - $mainFieldHtml[] = '<div class="form-wizards-wrap">'; |
|
182 | - $mainFieldHtml[] = '<div class="form-wizards-element">'; |
|
183 | - $mainFieldHtml[] = '<input type="text" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />'; |
|
184 | - $mainFieldHtml[] = '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />'; |
|
185 | - $mainFieldHtml[] = '</div>'; |
|
186 | - $mainFieldHtml[] = '<div class="form-wizards-items-aside">'; |
|
187 | - $mainFieldHtml[] = '<div class="btn-group">'; |
|
188 | - $mainFieldHtml[] = $fieldControlHtml; |
|
189 | - $mainFieldHtml[] = implode(LF, $valuePickerHtml); |
|
190 | - $mainFieldHtml[] = '</div>'; |
|
191 | - $mainFieldHtml[] = '</div>'; |
|
181 | + $mainFieldHtml[] = '<div class="form-wizards-wrap">'; |
|
182 | + $mainFieldHtml[] = '<div class="form-wizards-element">'; |
|
183 | + $mainFieldHtml[] = '<input type="text" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />'; |
|
184 | + $mainFieldHtml[] = '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />'; |
|
185 | + $mainFieldHtml[] = '</div>'; |
|
186 | + $mainFieldHtml[] = '<div class="form-wizards-items-aside">'; |
|
187 | + $mainFieldHtml[] = '<div class="btn-group">'; |
|
188 | + $mainFieldHtml[] = $fieldControlHtml; |
|
189 | + $mainFieldHtml[] = implode(LF, $valuePickerHtml); |
|
190 | + $mainFieldHtml[] = '</div>'; |
|
191 | + $mainFieldHtml[] = '</div>'; |
|
192 | 192 | if (!empty($fieldWizardHtml)) { |
193 | 193 | $mainFieldHtml[] = '<div class="form-wizards-items-bottom">'; |
194 | 194 | $mainFieldHtml[] = $fieldWizardHtml; |
195 | 195 | $mainFieldHtml[] = '</div>'; |
196 | 196 | } |
197 | - $mainFieldHtml[] = '</div>'; |
|
197 | + $mainFieldHtml[] = '</div>'; |
|
198 | 198 | $mainFieldHtml[] = '</div>'; |
199 | 199 | $mainFieldHtml = implode(LF, $mainFieldHtml); |
200 | 200 | |
@@ -204,11 +204,11 @@ discard block |
||
204 | 204 | $fullElement = []; |
205 | 205 | $fullElement[] = '<div class="t3-form-field-disable"></div>'; |
206 | 206 | $fullElement[] = '<div class="form-check t3-form-field-eval-null-checkbox">'; |
207 | - $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />'; |
|
208 | - $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />'; |
|
209 | - $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
210 | - $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox'); |
|
211 | - $fullElement[] = '</label>'; |
|
207 | + $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />'; |
|
208 | + $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />'; |
|
209 | + $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
210 | + $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox'); |
|
211 | + $fullElement[] = '</label>'; |
|
212 | 212 | $fullElement[] = '</div>'; |
213 | 213 | $fullElement[] = $mainFieldHtml; |
214 | 214 | $fullElement = implode(LF, $fullElement); |
@@ -237,19 +237,19 @@ discard block |
||
237 | 237 | } |
238 | 238 | $fullElement = []; |
239 | 239 | $fullElement[] = '<div class="form-check t3js-form-field-eval-null-placeholder-checkbox">'; |
240 | - $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />'; |
|
241 | - $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />'; |
|
242 | - $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
243 | - $fullElement[] = $overrideLabel; |
|
244 | - $fullElement[] = '</label>'; |
|
240 | + $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />'; |
|
241 | + $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />'; |
|
242 | + $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
243 | + $fullElement[] = $overrideLabel; |
|
244 | + $fullElement[] = '</label>'; |
|
245 | 245 | $fullElement[] = '</div>'; |
246 | 246 | $fullElement[] = '<div class="t3js-formengine-placeholder-placeholder">'; |
247 | - $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">'; |
|
248 | - $fullElement[] = '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />'; |
|
249 | - $fullElement[] = '</div>'; |
|
247 | + $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">'; |
|
248 | + $fullElement[] = '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />'; |
|
249 | + $fullElement[] = '</div>'; |
|
250 | 250 | $fullElement[] = '</div>'; |
251 | 251 | $fullElement[] = '<div class="t3js-formengine-placeholder-formfield">'; |
252 | - $fullElement[] = $mainFieldHtml; |
|
252 | + $fullElement[] = $mainFieldHtml; |
|
253 | 253 | $fullElement[] = '</div>'; |
254 | 254 | $fullElement = implode(LF, $fullElement); |
255 | 255 | } |