Commit 738ceb6ee00a1f03e4f99e2efb3861b451214bfa

Authored by ailsoncgt
1 parent e874a320

Fixing error in image #184

Showing 1 changed file with 18 additions and 15 deletions   Show diff stats
users/templates/list_users.html
1 {% extends 'home.html' %} 1 {% extends 'home.html' %}
2 2
3 -{% load i18n pagination django_bootstrap_breadcrumbs static %} 3 +{% load i18n pagination django_bootstrap_breadcrumbs permission_tags static %}
4 4
5 {% block breadcrumbs %} 5 {% block breadcrumbs %}
6 6
@@ -9,20 +9,23 @@ @@ -9,20 +9,23 @@
9 9
10 {% endblock %} 10 {% endblock %}
11 11
12 -{% block sidebar %}  
13 - <div class="panel panel-primary navigation">  
14 - <div class="panel-heading">  
15 - <h5>{% trans 'Menu' %}</h5>  
16 - </div>  
17 - <div class="panel-body">  
18 - <ul class="nav nav-pills nav-stacked">  
19 - <li><a href="{% url 'core:home' %}">{% trans "Home" %}</a></li>  
20 - <li><a href="{% url 'users:create' %}">{% trans 'Add user' %}</a></li>  
21 - <li><a href="javascript:void(0)">{% trans 'Send email' %}</a></li>  
22 - </ul> 12 +{% if user|has_role:'system_admin' %}
  13 + {% block sidebar %}
  14 + <div class="panel panel-primary navigation">
  15 + <div class="panel-heading">
  16 + <h5>{% trans 'Menu' %}</h5>
  17 + </div>
  18 + <div class="panel-body">
  19 + <ul class="nav nav-pills nav-stacked">
  20 + <li><a href="{% url 'core:home' %}">{% trans "Home" %}</a></li>
  21 + <li><a href="{% url 'users:create' %}">{% trans 'Add user' %}</a></li>
  22 + <li><a href="javascript:void(0)">{% trans 'Send email' %}</a></li>
  23 + </ul>
  24 + </div>
23 </div> 25 </div>
24 - </div>  
25 -{% endblock %} 26 + {% endblock %}
  27 +{% endif %}
  28 +
26 29
27 {% block content %} 30 {% block content %}
28 {% if messages %} 31 {% if messages %}
@@ -54,7 +57,7 @@ @@ -54,7 +57,7 @@
54 <div class="panel-body"> 57 <div class="panel-body">
55 <div class="col-md-4"> 58 <div class="col-md-4">
56 {% if acc.image %} 59 {% if acc.image %}
57 - <div style="background-image: url('{{ acc.image.url }}'); background-size: 100%" alt="photoUser" class="img-circle img-responsive img-list-user"></div> 60 + <div style="background-image: url('{{ acc.image.url }}'); background-size: 100% 100%; background-repeat: no-repeat;" alt="photoUser" class="img-circle img-responsive img-list-user"></div>
58 {% else %} 61 {% else %}
59 {% if acc.gender == 'M' %} 62 {% if acc.gender == 'M' %}
60 <img src="{% static 'img/male_avatar.png' %}" alt="Avatar" class="img-circle img-responsive img-list-user"> 63 <img src="{% static 'img/male_avatar.png' %}" alt="Avatar" class="img-circle img-responsive img-list-user">