form.html.twig 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {{ form_start(form, {'attr': {'class': ''}}) }}
  2. <div class="container-fluid">
  3. <div class="row">
  4. <div class="col-3">
  5. {% form_theme form 'bootstrap_4_horizontal_layout.html.twig' %}
  6. <div class="form-group row">
  7. {{ form_row(form.titre) }}
  8. {{ form_row(form.annee) }}
  9. {{ form_row(form.lien) }}
  10. {% form_theme form 'bootstrap_4_layout.html.twig' %}
  11. {{ form_label(form.mediaVideo, 'Bande annonce') }}
  12. {{ form_errors(form.mediaVideo) }}
  13. {{ form_widget(form.mediaVideo) }}
  14. </div>
  15. </div>
  16. <div class="col">
  17. <div class="card">
  18. <div class="card-header">
  19. {{ form_label(form.genres, 'Genres') }}
  20. </div>
  21. <div class="card-body">
  22. {#<a href="#" id="add_genre" class="btn btn-link">Ajouter un genre</a>#}
  23. <div class="form-inline">
  24. {{ form_errors(form.genres) }}
  25. {{ form_widget(form.genres) }}
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. <div class="col">
  31. <div class="card">
  32. <div class="card-header">
  33. {{ form_label(form.realisateurs, 'Réalisateurs') }}
  34. </div>
  35. <div class="card-body">
  36. <a href="#" id="add_realisateur" class="btn btn-link">Ajouter un réalisateur</a>
  37. <div class="form-inline">
  38. {{ form_errors(form.realisateurs) }}
  39. {{ form_widget (form.realisateurs) }}
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. {{ form_rest(form) }}
  47. {{ form_end(form) }}