40 lines
971 B
HTML
40 lines
971 B
HTML
{% extends "base.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block content %}
|
|
|
|
{% if title %}
|
|
<h2>{{ title }}</h2>
|
|
{% else %}
|
|
<h2>{% trans "Modify or delete a permission" %}</h2>
|
|
{% endif %}
|
|
|
|
|
|
{% if messages %}
|
|
<ul class="messages">
|
|
{% for message in messages %}
|
|
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
|
|
{% if list_any %}
|
|
<ul>
|
|
{% for p in list_any %}
|
|
<li>
|
|
<p>{{ p }}</p>
|
|
<form method="post" action="/del_permission">
|
|
{% if back_url %}<input type="hidden" name="back_url" value="{{ back_url }}"/>{% endif %}
|
|
<input type="hidden" name="type_entity" value="{{ type_entity }}"/>
|
|
<input type="hidden" name="id" value="{{ p.id }}"/>
|
|
<input type="submit" name="Delete" value="{% trans "Delete" %}"/>
|
|
</form>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
<div class="right">
|
|
<a class="back" href="{{ backlink }}">{% trans "Back" %}</a>
|
|
</div>
|
|
{% endblock %}
|