aboutsummaryrefslogtreecommitdiffstats
path: root/server/templates/server/index.html
blob: 487ef71b55d53ba0dfa8ca8aaac5eafeee5475ab (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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{% extends 'registration/base_admin.html' %}

{% block title %}Admin{% endblock %}

{% block breadcrumb %}
    <a href="#!" class="breadcrumb hide-on-med-and-down">Admin</a>
{% endblock %}

{% block content %}
{% load app_filter %}
<div class="row">
  <div class="col l5 s12">
    <div class="card large">
      <div class="card-content" style="overflow: auto">
        <form id="form" action="{% url 'server'%}" method="post">
          {% csrf_token %}
          <div class="row">
            <div class="col s12">
              <p>
                Documenti di questo gruppo saranno visibili a persone nel gruppo capi
              </p>
            </div>
          </div>
          {% for gr in groups %}
            <div class="row">
              <div class="col s12">
                <div id="select_switch" class="switch col s12">
                  {{gr.0}}<br class="hide-on-med-and-up">
                  <label>
                    No
                    <input name={{gr.0}} type="checkbox" {{gr.1}}>
                    <span class="lever"></span>
                    Si
                  </label>
                </div>
              </div>
            </div>
          {% endfor %}
          <div class="row">
            <div class="col s12">
              <a class="waves-effect waves-light btn {{color}}" onclick="form.submit()"><i class="material-icons left">check</i> Applica</a>
            </div>
          </div>
        </form>
      </div>
      {% if user.is_staff %}
      <div class="card-action">
        <div class="hide-on-med-and-down">
          <a class="waves-effect waves-light btn {{color}}" href="{% url 'ulist' %}">Utenti</a>
          <a class="waves-effect waves-light btn {{color}}" href="{% url 'ulist-table' %}">Utenti (Tabella BETA)</a>
          <a class="waves-effect waves-light btn {{color}}" href="{% url 'uapprove' %}">Trasferta utente</a>
          <a class="waves-effect waves-light btn {{color}}" href="{% url 'request' %}">Richiedi dati</a>
        </div>

        <div class="hide-on-large-only">
          <a class="col s12 waves-effect waves-light btn {{color}}" href="{% url 'ulist' %}">Utenti</a>
          <br>
          <br>
          <a class="col s12 waves-effect waves-light btn {{color}}" href="{% url 'uapprove' %}">Trasferta utente</a>
          <br>
          <br>
          <a class="col s12 waves-effect waves-light btn {{color}}" href="{% url 'request' %}">Richiedi dati</a>
        </div>
      </div>
      {% endif %}
    </div>
  </div>
  <div class="col l7 s12">
    <div class="card large">
      <div class="card-content">
        <ul class="collection">
          {% for doctype in docs %}
            <li class="collection-item">
                {% if not doctype.enabled %}
                    <i class="material-icons left">visibility_off</i>
                {% endif %}
                {% if not doctype.group_private %}
                    <i class="material-icons left">public</i>
                {% endif %}
                {% if doctype.auto_sign %}
                  <i class="material-icons left">assignment_turned_in</i>
                {% endif %}
                {{doctype.name}}
                <span class="new badge {{color}}" data-badge-caption="">{{doctype|doc_count}}</span>
          {% endfor %}
        </ul>
      </div>
      <div class="card-action">
        <div class="hide-on-med-and-down">
          <a class="waves-effect waves-light btn {{color}}" href="{% url 'doctype' %}">Tipi</a>
          <a class="waves-effect waves-light btn {{color}}" href="{% url 'doclist' %}">Documenti</a>
          <a class="waves-effect waves-light btn {{color}}" href="{% url 'doclist-table' %}">Documenti (Tabella BETA)</a>
          <a class="waves-effect waves-light btn {{color}}" href="{% url 'docapprove' %}">Approva documento</a>
        </div>

        <div class="hide-on-large-only">
          <a class="col s12 waves-effect waves-light btn {{color}}" href="{% url 'doctype' %}">Tipi</a>
          <br>
          <br>
          <a class="col s12 waves-effect waves-light btn {{color}}" href="{% url 'doclist' %}">Documenti</a>
          <br>
          <br>
          <a class="col s12 waves-effect waves-light btn {{color}}" href="{% url 'docapprove' %}">Approva documento</a>
          <br>
          <br>
          <a class="col s12 waves-effect waves-light btn {{color}}" href="{% url 'docupload' %}">Carica firma</a>
        </div>
      </div>
    </div>
  </div>
</div>
{% endblock %}