{% import 'shared/componnents/_macros/_alerts.html.twig' as alerts %} {% extends 'base.html.twig' %} {% block title %}Ajouter nouveau type supplément{% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %} {% block content %} {% set formHasNoErrors = false %} {% if form.type.vars.errors|length %} {{ alerts.notification(form_errors(form.type), 'info') }} {% set formHasNoErrors = true %} {% endif %} {% include 'shared/layout/_content-header.html.twig' with { 'item_lien': [ { 'label': 'Ajouter type supplément', 'path': path('app_supplement_type_index') } ] }%} {% include 'supplement_type/_form.html.twig' with { 'path': path('app_supplement_type_new'), 'path_list': path('app_supplement_type_index'), 'label_btn': 'Ajouter' } %} {% endblock %}