You've already forked snikket-web-portal
This aggregates the user actions behind a single "edit" button on the list view, making it less crammed. It also offers the functionality of actually editing the user, mind. Also in preparation for #42. Requires https://hg.prosody.im/prosody-modules/rev/5bc706c2db8f.
30 lines
891 B
HTML
30 lines
891 B
HTML
{% extends "admin_app.html" %}
|
|
{% from "library.j2" import action_button, value_or_hint, custom_form_button %}
|
|
{% block content %}
|
|
<h1>{% trans %}Manage users{% endtrans %}</h1>
|
|
<div class="elevated el-2"><table>
|
|
<thead>
|
|
<tr>
|
|
<th>{% trans %}Login name{% endtrans %}</th>
|
|
<th>{% trans %}Display name{% endtrans %}</th>
|
|
<th>{% trans %}Actions{% endtrans %}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for user in users %}
|
|
<tr>
|
|
<td>{{ user.localpart }}</td>
|
|
<td>{% call value_or_hint(user.display_name) %}{% endcall %}</td>
|
|
<td class="nowrap">
|
|
{%- call action_button("edit", url_for(".edit_user", localpart=user.localpart), class="primary") -%}
|
|
{% trans user_name=user.localpart %}Edit user {{ user_name }}{% endtrans %}
|
|
{%- endcall -%}
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table></div>
|
|
{%- include "admin_create_invite_form.html" -%}
|
|
{% endblock %}
|