Projet

Général

Profil

t.diff

Frédéric Péters, 22 juillet 2014 15:15

Télécharger (3,4 ko)

Voir les différences:


  

authentic2/manager/templates/authentic2/manager/role.html
9 9

  
10 10
{% block content %}
11 11
   <div class="role-info">
12
     <form id="delete-form" action="?delete" method="post">
13
        {% csrf_token %}
14
        <button>{% trans "Delete" %}</button>
15
     </form>
16
     <h3>{% trans "Users with role" %}: {{ active_role.name }} <a rel="popup" class="edit-button" href="{% url "a2-manager-role-edit" role_ref=active_role.ref %}">Edit</a></h3>
17
     <div id="search-form">
18
       {% trans "Search" %}: <input id="search-input" type="text" value="{{ request.GET.search }}">
19
       <button id="search-input-clear-btn">{% trans "Clear" %}</button>
20
     </div>
12
     <h3 style="margin-top: 0;">{% trans "Users with role" %}: {{ active_role.name }}</h3>
21 13

  
22 14
     {% render_table users "authentic2/manager/table.html" %}
23 15

  
authentic2/manager/templates/authentic2/manager/roles.html
3 3

  
4 4
{% block title %}{{ block.super }} - {% trans "Roles management" %}{% endblock %}
5 5

  
6
{% block page_title %}{% trans "Roles management" %}{% endblock %}
6
{% block page_title %}{% trans "Roles management" %}
7
{% if active_role %} — {{ active_role.name }}{% endif %}
8
{% endblock %}
9

  
10
{% block appbar %}
11
  {{ block.super }}
12
  {% if active_role %}
13
  <a rel="popup" href="#" id="add-user-btn">{% trans "Delete" %}</a>
14
  <a rel="popup" href="{% url "a2-manager-role-edit" role_ref=active_role.ref %}" id="add-user-btn">{% trans "Edit" %}</a>
15
  {% else %}
16
   <p><a href="{% url "a2-manager-role-add" %}" rel="popup">{% trans "Add role" %}</a></p>
17
  {% endif %}
18
{% endblock %}
19

  
7 20

  
8 21
{% block sidebar %}
9 22
   <ul class="roles">
......
16 29
       </li>
17 30
     {% endfor %}
18 31
   </ul>
19
   <p><a href="{% url "a2-manager-role-add" %}" rel="popup">{% trans "Add role" %}</a></p>
20
   <p><a href="{% url "a2-manager-users" %}">{% trans "Users management" %}</a></p>
32

  
33
   {% if active_role %}
34
     <hr />
35
     <div id="search-form">
36
       <h3>{% trans "Search" %}</h3>
37
       <input id="search-input" type="search" value="{{ request.GET.search }}">
38
       <button>{% trans "Search" %}</button>
39
     </div>
40
   {% endif %}
21 41
{% endblock %}
22 42

  
23 43
{% block content %}
authentic2/manager/templates/authentic2/manager/users.html
14 14
  <div>
15 15
    <h3>{% trans "Search" %}</h3>
16 16
     <div id="search-form">
17
       <input id="search-input" type="text" value="{{ request.GET.search }}">
18
       <button id="search-input-clear-btn">{% trans "Clear" %}</button>
17
       <input id="search-input" type="search" value="{{ request.GET.search }}">
18
       <button>{% trans "Search" %}</button>
19 19
     </div>
20 20
  </div>
21 21
  <p>{{ users.count }} users</p>
22
  <p><a href="{% url "a2-manager-roles" %}">{% trans "Roles management" %}</a></p>
23 22
{% endblock %}
24 23

  
25 24
{% block content %}