mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
Show active status in user list, increase delete button size
- Separate out styling details
This commit is contained in:
parent
82c2785272
commit
a625d67152
@ -20,25 +20,42 @@
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
|
|
||||||
{% block content %}
|
{% 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 content %}
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-4">
|
<div class="col-sm-4">
|
||||||
<div class="list-group">
|
<div class="list-group">
|
||||||
{% for user in object_list %}
|
{% for user in object_list %}
|
||||||
<div class="list-group-item">
|
<div class="list-group-item clearfix">
|
||||||
<a href="{% url 'users:edit' user.username %}"
|
<a href="{% url 'users:delete' user.username %}"
|
||||||
style="display:inline-block; width:75%;"
|
class="btn btn-default btn-sm pull-right"
|
||||||
|
role="button" title="Delete user {{ user.username }}">
|
||||||
|
<span class="glyphicon glyphicon-trash"
|
||||||
|
aria-hidden="true"></span>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a class='user-edit-label'
|
||||||
|
href="{% url 'users:edit' user.username %}"
|
||||||
title="Edit user {{ user.username }}">
|
title="Edit user {{ user.username }}">
|
||||||
{{ user.username }}
|
{{ user.username }}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a href="{% url 'users:delete' user.username %}"
|
{% if not user.is_active %}
|
||||||
class="btn btn-default btn-xs pull-right"
|
<span class="glyphicon glyphicon-ban-circle"
|
||||||
role="button" title="Delete user {{ user.username }}">
|
aria-hidden="true"></span>
|
||||||
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
|
{% endif %}
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user