{% import 'shared/componnents/_macros/_forms.html.twig' as forms %} {% import 'shared/componnents/_macros/_alerts.html.twig' as alerts %} {% set path = path ?? null %} {% set path_list = path_list ?? null %} {% set label_btn = label_btn ?? '' %} {% set title = title ?? '' %}
{% for message in app.flashes('success') %} {{ alerts.alert(message, 'success', 'check') }} {% endfor %}
{{ form_widget(form._token) }}
{{ form_label(form.standard.name) }} {{ form_widget(form.standard.name) }}
{{ form_label(form.standard.status) }} {{ form_widget(form.standard.status) }}
{{ form_label(form.main) }} {{ form_widget(form.main) }}
{{ form_label(form.document.path) }} {{ form_widget(form.document.path) }} {% if form.document.path.vars.errors|length %} {% endif %}
{{ forms.button(path_list, 'danger', 'Retour à liste') }} {{ form_widget(form.submit,{'label': label_btn, attr:{'class':'btn btn-primary'}}) }}