|
@@ -115,16 +115,16 @@ discard block |
|
|
block discarded – undo |
|
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; |
|
@@ -200,8 +200,8 @@ discard block |
|
|
block discarded – undo |
|
200
|
200
|
. '.value=this.options[this.selectedIndex].value'; |
|
201
|
201
|
} |
|
202
|
202
|
$valuePickerHtml[] = '<select'; |
|
203
|
|
- $valuePickerHtml[] = ' class="form-select form-control-adapt"'; |
|
204
|
|
- $valuePickerHtml[] = ' onchange="' . htmlspecialchars($assignValue . ';this.blur();this.selectedIndex=0;' . implode('', $fieldChangeFunc)) . '"'; |
|
|
203
|
+ $valuePickerHtml[] = ' class="form-select form-control-adapt"'; |
|
|
204
|
+ $valuePickerHtml[] = ' onchange="' . htmlspecialchars($assignValue . ';this.blur();this.selectedIndex=0;' . implode('', $fieldChangeFunc)) . '"'; |
|
205
|
205
|
$valuePickerHtml[] = '>'; |
|
206
|
206
|
$valuePickerHtml[] = '<option></option>'; |
|
207
|
207
|
foreach ($config['valuePicker']['items'] as $item) { |
|
@@ -220,24 +220,24 @@ discard block |
|
|
block discarded – undo |
|
220
|
220
|
|
|
221
|
221
|
$mainFieldHtml = []; |
|
222
|
222
|
$mainFieldHtml[] = '<div class="form-control-wrap"' . ($width ? ' style="max-width: ' . $width . 'px">' : '>'); |
|
223
|
|
- $mainFieldHtml[] = '<div class="form-wizards-wrap">'; |
|
224
|
|
- $mainFieldHtml[] = '<div class="form-wizards-element">'; |
|
225
|
|
- $mainFieldHtml[] = '<textarea ' . GeneralUtility::implodeAttributes($attributes, true) . '>' . htmlspecialchars($itemValue) . '</textarea>'; |
|
226
|
|
- $mainFieldHtml[] = '</div>'; |
|
|
223
|
+ $mainFieldHtml[] = '<div class="form-wizards-wrap">'; |
|
|
224
|
+ $mainFieldHtml[] = '<div class="form-wizards-element">'; |
|
|
225
|
+ $mainFieldHtml[] = '<textarea ' . GeneralUtility::implodeAttributes($attributes, true) . '>' . htmlspecialchars($itemValue) . '</textarea>'; |
|
|
226
|
+ $mainFieldHtml[] = '</div>'; |
|
227
|
227
|
if (!empty($valuePickerHtml) || !empty($fieldControlHtml)) { |
|
228
|
|
- $mainFieldHtml[] = '<div class="form-wizards-items-aside">'; |
|
229
|
|
- $mainFieldHtml[] = '<div class="btn-group">'; |
|
230
|
|
- $mainFieldHtml[] = implode(LF, $valuePickerHtml); |
|
231
|
|
- $mainFieldHtml[] = $fieldControlHtml; |
|
232
|
|
- $mainFieldHtml[] = '</div>'; |
|
233
|
|
- $mainFieldHtml[] = '</div>'; |
|
|
228
|
+ $mainFieldHtml[] = '<div class="form-wizards-items-aside">'; |
|
|
229
|
+ $mainFieldHtml[] = '<div class="btn-group">'; |
|
|
230
|
+ $mainFieldHtml[] = implode(LF, $valuePickerHtml); |
|
|
231
|
+ $mainFieldHtml[] = $fieldControlHtml; |
|
|
232
|
+ $mainFieldHtml[] = '</div>'; |
|
|
233
|
+ $mainFieldHtml[] = '</div>'; |
|
234
|
234
|
} |
|
235
|
235
|
if (!empty($fieldWizardHtml)) { |
|
236
|
236
|
$mainFieldHtml[] = '<div class="form-wizards-items-bottom">'; |
|
237
|
237
|
$mainFieldHtml[] = $fieldWizardHtml; |
|
238
|
238
|
$mainFieldHtml[] = '</div>'; |
|
239
|
239
|
} |
|
240
|
|
- $mainFieldHtml[] = '</div>'; |
|
|
240
|
+ $mainFieldHtml[] = '</div>'; |
|
241
|
241
|
$mainFieldHtml[] = '</div>'; |
|
242
|
242
|
$mainFieldHtml = implode(LF, $mainFieldHtml); |
|
243
|
243
|
|
|
@@ -247,11 +247,11 @@ discard block |
|
|
block discarded – undo |
|
247
|
247
|
$fullElement = []; |
|
248
|
248
|
$fullElement[] = '<div class="t3-form-field-disable"></div>'; |
|
249
|
249
|
$fullElement[] = '<div class="form-check t3-form-field-eval-null-checkbox">'; |
|
250
|
|
- $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />'; |
|
251
|
|
- $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />'; |
|
252
|
|
- $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
253
|
|
- $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox'); |
|
254
|
|
- $fullElement[] = '</label>'; |
|
|
250
|
+ $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />'; |
|
|
251
|
+ $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />'; |
|
|
252
|
+ $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
|
253
|
+ $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox'); |
|
|
254
|
+ $fullElement[] = '</label>'; |
|
255
|
255
|
$fullElement[] = '</div>'; |
|
256
|
256
|
$fullElement[] = $mainFieldHtml; |
|
257
|
257
|
$fullElement = implode(LF, $fullElement); |
|
@@ -280,28 +280,28 @@ discard block |
|
|
block discarded – undo |
|
280
|
280
|
} |
|
281
|
281
|
$fullElement = []; |
|
282
|
282
|
$fullElement[] = '<div class="form-check t3js-form-field-eval-null-placeholder-checkbox">'; |
|
283
|
|
- $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />'; |
|
284
|
|
- $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />'; |
|
285
|
|
- $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
286
|
|
- $fullElement[] = $overrideLabel; |
|
287
|
|
- $fullElement[] = '</label>'; |
|
|
283
|
+ $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />'; |
|
|
284
|
+ $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />'; |
|
|
285
|
+ $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">'; |
|
|
286
|
+ $fullElement[] = $overrideLabel; |
|
|
287
|
+ $fullElement[] = '</label>'; |
|
288
|
288
|
$fullElement[] = '</div>'; |
|
289
|
289
|
$fullElement[] = '<div class="t3js-formengine-placeholder-placeholder">'; |
|
290
|
|
- $fullElement[] = '<div class="form-control-wrap"' . ($width ? ' style="max-width: ' . $width . 'px">' : '>'); |
|
291
|
|
- $fullElement[] = '<textarea'; |
|
292
|
|
- $fullElement[] = ' class="form-control formengine-textarea' . (isset($config['fixedFont']) ? ' text-monospace' : '') . '"'; |
|
293
|
|
- $fullElement[] = ' disabled="disabled"'; |
|
294
|
|
- $fullElement[] = ' rows="' . htmlspecialchars($attributes['rows']) . '"'; |
|
295
|
|
- $fullElement[] = ' wrap="' . htmlspecialchars($attributes['wrap']) . '"'; |
|
296
|
|
- $fullElement[] = isset($attributes['style']) ? ' style="' . htmlspecialchars($attributes['style']) . '"' : ''; |
|
297
|
|
- $fullElement[] = isset($attributes['maxlength']) ? ' maxlength="' . htmlspecialchars($attributes['maxlength']) . '"' : ''; |
|
298
|
|
- $fullElement[] = '>'; |
|
299
|
|
- $fullElement[] = htmlspecialchars($shortenedPlaceholder); |
|
300
|
|
- $fullElement[] = '</textarea>'; |
|
301
|
|
- $fullElement[] = '</div>'; |
|
|
290
|
+ $fullElement[] = '<div class="form-control-wrap"' . ($width ? ' style="max-width: ' . $width . 'px">' : '>'); |
|
|
291
|
+ $fullElement[] = '<textarea'; |
|
|
292
|
+ $fullElement[] = ' class="form-control formengine-textarea' . (isset($config['fixedFont']) ? ' text-monospace' : '') . '"'; |
|
|
293
|
+ $fullElement[] = ' disabled="disabled"'; |
|
|
294
|
+ $fullElement[] = ' rows="' . htmlspecialchars($attributes['rows']) . '"'; |
|
|
295
|
+ $fullElement[] = ' wrap="' . htmlspecialchars($attributes['wrap']) . '"'; |
|
|
296
|
+ $fullElement[] = isset($attributes['style']) ? ' style="' . htmlspecialchars($attributes['style']) . '"' : ''; |
|
|
297
|
+ $fullElement[] = isset($attributes['maxlength']) ? ' maxlength="' . htmlspecialchars($attributes['maxlength']) . '"' : ''; |
|
|
298
|
+ $fullElement[] = '>'; |
|
|
299
|
+ $fullElement[] = htmlspecialchars($shortenedPlaceholder); |
|
|
300
|
+ $fullElement[] = '</textarea>'; |
|
|
301
|
+ $fullElement[] = '</div>'; |
|
302
|
302
|
$fullElement[] = '</div>'; |
|
303
|
303
|
$fullElement[] = '<div class="t3js-formengine-placeholder-formfield">'; |
|
304
|
|
- $fullElement[] = $mainFieldHtml; |
|
|
304
|
+ $fullElement[] = $mainFieldHtml; |
|
305
|
305
|
$fullElement[] = '</div>'; |
|
306
|
306
|
$fullElement = implode(LF, $fullElement); |
|
307
|
307
|
} |