mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-25 08:43:36 +00:00
66 lines
1.7 KiB
HTML
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 %}
|