templates/articles/new.html.twig line 1

  1. {% extends 'base.html.twig' %}
  2. {% block meta_description %} {% endblock %}
  3. {% block title %} {% endblock %}
  4. {% form_theme add_article_form 'bootstrap_5_layout.html.twig' %}
  5. {% block body %}
  6.     <div class="mt-5 pt-5 px-5 d-flex flex-column align-items-center">
  7.         <h1 class="mb-5"> Créer un nouvel article </h1>
  8.                {# créer 1 formulaire avec form_row pour 1 nouvel article
  9.                en ajoutant le bouton label "ajouter" #}
  10.                {{ form_start(add_article_form) }}
  11.                             {{ form_row(add_article_form.title) }}
  12.                             {{ form_row(add_article_form.catchPhrase) }}
  13.                             {{ form_row(add_article_form.date) }}
  14.                             {{ form_row(add_article_form.author) }}
  15.                             {{ form_row(add_article_form.description) }}
  16.                             {{ form_row(add_article_form.posterFile) }}
  17.                             {{ form_row(add_article_form.relatedSubjects) }}
  18.                             {{ form_row(add_article_form.chapo) }}
  19.                             {{ form_row(add_article_form.legendMainPicture) }}
  20.                             {{ form_row(add_article_form.authorWebsite) }}
  21.                             {{ form_row(add_article_form.relatedCourse) }}
  22.                             {{ form_row(add_article_form.category) }}
  23.                             {{ form_row(add_article_form.Modifier, { 'label': 'Ajouter' }) }}
  24.                 {{ form_end(add_article_form) }}
  25.                
  26.     </div>
  27. {% endblock %}