mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2025-06-21 11:18:24 +02:00
Change media permissions
This commit is contained in:
@ -23,22 +23,31 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
{% endcomment %}
|
||||
|
||||
{% if auteurs_list.paginator %}
|
||||
{% include "pagination.html" with list=auteurs_list %}
|
||||
{% include "pagination.html" with list=auteurs_list %}
|
||||
{% endif %}
|
||||
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
{% for auteur in auteurs_list %}
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
{% for auteur in auteurs_list %}
|
||||
<tr>
|
||||
<td>{{ auteur.nom }}</td>
|
||||
<td>{% if is_perm %}{% include 'buttons/edit.html' with href='media:edit-auteur' id=auteur.id %}
|
||||
{% include 'buttons/suppr.html' with href='media:del-auteur' id=auteur.id %}{% endif %}
|
||||
{% include 'buttons/history.html' with href='media:history' name='auteur' id=auteur.id %}</td>
|
||||
<td>
|
||||
{% if is_perm %}
|
||||
<a class="btn btn-primary btn-sm" role="button" title="Éditer"
|
||||
href="{% url 'media:edit-auteur' auteur.id %}">
|
||||
<i class="glyphicon glyphicon-edit"></i>
|
||||
</a>
|
||||
<a class="btn btn-danger btn-sm" role="button" href="{% url 'media:del-auteur' auteur.id %}"
|
||||
title="Supprimer">
|
||||
<i class="glyphicon glyphicon-trash"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
@ -46,9 +46,18 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
<td>{{ jeu.nombre_joueurs_min }}</td>
|
||||
<td>{{ jeu.nombre_joueurs_max }}</td>
|
||||
<td>{{ jeu.comment }}</td>
|
||||
<td>{% if is_perm %}{% include 'buttons/edit.html' with href='media:edit-jeu' id=jeu.id %}
|
||||
{% include 'buttons/suppr.html' with href='media:del-jeu' id=jeu.id %}{% endif %}
|
||||
{% include 'buttons/history.html' with href='media:history' name='jeu' id=jeu.id %}</td>
|
||||
<td>
|
||||
{% if is_perm %}
|
||||
<a class="btn btn-primary btn-sm" role="button" title="Éditer"
|
||||
href="{% url 'media:edit-jeu' jeu.id %}">
|
||||
<i class="glyphicon glyphicon-edit"></i>
|
||||
</a>
|
||||
<a class="btn btn-danger btn-sm" role="button" href="{% url 'media:del-jeu' jeu.id %}"
|
||||
title="Supprimer">
|
||||
<i class="glyphicon glyphicon-trash"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
@ -23,26 +23,35 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
{% endcomment %}
|
||||
|
||||
{% if medias_list.paginator %}
|
||||
{% include "pagination.html" with list=medias_list %}
|
||||
{% include "pagination.html" with list=medias_list %}
|
||||
{% endif %}
|
||||
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Titre</th>
|
||||
<th>Auteur</th>
|
||||
<th>Cote</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
{% for media in medias_list %}
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Titre</th>
|
||||
<th>Auteur</th>
|
||||
<th>Cote</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
{% for media in medias_list %}
|
||||
<tr>
|
||||
<td>{{ media.titre }}</td>
|
||||
<td>{% for aut in media.auteur.all %}{{ aut }}, {% endfor %}</td>
|
||||
<td>{{ media.cote }}</td>
|
||||
<td>{% if is_perm %}{% include 'buttons/edit.html' with href='media:edit-media' id=media.id %}
|
||||
{% include 'buttons/suppr.html' with href='media:del-media' id=media.id %}{% endif %}
|
||||
{% include 'buttons/history.html' with href='media:history' name='media' id=media.id %}</td>
|
||||
<td>
|
||||
{% if is_perm %}
|
||||
<a class="btn btn-primary btn-sm" role="button" title="Éditer"
|
||||
href="{% url 'media:edit-media' media.id %}">
|
||||
<i class="glyphicon glyphicon-edit"></i>
|
||||
</a>
|
||||
<a class="btn btn-danger btn-sm" role="button" href="{% url 'media:del-media' media.id %}"
|
||||
title="Supprimer">
|
||||
<i class="glyphicon glyphicon-trash"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
@ -1,43 +0,0 @@
|
||||
{% extends "base.html" %}
|
||||
{% comment %}
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
{% endcomment %}
|
||||
|
||||
{% load bootstrap3 %}
|
||||
|
||||
{% block title %}Historique{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Historique de {{ object }}</h2>
|
||||
{% if reversions.paginator %}
|
||||
<ul class="pagination nav navbar-nav">
|
||||
{% if reversions.has_previous %}
|
||||
<li><a href="?page={{ reversions.previous_page_number }}">Suivants</a></li>
|
||||
{% endif %}
|
||||
{% for page in reversions.paginator.page_range %}
|
||||
<li class="{% if reversions.number == page %}active{% endif %}"><a
|
||||
href="?page={{ page }}">{{ page }}</a></li>
|
||||
{% endfor %}
|
||||
|
||||
{% if reversions.has_next %}
|
||||
<li><a href="?page={{ reversions.next_page_number }}">Précédents</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Cableur</th>
|
||||
<th>Commentaire</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{% for rev in reversions %}
|
||||
<tr>
|
||||
<td>{{ rev.revision.date_created }}</td>
|
||||
<td>{{ rev.revision.user }}</td>
|
||||
<td>{{ rev.revision.comment }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user