| 
					
				 | 
			
			
				@@ -9,15 +9,18 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 {% endblock %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 {% block body %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<p><a class="btn btn-primary" role="button" href="{{ path('videotheque_ajouter') }}"><i class="fa fa-plus-square fa-lg"></i> Ajouter un film</a></p> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	{% endif %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<div class="table-responsive"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<table class="table table-bordered table-hover table-sm"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<thead class="thead-dark"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				<tr> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					<th>Voir</th> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					<th>Vu</th> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					<th>Ajouté par</th> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						<th>Voir</th> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						<th>Vu</th> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						<th>Ajouté par</th> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					{% endif %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					<th>Titre du film</th> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					<th>Genre</th> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					<th>Réalisateur</th> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -32,48 +35,50 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<tbody> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				{% for film in listeFilms %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				<tr> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					<td> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						{%  if app.user.wantToSee(film) %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							{% set follow_icone = "fa fa-star fa-lg" %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							{% set follow_texte = "Supprimer ce film de votre liste à voir" %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						{% else %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							{% set follow_icone = "fa fa-star-o fa-lg" %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							{% set follow_texte = "Ajouter ce film à votre liste à voir" %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						{% endif %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						<a href="#" data-fonction="switch" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-									data-icone-actif="fa fa-star fa-lg" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-									data-icone-inactif="fa fa-star-o fa-lg" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-									data-path="{{ path('maliste_modifier_a_voir') }}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-									data-toggle="tooltip" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-									title="{{ follow_texte }}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-									data-content="{{ film.id }}"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							<i class="{{ follow_icone }}"></i> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						</a> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					</td> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					<td> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						{%  if app.user.haveSeen(film) %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							{% set vu_icone = '<i class="fa fa-eye fa-lg text-success"></i>' %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						{% else %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							{% set vu_icone = '<i class="fa fa-eye-slash fa-lg text-secondary"></i>' %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						{% endif %}				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						<a href="#" data-fonction="switch" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-									data-path="{{ path('maliste_modifier_vus') }}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-									data-content="{{ film.id }}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-									data-icone-actif = "fa fa-eye fa-lg text-success" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-									data-icone-inactif = "fa fa-eye-slash fa-lg text-secondary"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							{{ vu_icone | raw }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						</a> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					</td> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					<td> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						{%  if film.authered is defined %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							{% if film.authered.activeNow %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-								<i class="fa fa-user text-success"></i> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						<td> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							{%  if app.user.wantToSee(film) %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								{% set follow_icone = "fa fa-star fa-lg" %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								{% set follow_texte = "Supprimer ce film de votre liste à voir" %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							{% else %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-								<i class="fa fa-user-o text-secondary"></i> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								{% set follow_icone = "fa fa-star-o fa-lg" %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								{% set follow_texte = "Ajouter ce film à votre liste à voir" %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							{% endif %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							{{ film.authered.username }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						{% endif %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					</td> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							<a href="#" data-fonction="switch" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+										data-icone-actif="fa fa-star fa-lg" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+										data-icone-inactif="fa fa-star-o fa-lg" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+										data-path="{{ path('maliste_modifier_a_voir') }}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+										data-toggle="tooltip" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+										title="{{ follow_texte }}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+										data-content="{{ film.id }}"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								<i class="{{ follow_icone }}"></i> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							</a> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						</td> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						<td> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							{%  if app.user.haveSeen(film) %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								{% set vu_icone = '<i class="fa fa-eye fa-lg text-success"></i>' %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							{% else %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								{% set vu_icone = '<i class="fa fa-eye-slash fa-lg text-secondary"></i>' %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							{% endif %}				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							<a href="#" data-fonction="switch" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+										data-path="{{ path('maliste_modifier_vus') }}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+										data-content="{{ film.id }}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+										data-icone-actif = "fa fa-eye fa-lg text-success" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+										data-icone-inactif = "fa fa-eye-slash fa-lg text-secondary"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								{{ vu_icone | raw }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							</a> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						</td> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						<td> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							{%  if film.authered is defined %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								{% if film.authered.activeNow %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+									<i class="fa fa-user text-success"></i> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								{% else %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+									<i class="fa fa-user-o text-secondary"></i> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								{% endif %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								{{ film.authered.username }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							{% endif %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						</td> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					{% endif %} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					<td> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						<a href="{{ path('videotheque_voirfilm', {'id': film.id}) }}">{{ film.titre }}</a> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						{% if film.new %}<span class="badge badge-light">New</span>{% endif %} 
			 |