_form.html.twig 924 B

1234567891011121314151617181920212223
  1. <p>
  2. Etat de l'article : <span class="badge badge-{{ article.state }}">{{ article.state | trans }}</span>
  3. </p>
  4. <div data-controller="slugger" >
  5. {{ form_start(form) }}
  6. {{ form_row(form.title) }}
  7. <div id="formulaire-slug">
  8. {{ form_label(form.slug) }}
  9. {{ form_errors(form.slug) }}
  10. {{ form_widget(form.slug) }}
  11. <div class="div-bouton-slug"><button type="button" id="bouton-slug" data-slugger-target="bouton" data-action="click->slugger#open">Générer un slug</butt></div>
  12. {{ form_help(form.slug) }}
  13. </div>
  14. {{ form_row(form.content) }}
  15. {{ form_row(form.publicationDate) }}
  16. {{ form_row(form.author) }}
  17. {{ form_row(form.publicationChoice) }}
  18. {{ form_rest(form)}}
  19. <button class="btn btn-green">{{ button_label|default('Sauvegarder') }}</button>
  20. {{ form_end(form) }}
  21. </div>