François Drouhard před 2 roky
rodič
revize
f9af2a8ae2

+ 0 - 2
src/Controller/VideothequePersonnelleController.php

@@ -49,7 +49,6 @@ class VideothequePersonnelleController extends AbstractController
             $film->inverseUserWantToView($this->getUser());
             $em->flush();
         }
-        /*$resultat = $this->get('serializer')->serialize($film, 'json');*/
         return new JsonResponse('OK');
     }
 
@@ -66,7 +65,6 @@ class VideothequePersonnelleController extends AbstractController
             $film->inverseUserWhoSeen($this->getUser());
             $em->flush();
         }
-        /*$resultat = $this->get('serializer')->serialize($film, 'json');*/
         return new JsonResponse('OK');
     }
 

+ 14 - 3
templates/videotheque/voirfilm.html.twig

@@ -1,7 +1,20 @@
 {% extends "videotheque/base.html.twig" %}
 
+{% block stylesheets %}
+    {{ encore_entry_link_tags('vuejs') }}
+{% endblock %}
+
+{% block javascripts %}
+    {{ encore_entry_script_tags('vuejs') }}
+{% endblock %}
+
 {% block title %}{{ parent() }} - Fiche film - {{ film.titre }}{% endblock %}
 {% block titre %}
+    {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
+        <div id="vue-app">
+            <card></card>
+        </div>
+    {% endif %}
     {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
         {%  if film.usersWantToView.contains(app.user) %}
             {% set follow_icone = "fa fa-bookmark" %}
@@ -183,6 +196,4 @@
             </div>
         </div>
     </div>
-{% endblock %}
-{% block javascripts %}
-{%  endblock %}
+{% endblock %}