takahe/templates/admin/user_edit.html

37 lines
1.4 KiB
HTML
Raw Permalink Normal View History

{% extends "admin/base_main.html" %}
2022-12-16 23:38:52 +00:00
2022-12-17 02:42:48 +00:00
{% block subtitle %}{{ editing_user.email }}{% endblock %}
2022-12-16 23:38:52 +00:00
{% block settings_content %}
2022-12-16 23:38:52 +00:00
<h1>{{ editing_user.email }}</h1>
<form action="." method="POST">
{% csrf_token %}
<fieldset>
<legend>Permissions</legend>
{% include "forms/_field.html" with field=form.status %}
{% if same_user %}
2023-01-09 16:58:17 +00:00
<ul class="errorlist">
<li>You cannot edit your own permission status!</li>
</ul>
2022-12-16 23:38:52 +00:00
{% endif %}
</fieldset>
<fieldset>
<legend>Identities</legend>
{% for identity in editing_user.identities.all %}
{% include "activities/_identity.html" %}
{% empty %}
<p>This user has no identities yet.</p>
{% endfor %}
</fieldset>
<fieldset>
<legend>Dates</legend>
<p>Last seen: <time title="{{ editing_user.last_seen }} UTC">{{ editing_user.last_seen | timesince }} ago</time></p>
<p>Created: <time title="{{ editing_user.created }} UTC">{{ editing_user.created | timesince }} ago</time></p>
</fieldset>
<div class="buttons">
2023-06-14 17:15:29 +00:00
<a href="{{ editing_user.urls.admin }}?page={{ page }}" class="button secondary left">Back</a>
2022-12-16 23:38:52 +00:00
<button>Save</button>
</div>
</form>
{% endblock %}