59 lines
1.4 KiB
HTML
59 lines
1.4 KiB
HTML
{% extends "base.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block content %}
|
|
|
|
<h2>{% trans "Empower or downgrade administration root users" %}</h2>
|
|
<h3>
|
|
<strong>{% trans "Here you can give or remove the capability of a user to be an administrator of the wholme system." %}</strong>
|
|
</h3>
|
|
|
|
{% if messages %}
|
|
<ul class="messages">
|
|
{% for message in messages %}
|
|
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
|
|
{% if not_root_users or root_users %}
|
|
<p>{% trans "Users you can administrate:" %}</p>
|
|
|
|
{% if not_root_users %}
|
|
<ul>
|
|
{% for user in not_root_users %}
|
|
<li><p>
|
|
<label>{{ user.username }}</label>
|
|
<form method="post" action="">
|
|
<input type="hidden" name="id" value="{{ user.id }}"/>
|
|
<input type="submit" name="empower" value="{% trans "Empower" %}"/>
|
|
</form>
|
|
</p></li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
|
|
{% if root_users %}
|
|
<ul>
|
|
{% for user in root_users %}
|
|
<li><p>
|
|
<label>{{ user.username }}</label>
|
|
<form method="post" action="">
|
|
<input type="hidden" name="id" value="{{ user.id }}"/>
|
|
<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 %}
|