Implement multiple realm admins
This commit is contained in:
parent
9a18170457
commit
a398bacbab
@ -1,14 +1,19 @@
|
|||||||
{% extends 'base.jinja2' %}
|
{% extends 'base.jinja2' %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h2>Neuen Bereich anlegen</h2>
|
{% if request.user.is_superuser %}
|
||||||
<form method="post">
|
<h2>Neuen Bereich anlegen</h2>
|
||||||
<input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}">
|
<form method="post">
|
||||||
{{ form.as_p()|safe }}
|
<input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}">
|
||||||
<button type="submit">Anlegen</button>
|
{{ form.as_p()|safe }}
|
||||||
</form>
|
<button type="submit">Anlegen</button>
|
||||||
|
</form>
|
||||||
|
{% endif %}
|
||||||
<h2>Realms</h2>
|
<h2>Realms</h2>
|
||||||
{% for realm in realms %}
|
{% for realm in realms %}
|
||||||
<p><a href="{{ url('realm-detail', args=[realm.id]) }}">{{ realm.name }}</a> <a
|
<p><a href="{{ url('realm-detail', args=[realm.id]) }}">{{ realm.name }}</a>
|
||||||
href="{{ url('realm-delete', args=[realm.id]) }}">Delete</a></p>
|
{% if request.user.is_superuser %}
|
||||||
|
<a href="{{ url('realm-delete', args=[realm.id]) }}">Delete</a>
|
||||||
|
{% endif %}
|
||||||
|
</p>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user