|
@@ -6,31 +6,29 @@
|
|
|
{% block body %}
|
|
|
<div class="row">
|
|
|
<div class="col">
|
|
|
- <p>Réalisateur(s)</p>
|
|
|
+ <p><strong>Année</strong> : {{ film.annee | date('Y') }}</p>
|
|
|
+ <p><strong>Réalisateur(s)</strong></p>
|
|
|
<ul>
|
|
|
{% for realisateur in film.realisateurs %}
|
|
|
<li>{{ realisateur.nomComplet }}</li>
|
|
|
{% endfor %}
|
|
|
</ul>
|
|
|
- </div>
|
|
|
- <div class="col">
|
|
|
- <p>Ce film est suivi par</p>
|
|
|
+ <p><strong>Suivi par</strong></p>
|
|
|
<ul>
|
|
|
{% for user in film.usersWantToView %}
|
|
|
<li>{{ user.username }}</li>
|
|
|
{% endfor %}
|
|
|
</ul>
|
|
|
+ <h3>Votre commentaire</h3>
|
|
|
+ {{ include('@App/videotheque/form_commentaire.html.twig') }}
|
|
|
+ </div>
|
|
|
+ <div class="col">
|
|
|
+ <h2>Commentaires</h2>
|
|
|
+ {% for commentaire in commentaires %}
|
|
|
+ <p><strong>Posté par {{ commentaire.user.username }}</strong></p>
|
|
|
+ <p>{{ commentaire.contenu }}</p>
|
|
|
+ <hr />
|
|
|
+ {% endfor %}
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="">
|
|
|
- <h2>Commentaires</h2>
|
|
|
- <h3>Votre commentaire</h3>
|
|
|
- {{ include('@App/videotheque/form_commentaire.html.twig') }}
|
|
|
- <h3>Tous les commentaires</h3>
|
|
|
- {% for commentaire in commentaires %}
|
|
|
- <h4>Posté par {{ commentaire.user.username }}</h4>
|
|
|
- <p>{{ commentaire.contenu }}</p>
|
|
|
- <hr />
|
|
|
- {% endfor %}
|
|
|
</div>
|
|
|
{% endblock %}
|