1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2025-06-21 01:58:21 +02:00

Add paginator et model pour les jeux

This commit is contained in:
Med
2017-07-03 17:48:56 +02:00
parent 760e309afb
commit 2b8ae80b4d
5 changed files with 59 additions and 2 deletions

View File

@ -22,6 +22,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
{% endcomment %}
{% if emprunts_list.paginator %}
{% include "pagination.html" with list=emprunts_list %}
{% endif %}
<table class="table table-striped">
<thead>
<tr>

View File

@ -38,7 +38,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% for media in medias_list %}
<tr>
<td>{{ media.titre }}</td>
<td>{{ media.auteur }}</td>
<td>{% for aut in media.auteur.all %}{{ aut }}, {% endfor %}</td>
<td>{{ media.cote }}</td>
<td>{% include 'buttons/edit.html' with href='media:edit-media' id=media.id %}
{% include 'buttons/suppr.html' with href='media:del-media' id=media.id %}