Project

General

Profile

Download (1.9 KB) Statistics
| Branch: | Tag: | Revision:

calebasse / calebasse / personnes / templates / personnes / acces.html @ d9351bc8

1
{% extends "calebasse/base.html" %}
2

    
3
{% block appbar %}
4
<h2>Gestion des personnes — Accès</h2>
5
<a href="gestion-personnes.html">Retourner à la gestion des personnes</a>
6

    
7
<button class="dialog-button" data-url="new/ #form-content" data-default-button="Créer">Nouvel accès</button>
8
{% endblock %}
9

    
10
{% block beforecontent %}
11
<div id="sidebar">
12
  <div>
13
    <h3>Rechercher dans les comptes</h3>
14
    <form>
15
      <label>Identifiant : 
16
        <div class="text-input-wrapper">
17
          <input type="text"/ name='identifier' value="{{ request.GET.identifier }}">
18
          <span class="clear">&#x2716;</span>
19
        </div>
20
      </label>
21
      <button>Rechercher</button>
22
    </form>
23
  </div>
24
</div>
25
{% endblock %}
26

    
27
{% block content %}
28
<div class="content">
29
  {% if active_list %}
30
  <table class="main">
31
    <thead>
32
    <tr>
33
      <th>Identifiant</th>
34
      <th>Courriel</th>
35
      <th>Fiche Personnel</th>
36
    </tr>
37
    </thead>
38
    <tbody>
39
   {% for object in active_list %}
40
    <tr data-pk="{{object.pk}}">
41
      <td>{{object.username}}</td>
42
      <td>{{object.email}}</td>
43
      <td>{% firstof object.userworker "-" %}</td>
44
      <td><button></button> <button>-</button> <button>Histo</button></td>
45
    </tr>
46
   {% endfor %}
47
    </tbody>
48
  </table>
49
  {% else %}
50
  <p>Il n'y a aucun compte actif</p>
51
  {% endif %}
52

    
53
  {% if inactive_list %}
54
  <h4>Comptes désactivés</h4>
55

    
56
  <table class="main">
57
    <thead>
58
    <tr>
59
      <th>Identifiant</th>
60
      <th>Courriel</th>
61
      <th>Fiche Personnel</th>
62
    </tr>
63
    </thead>
64
    <tbody>
65
   {% for object in object_list %}
66
    {% if not object.is_active %}
67
    <tr data-pk="{{object.pk}}">
68
      <td>{{object.username}}</td>
69
      <td>{{object.email}}</td>
70
      <td>{% firstof object.userworker.worker "-" %}</td>
71
      <td><button></button> <button>-</button> <button>Histo</button></td>
72
    </tr>
73
    {% endif %}
74
   {% endfor %}
75
    </tbody>
76
  </table>
77
  {% endif %}
78
</div>
79
{% endblock %}
(2-2/16)