|
@@ -53,14 +53,26 @@
|
|
<tr>
|
|
<tr>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% for idtmdb, film in films %}
|
|
{% for idtmdb, film in films %}
|
|
- <tr class="{{ film.information ? '' : 'border-bottom' }}">
|
|
|
|
|
|
+ {% if film['filmBdd'] is defined %}
|
|
|
|
+ <tr>
|
|
|
|
+ <td colspan="5">
|
|
|
|
+ <div class="alert alert-warning mb-0" role="alert">
|
|
|
|
+ Ce film est peut-être déjà en base :
|
|
|
|
+ {% for filmBdd in film['filmBdd'] %}
|
|
|
|
+ <a href="{{ path('videotheque_voirfilm', {'id': filmBdd.id} ) }}">Aller sur la fiche</a>
|
|
|
|
+ {% endfor %}
|
|
|
|
+ </div>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ {% endif %}
|
|
|
|
+ <tr class="{{ film['data'].information ? '' : 'border-bottom' }}">
|
|
<td><a type="button" class="btn btn-primary" href="{{ path('videotheque_ajouter', {'idtmdb': idtmdb }) }}">Créér</a></td>
|
|
<td><a type="button" class="btn btn-primary" href="{{ path('videotheque_ajouter', {'idtmdb': idtmdb }) }}">Créér</a></td>
|
|
- <td>{{ film.titre }}</td>
|
|
|
|
- <td>{% if film.dateSortie %}{{ film.dateSortie | date ('d/m/Y')}}{% endif %}</td>
|
|
|
|
- <td>{% for genre in film.genres %}<span class="badge bg-info me-1">{{ genre.name }}</span>{% endfor %}</td>
|
|
|
|
- <td>{% for realisateur in film.realisateurs %}<span class="badge bg-info me-1">{{ realisateur.nomComplet }}</span>{% endfor %}</td>
|
|
|
|
|
|
+ <td>{{ film['data'].titre }}</td>
|
|
|
|
+ <td>{% if film['data'].dateSortie %}{{ film['data'].dateSortie | date ('d/m/Y')}}{% endif %}</td>
|
|
|
|
+ <td>{% for genre in film['data'].genres %}<span class="badge bg-info me-1">{{ genre.name }}</span>{% endfor %}</td>
|
|
|
|
+ <td>{% for realisateur in film['data'].realisateurs %}<span class="badge bg-info me-1">{{ realisateur.nomComplet }}</span>{% endfor %}</td>
|
|
</tr>
|
|
</tr>
|
|
- {% if film.information %}
|
|
|
|
|
|
+ {% if film['data'].information %}
|
|
<tr data-controller="collapser" class="border-bottom">
|
|
<tr data-controller="collapser" class="border-bottom">
|
|
<td colspan="5">
|
|
<td colspan="5">
|
|
<div class="d-flex">
|
|
<div class="d-flex">
|
|
@@ -70,7 +82,7 @@
|
|
</a>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div id="collapseResume-{{ idtmdb }}" class="collapse" data-collapser-target="collapse">
|
|
<div id="collapseResume-{{ idtmdb }}" class="collapse" data-collapser-target="collapse">
|
|
- {{ film.information }}
|
|
|
|
|
|
+ {{ film['data'].information }}
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|