Sunil Mohan Adapa e89e2b4a2a
*.html: Use SPDX license identifier
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-02-19 14:39:19 +02:00

66 lines
1.7 KiB
HTML

{% extends "app.html" %}
{% comment %}
# SPDX-License-Identifier: AGPL-3.0-or-later
{% endcomment %}
{% load bootstrap %}
{% load i18n %}
{% block page_head %}
<style type="text/css">
.user-edit-label {
display: inline-block;
width: 75%;
}
.list-group-item .btn {
margin: -5px 0;
}
</style>
{% endblock %}
{% block configuration %}
<h3>{% trans "Users" %}</h3>
<div class="btn-toolbar">
<a href="{% url 'users:create' %}" class="btn btn-primary"
role="button" title="{% trans 'Create User' %}">
<span class="fa fa-plus" aria-hidden="true"></span>
{% trans 'Create User' %}
</a>
</div>
<div class="row">
<div class="col-sm-6">
<div class="list-group">
{% for user in object_list %}
<div class="list-group-item clearfix">
{% if user.username != last_admin_user %}
<a href="{% url 'users:delete' user.username %}"
class="btn btn-default btn-sm pull-right"
role="button"
title="{% blocktrans with username=user.username %}Delete user {{ username }}{% endblocktrans %}">
<span class="fa fa-trash-o"
aria-hidden="true"></span>
</a>
{% endif %}
<a class='user-edit-label'
href="{% url 'users:edit' user.username %}"
title="{% blocktrans with username=user.username %}Edit user {{ username }}{% endblocktrans %}">
{{ user.username }}
</a>
{% if not user.is_active %}
<span class="fa fa-ban"
aria-hidden="true"></span>
{% endif %}
</div>
{% endfor %}
</div>
</div>
</div>
{% endblock %}