소스 검색

Mise à jour layout fiche film

François 6 년 전
부모
커밋
3d640bcb44
1개의 변경된 파일13개의 추가작업 그리고 15개의 파일을 삭제
  1. 13 15
      src/AppBundle/Resources/views/videotheque/voirfilm.html.twig

+ 13 - 15
src/AppBundle/Resources/views/videotheque/voirfilm.html.twig

@@ -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 %}