This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
veridic/acs/templates/empower_or_downgrade.html

76 lines
1.7 KiB
HTML

{% extends "base.html" %}
{% load i18n %}
{% block content %}
{% if title %}
<h2>{{ title }}</h2>
{% endif %}
{% if subtitle %}
<h3>{{ subtitle }}</h3>
{% endif %}
{% if messages %}
<ul class="messages">
{% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
{% if not_manageable %}
{% if explanation %}
<h4>{{ explanation }}</h4>
{% endif %}
<ul>
{% for user in not_manageable %}
<li><p>
<label>{{ user.username }}</label>
</p></li>
{% endfor %}
</ul>
{% endif %}
{% if not_empowered or empowered %}
<h4>{% trans "Users you can administrate:" %}</h4>
{% if not_empowered %}
<ul>
{% for user in not_empowered %}
<li><p>
<label>{{ user.username }}</label>
<form method="post" action="">
<input type="hidden" name="id" value="{{ user.id }}"/>
<input type="hidden" name="type" value="{{ type_admin }}"/>
<input type="submit" name="empower" value="{% trans "Empower" %}"/>
</form>
</p></li>
{% endfor %}
</ul>
{% endif %}
{% if empowered %}
<ul>
{% for user in empowered %}
<li><p>
<label>{{ user.username }}</label>
<form method="post" action="">
<input type="hidden" name="id" value="{{ user.id }}"/>
<input type="hidden" name="type" value="{{ type_admin }}"/>
<input type="submit" name="downgrade" value="{% trans "Downgrade" %}"/>
</form>
</p></li>
{% endfor %}
</ul>
{% endif %}
{% else %}
<p>
There is no user you are authorized to administrate.
</p>
{% endif %}
<div class="right">
<a class="back" href="{{ backlink }}">{% trans "Back" %}</a>
</div>
{% endblock %}