@@ -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 |
@@ -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 | } |
@@ -115,16 +115,16 @@ discard block |
||
115 | 115 | if ($config['readOnly']) { |
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 | } |