mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
users: Use common styling for users list
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
parent
e2aa3c2229
commit
9e04782f0d
@ -6,18 +6,6 @@
|
|||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block page_head %}
|
|
||||||
<style type="text/css">
|
|
||||||
.user-edit-label {
|
|
||||||
display: inline-block;
|
|
||||||
width: 75%;
|
|
||||||
}
|
|
||||||
.list-group-item .btn {
|
|
||||||
margin: -0.3125rem 0;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block configuration %}
|
{% block configuration %}
|
||||||
|
|
||||||
<h3>{% trans "Users" %}</h3>
|
<h3>{% trans "Users" %}</h3>
|
||||||
@ -32,29 +20,29 @@
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="list-group">
|
<div class="list-group list-group-two-column">
|
||||||
{% for user in object_list %}
|
{% for user in object_list %}
|
||||||
<div class="list-group-item clearfix">
|
<div class="list-group-item">
|
||||||
{% if user.username != last_admin_user %}
|
<a class='user-edit-label primary'
|
||||||
<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 %}"
|
href="{% url 'users:edit' user.username %}"
|
||||||
title="{% blocktrans with username=user.username %}Edit user {{ username }}{% endblocktrans %}">
|
title="{% blocktrans with username=user.username %}Edit user {{ username }}{% endblocktrans %}">
|
||||||
{{ user.username }}
|
{{ user.username }}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
{% if not user.is_active %}
|
{% if not user.is_active %}
|
||||||
<span class="fa fa-ban"
|
<span class="fa fa-ban primary"
|
||||||
aria-hidden="true"></span>
|
aria-hidden="true"></span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if user.username != last_admin_user %}
|
||||||
|
<a href="{% url 'users:delete' user.username %}"
|
||||||
|
class="btn btn-default btn-sm secondary"
|
||||||
|
role="button"
|
||||||
|
title="{% blocktrans with username=user.username %}Delete user {{ username }}{% endblocktrans %}">
|
||||||
|
<span class="fa fa-trash-o"
|
||||||
|
aria-hidden="true"></span>
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user