{{ form_errors(form) }} {{ form_start(form, { attr: { class: 'event-form', 'data-model': 'on(change)|*', 'data-action': 'live#action:prevent', 'onsubmit': 'return false;' } }) }}

Organisation

{{ id is not null ? 'Modifier une sortie' : 'Créer une sortie' }}

Renseigne les informations de la sortie puis choisis l’action à effectuer.

{{ form_row(form.city) }}
{{ form_row(form.adress) }} ➕ Ajouter une adresse
{% for field in form.children %} {% if field.vars.name not in ['adress', 'save', 'publish', 'cancel', 'duration', 'city'] %}
{{ form_row(field) }}
{% endif %} {% endfor %}
{% set canCreate = is_granted('EVENT_CREATE') %} {% set canEdit = id is not null and is_granted('EVENT_EDIT', initialFormData) %} {% set canManage = (id is null and canCreate) or canEdit %}
{% if canManage and not is_granted('ROLE_ADMIN') %} {% endif %} {% if canManage and not is_granted('ROLE_ADMIN') %} {% endif %} {% if id is not null and is_granted('EVENT_CANCEL', initialFormData) %} {% endif %} Retour au menu
{{ form_end(form) }}