modifier.html.twig 728 B

1234567891011121314151617181920212223242526
  1. {% extends "base.html.twig" %}
  2. {% block title %}{{ parent() }} - Modifier un genre{% endblock %}
  3. {% block titre %}Genre - Modifier{% endblock %}
  4. {% block body %}
  5. <div class="row">
  6. <div class="col">
  7. {{ form_start(form) }}
  8. {{ form_rest(form) }}
  9. <button class="btn btn-primary" type="submit" formmethod="post">Enregistrer</button>
  10. <a class="btn btn-danger" href="{{ path('genre_supprimer', {'id': genre.id}) }}">Supprimer</a>
  11. {{ form_end(form) }}
  12. </div>
  13. <div class="col">
  14. <h2>Liste des films de ce genre</h2>
  15. <ul>
  16. {% for film in films %}
  17. <li><a href="{{ path('videotheque_voirfilm', {'id': film.id}) }}">{{ film.titre }}</a></li>
  18. {% endfor %}
  19. </ul>
  20. </div>
  21. </div>
  22. {% endblock %}