|
@@ -35,7 +35,7 @@
|
|
|
<section id="tableFilms">
|
|
|
|
|
|
{% for film in listeFilms %}
|
|
|
- <article class="card border-primary mb-4" data-auteur="{{ film.authered.nomComplet }}">
|
|
|
+ <article class="card border-primary mb-4" data-controller="collapser" data-auteur="{{ film.authered.nomComplet }}">
|
|
|
<div class="card-header d-flex justify-content-between">
|
|
|
<h3 class="card-title"><a class="" href="{{ path('videotheque_voirfilm', {'id': film.id}) }}"><span data-bs-toggle="tooltip" data-placement="right" title="{{ film.information }}">{{ film.titre }}</span></a>
|
|
|
{% if film.new %}<span class="badge bg-success">New</span>{% endif %}
|
|
@@ -57,7 +57,7 @@
|
|
|
{{ vu_icone | raw }}
|
|
|
</button>
|
|
|
</div>
|
|
|
- <div class="">
|
|
|
+ <div class="me-3">
|
|
|
{% if app.user.wantToSee(film) %}
|
|
|
{% set follow_icone = "fa fa-bookmark fa-lg" %}
|
|
|
{% set follow_texte = "Supprimer ce film de votre liste à voir" %}
|
|
@@ -77,31 +77,12 @@
|
|
|
</button>
|
|
|
</div>
|
|
|
{% endif %}
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="card-body">
|
|
|
-
|
|
|
- <div class="d-flex">
|
|
|
- <div class="me-3">
|
|
|
- <input class="rating"
|
|
|
- data-theme="krajee-fa"
|
|
|
- data-language="fr"
|
|
|
- data-display-only="true"
|
|
|
- data-show-caption="false"
|
|
|
- style="display:none;"
|
|
|
- min=0
|
|
|
- max=5
|
|
|
- data-step=0.5
|
|
|
- data-size="xs"
|
|
|
- value="{{ film.note }}">
|
|
|
- </div>
|
|
|
<div class="">
|
|
|
- {% if film.nbComs %}
|
|
|
- <a href="{{ path('videotheque_voirfilm', {'id': film.id}) }}#coms"><span class="badge bg-warning text-dark">{{ film.nbComs }} commentaire{% if film.nbComs > 1 %}s{% endif %}</span></a>
|
|
|
- {% endif %}
|
|
|
+ <button class="btn text-primary" data-collapser-target="button" data-bs-toggle="collapse" data-bs-target="#collapse-id-{{ film.id }}"><i class="fa fa-chevron-circle-right fa-lg"></i></button>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
+ </div>
|
|
|
+ <div class="card-body collapse" id="collapse-id-{{ film.id }}" data-collapser-target="collapse">
|
|
|
<table class="table">
|
|
|
<tbody>
|
|
|
<tr>
|
|
@@ -124,11 +105,35 @@
|
|
|
{% endfor %}
|
|
|
</td>
|
|
|
</tr>
|
|
|
+ <tr>
|
|
|
+ <th>Informations</th>
|
|
|
+ <td>{% if film.information %}{{ film.information | nl2br }}{% else %}Pas d'information{% endif %}</td>
|
|
|
+ </tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
-
|
|
|
</div>
|
|
|
- <div class="card-footer text-end">
|
|
|
+ <div class="card-footer d-flex justify-content-between">
|
|
|
+ <div class="d-flex">
|
|
|
+ <div class="me-3">
|
|
|
+ <input class="rating"
|
|
|
+ data-theme="krajee-fa"
|
|
|
+ data-language="fr"
|
|
|
+ data-display-only="true"
|
|
|
+ data-show-caption="false"
|
|
|
+ style="display:none;"
|
|
|
+ min=0
|
|
|
+ max=5
|
|
|
+ data-step=0.5
|
|
|
+ data-size="xs"
|
|
|
+ value="{{ film.note }}">
|
|
|
+ </div>
|
|
|
+ <div class="">
|
|
|
+ {% if film.nbComs %}
|
|
|
+ <a href="{{ path('videotheque_voirfilm', {'id': film.id}) }}#coms"><span class="badge bg-warning text-dark">{{ film.nbComs }} commentaire{% if film.nbComs > 1 %}s{% endif %}</span></a>
|
|
|
+ {% endif %}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="">
|
|
|
{% if film.authered is defined %}
|
|
|
Ajouté par
|
|
|
{{ film.authered.username }}
|
|
@@ -138,6 +143,7 @@
|
|
|
<i class="fa fa-user-o text-secondary" data-bs-toggle="tooltip" title="Hors ligne"></i>
|
|
|
{% endif %}
|
|
|
{% endif %}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</article>
|
|
|
{% endfor %}
|