{% extends 'theme-6.html.twig' %} {# Title #} {% block title %}{% endblock %} {# CSS #} {% block stylesheets %}{% endblock %} {% block row %} {% if form.success is defined %}
{{ form.success.vars.label }}
{% endif %}

Ajouter un genre à l'album

{{ form_errors(form) }} {% if not form.album.rendered %} {# start: Album #}
{{ form_label(form.album, null, {'label_attr': {'class': 'col-md-3 control-label'}}) }} {{ form_errors(form.album) }}
{{ form_widget(form.album, {'attr': {'class': 'form-control'}}) }}
{# end: Album #} {% endif %} {% if not form.author.rendered %} {# start: author #}
{{ form_label(form.author, null, {'label_attr': {'class': 'col-md-3 control-label'}}) }} {{ form_errors(form.author) }}
{{ form_widget(form.author, {'attr': {'class': 'form-control'}}) }}
{# end: author #} {% endif %} {% if not form.activity.rendered %} {# start: activity #}
{{ form_label(form.activity, null, {'label_attr': {'class': 'col-md-3 control-label'}}) }} {{ form_errors(form.activity) }}
{{ form_widget(form.activity, {'attr': {'class': 'form-control'}}) }}
{# end: activity #} {% endif %} {# start: Footer> #} {% block formFooter %} {% if not form.save.rendered %}
{{ form_widget(form.save, { 'label': 'Ajouter un auteur', 'attr': {'class': 'btn-primary btnSubmit'} }) }}
{% endif %} {% endblock %} {# end: Footer #}

Informations

{% endblock %} {% block javascripts %} {% endblock %}