Revision 0a4f779f
Added by Mikaël Ates over 10 years ago
calebasse/personnes/templates/personnes/acces.html | ||
---|---|---|
6 | 6 |
<script type="text/javascript"> |
7 | 7 |
$(function() { |
8 | 8 |
$('.icon-minus').click(function() { |
9 |
generic_ajaxform_dialog($(this).data('id') + '/delete/', "Supprimer un utilisateur", |
|
9 |
generic_ajaxform_dialog($(this).data('id') + '/delete/', "Désactiver un utilisateur", |
|
10 |
'#ajax-dlg', '500px', 'Oui'); |
|
11 |
}); |
|
12 |
$('.icon-plus').click(function() { |
|
13 |
generic_ajaxform_dialog($(this).data('id') + '/activate/', "Activer un utilisateur", |
|
10 | 14 |
'#ajax-dlg', '500px', 'Oui'); |
11 | 15 |
}); |
12 | 16 |
}); |
... | ... | |
44 | 48 |
{% block content %} |
45 | 49 |
<div class="content"> |
46 | 50 |
{% if active_list %} |
51 |
<h2>Accès actifs</h2> |
|
47 | 52 |
<table class="main" id="timetable-table"> |
48 | 53 |
<thead> |
49 | 54 |
<tr> |
... | ... | |
51 | 56 |
<th>Courriel</th> |
52 | 57 |
<th>Fiche Personnel</th> |
53 | 58 |
<th>Roles</th> |
54 |
<th>Supprimer</th>
|
|
59 |
<th>Désactiver</th>
|
|
55 | 60 |
</tr> |
56 | 61 |
</thead> |
57 | 62 |
<tbody> |
... | ... | |
69 | 74 |
</tbody> |
70 | 75 |
</table> |
71 | 76 |
{% else %} |
72 |
<p>Il n'y a aucun compte actif</p> |
|
77 |
<p>Il n'y a aucun compte actif.</p> |
|
78 |
{% endif %} |
|
79 |
<br/> |
|
80 |
{% if inactive_list %} |
|
81 |
<h2>Accès inactifs</h2> |
|
82 |
<table class="main" id="timetable-table"> |
|
83 |
<thead> |
|
84 |
<tr> |
|
85 |
<th>Identifiant</th> |
|
86 |
<th>Courriel</th> |
|
87 |
<th>Fiche Personnel</th> |
|
88 |
<th>Activer</th> |
|
89 |
</tr> |
|
90 |
</thead> |
|
91 |
<tbody> |
|
92 |
{% for object in inactive_list %} |
|
93 |
<tr data-pk="{{object.pk}}" id="object-{{ object.pk}}"> |
|
94 |
<td>{{object.username}}</td> |
|
95 |
<td>{{object.email}}</td> |
|
96 |
{% with worker=object.userworker.worker %} |
|
97 |
<td>{% if worker %}<a href="{{ worker.get_absolute_url }}">{{ worker }}</a>{% else %}-{% endif %}</td> |
|
98 |
{% endwith %} |
|
99 |
<td><button class="icon-plus" data-id="{{ object.id }}"/></a></td> |
|
100 |
</tr> |
|
101 |
{% endfor %} |
|
102 |
</tbody> |
|
103 |
</table> |
|
104 |
{% else %} |
|
105 |
<p>Il n'y a aucun compte inactif.</p> |
|
73 | 106 |
{% endif %} |
74 |
|
|
75 | 107 |
</div> |
76 | 108 |
{% endblock %} |
77 | 109 |
|
Also available in: Unified diff
personnes: show inactive accesses and allow to re-active an access.