Explorar o código

Ajout bouton ajouter film

François %!s(int64=6) %!d(string=hai) anos
pai
achega
63dc17643c
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/AppBundle/Resources/views/videotheque/liste.html.twig

+ 3 - 1
src/AppBundle/Resources/views/videotheque/liste.html.twig

@@ -1,7 +1,9 @@
 {% extends "@App/videotheque/base.html.twig" %}
 
 {% block body %}
-<table class="table table-bordered table-hover table-sm">
+	<p><a class="btn btn-primary" role="button" href="{{ path('videotheque_ajouter') }}">Ajouter un film</a></p>
+
+	<table class="table table-bordered table-hover table-sm">
 	<thead class="thead-dark">
 		<tr>
 			<th>Titre du film</th>