handlers); $elements_with_ids = []; $next_id = 1; $timetables = (new RsvTimetableService())->get_all(); ?>

Formuláře


Přidat formulář

text('name', 'Název')->render(); ?>

handlers); $repo = new RsvFormDefinitionRepository(); $form_def = $repo->get($id); if ($form_def === null) { echo '

Form definition not found.

'; return; } $definition = $form_def['definition'] ?? []; $raw_elements = array_values($definition['elements'] ?? []); $elements_with_ids = array_map(function (array $el, int $idx): array { return array_merge($el, ['id' => $idx + 1]); }, $raw_elements, array_keys($raw_elements)); $next_id = count($elements_with_ids) + 1; $timetables = (new RsvTimetableService())->get_all(); ?>

Edit Form:

← Back to Forms
text('name', 'Name', '', true, $form_def['name']) ->text('definition.email_key', 'Email Key', "Name of the form field that holds the submitter's email address.", true, $definition['email_key'] ?? '') ->render(); ?>

Form Elements

Define the fields that will appear in this form.