123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- {% extends 'base.html.twig' %}
- {% block title %}Films{% endblock %}
- {% block body %}
- {{ include('form/_form.film.html.twig') }}
- <table>
- <thead>
- <tr>
- <th>Nom</th>
- <th>Realisateur</th>
- <th>Genre</th>
- <th>Ajouté par</th>
- {#<th>Date d'ajout</th>#}
- <th></th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <th colspan="6" class="title">Ma liste</th>
- </tr>
- </tbody>
- <tbody class="user-list" data-sortable-sortable="true" data-controller="sortable" data-sortable-group="shared" data-sortable-url="{{ path('update_list') }}">
-
- {% for film in mesFilms %}
- <tr data-id="{{ film.id }}">
- <td>{{ film.name }}</td>
- <td>{{ film.realisateur }}</td>
- <td>{{ film.genre }}</td>
- <td>{{ (film.commonLists | first).addedBy.pseudo }}</td>
- {#<td>{{ (film.commonLists | first).dateAdded | date('d/m/Y') }}</td>#}
- <td>
- <a href="{{ path('app_index', {'id': film.id} ) }}"><i class="fa fa-edit"></i></a>
- </td>
- </tr>
- {% endfor %}
- </tbody>
- <tbody>
- <tr>
- <th colspan="6" class="title">Liste complète</th>
- </tr>
- </tbody>
- <tbody class="common-list" data-controller="sortable" data-sortable-group="shared" data-sortable-url="{{ path('update_list') }}">
- {% for entry in listeFilms %}
- {% set film = entry.film %}
- {% if film not in mesFilms %}
- <tr data-id="{{ film.id }}">
- <td>{{ film.name }}</td>
- <td>{{ film.realisateur }}</td>
- <td>{{ film.genre }}</td>
- <td>{{ entry.addedBy.pseudo }}</td>
- {#<td>{{ entry.dateAdded | date('d/m/Y') }}</td>#}
- <td>
- <a href="{{ path('app_index', {'id': film.id} ) }}"><i class="fa fa-edit"></i></a>
- </td>
- </tr>
- {% endif %}
- {% endfor %}
- </tbody>
- </table>
- {% endblock %}
|