true, 'readonly' => true] : []; $is_required_array = $input['must'] ? ['required' => true] : []; $is_pattern_array = $input['pattern'] ? ['pattern' => $input['pattern']] : []; if ($input['type'] === "text") : ?> if ($input['i18n']) : ?> = I18N::input($input['name'], $input['value'], $is_locked_array + $is_required_array + $is_pattern_array) ?> else : ?> type="text" name="= $input['name'] ?>" value="= htmlReady($input['value']) ?>" if ($input['must']) echo 'required'; ?> if ($input['pattern']) : ?>pattern="= htmlReady($input['pattern']) ?>" endif ?>> endif ?> endif; if ($input['type'] === "number") : ?> type="number" name="= $input['name'] ?>" value="= htmlReady($input['value']) ?>" min="= $input['min'] ?>" if ($input['must']) echo 'required'; ?>> endif; if ($input['type'] === "textarea") : ?> if ($input['i18n']) : ?> = I18N::textarea($input['name'], $input['value'], $is_locked_array + $is_required_array) ?> else : ?> name="= $input['name'] ?>" if ($input['must']) echo 'required'; ?>>= htmlReady($input['value']) ?> endif ?> endif; if ($input['type'] === "select") : ?> if (!$input['choices'][$input['value']] && !(isset($input['changable']) && $input['changable'])): ?> = _("Keine Änderung möglich") ?> else: ?> name="= $input['name'] ?>" if ($input['must']) echo 'required'; ?>> foreach ($input['choices'] as $choice_value => $choice_name): ?> if (is_array($choice_name)): ?> foreach ($choice_name as $c_v => $c_n): ?> > = htmlReady($c_n) ?> endforeach; ?> else: ?> > = htmlReady($choice_name) ?> endif; ?> endforeach; ?> endif; ?> endif; if ($input['type'] === "multiselect") : ?> name="= $input['name'] ?>" multiple class="nested-select" if ($input['must']) echo 'required'; ?>> if ($input['choices']) : foreach ($input['choices'] as $choice_value => $choice_name) : ?> >= htmlReady($choice_name) ?> endforeach; endif; ?> endif; if ($input['type'] === 'nested-select'): ?> if (isset($input['changable']) && !$input['changable']): ?> = _("Keine Änderung möglich") ?> else: ?> name="= $input['name'] ?>" class="nested-select" if ($input['must']) echo 'required'; ?> if ($input['multiple']) echo 'multiple'; ?>> foreach ($input['choices'] as $outer_id => $group): ?> if ($group['label'] !== false): ?> > = htmlReady($group['label']) ?> endif; ?> foreach ($group['children'] as $inner_id => $inner_label): ?> > = htmlReady($inner_label) ?> endforeach; ?> endforeach; ?> endif; endif; if ($input['type'] === 'datafield'): ?> if ($is_locked): ?> = htmlReady($input['title']) ?> if ($input['description']): ?> = tooltipIcon($input['description']) ?> endif?> = $input['display_value'] ?> else: ?> = $input['html_value'] ?> endif ?> endif;