true, 'readonly' => true] : []; $is_required_array = !empty($input['must']) ? ['required' => true] : []; $is_pattern_array = !empty($input['pattern']) ? ['pattern' => $input['pattern']] : []; if ($input['type'] === "text") : ?> if (!empty($input['i18n'])) : ?> = I18N::input($input['name'], $input['value'], $is_locked_array + $is_required_array + $is_pattern_array) ?> else : ?> type="text" name="= htmlReady($input['name']) ?>" value="= htmlReady($input['value']) ?>" if (!empty($input['must'])) echo 'required'; ?> if (!empty($input['pattern'])) printf('pattern="%s"', htmlReady($input['pattern'])) ?>> endif ?> endif; if ($input['type'] === "number") : ?> type="number" name="= htmlReady($input['name']) ?>" value="= htmlReady($input['value']) ?>" min="= $input['min'] ?>" if (!empty($input['must'])) echo 'required'; ?>> endif; if ($input['type'] === "textarea") : ?> if (!empty($input['i18n'])) : ?> = I18N::textarea($input['name'], $input['value'], $is_locked_array + $is_required_array) ?> else : ?> name="= htmlReady($input['name']) ?>" if (!empty($input['must'])) echo 'required'; ?>>= htmlReady($input['value']) ?> endif ?> endif; if ($input['type'] === "select") : ?> if (empty($input['choices'][$input['value']]) && empty($input['changable'])): ?> = _("Keine Änderung möglich") ?> else: ?> name="= htmlReady($input['name']) ?>" if (!empty($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="= htmlReady($input['name']) ?>" multiple class="nested-select" if (!empty($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="= htmlReady($input['name']) ?>" class="nested-select" if (!empty($input['must'])) echo 'required'; ?> if (!empty($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;