blob: 4c826184ffa89abddc606c5822d0ed671c177109 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
{% extends 'registration/base.html' %}
{% block title %}Admin{% endblock %}
{% block nav %}
<a style="margin-left: 10px;" href="{% url 'index' %}" class="breadcrumb">Home</a>
<a href="#!" class="breadcrumb hide-on-med-and-down">Admin</a>
{% endblock %}
{% block content %}
<div class="row">
<div class="col l4 s12">
<div class="card large">
<div class="card-content">
<p>
<table>
<tr>
<th>Username</th>
<th>Nome</th>
<th>Cognome</th>
</tr>
{% for user in users %}
<tr>
{% for att in user %}
<td>{{att}}</td>
{% endfor %}
</tr>
{% endfor %}
</table>
</p>
</div>
<div class="card-action">
<a class="waves-effect waves-light btn red lighten-1" href="{% url 'ulist' %}">Lista utenti</a>
<a class="waves-effect waves-light btn red lighten-1" href="{% url 'uapprove' %}">Approva utente</a>
</div>
</div>
</div>
<div class="col l8 s12">
<div class="card large">
<div class="card-content">
<ul class="collection">
{% for doctype in docs %}
<li class="collection-item">
{% if not doctype.0.enabled %}
<i class="material-icons left">visibility_off</i>
{% endif %}
{% if not doctype.0.group_private %}
<i class="material-icons left">public</i>
{% endif %}
{% if doctype.0.auto_sign %}
<i class="material-icons left">assignment_turned_in</i>
{% endif %}
{{doctype.0.name}}
<span class="new badge red lighten-1" data-badge-caption="">{{doctype.1}}</span>
{% endfor %}
</ul>
</div>
<div class="card-action">
<div class="hide-on-small-only">
<a class="waves-effect waves-light btn red lighten-1" href="{% url 'doctype' %}">Lista tipo doc</a>
<a class="waves-effect waves-light btn red lighten-1" href="{% url 'doclist' %}">Lista documenti</a>
<a class="waves-effect waves-light btn red lighten-1" href="{% url 'docapprove' %}">Approva documento</a>
<a class="waves-effect waves-light btn red lighten-1" href="{% url 'docupload' %}">Carica firma</a>
</div>
<div class="hide-on-med-and-up">
<a class="col s12 waves-effect waves-light btn red lighten-1" href="{% url 'doctype' %}">Lista tipo doc</a>
<br>
<br>
<a class="col s12 waves-effect waves-light btn red lighten-1" href="{% url 'doclist' %}">Lista documenti</a>
<br>
<br>
<a class="col s12 waves-effect waves-light btn red lighten-1" href="{% url 'docapprove' %}">Approva documento</a>
<br>
<br>
<a class="col s12 waves-effect waves-light btn red lighten-1" href="{% url 'docupload' %}">Carica firma</a>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
|