1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2025-06-30 05:51:09 +02:00

Simple library views

This commit is contained in:
Alexandre Iooss
2019-08-08 21:08:24 +02:00
parent 9f52bed890
commit 0c504e85fc
15 changed files with 49 additions and 293 deletions

View File

@ -15,7 +15,6 @@ SPDX-License-Identifier: GPL-3.0-or-later
<th>Joueurs min</th>
<th>Joueurs max</th>
<th>Comment</th>
<th></th>
</tr>
</thead>
{% for jeu in jeux_list %}
@ -26,18 +25,6 @@ SPDX-License-Identifier: GPL-3.0-or-later
<td>{{ jeu.nombre_joueurs_min }}</td>
<td>{{ jeu.nombre_joueurs_max }}</td>
<td>{{ jeu.comment }}</td>
<td>
{% if perms.media.change_jeu %}
<a class="btn btn-primary btn-sm" href="{% url 'media:edit-jeu' jeu.id %}">
Éditer
</a>
{% endif %}
{% if perms.media.delete_jeu %}
<a class="btn btn-danger btn-sm" href="{% url 'media:del-jeu' jeu.id %}">
Supprimer
</a>
{% endif %}
</td>
</tr>
{% endfor %}
</table>