aboutsummaryrefslogtreecommitdiffstats
path: root/templates/registration/base_client.html
blob: 21f3dcfa9ac6590f92699995b956fd8e22cd0d18 (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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
{% with color="light-blue darken-4" %}
{% with hexcolor="#01579b" %}
{% with hexlightcolor="#039be5" %}
<!DOCTYPE html>
<html>
<head>
  {% load static %}
  <link rel="stylesheet" type="text/css" href="{% static 'material_icons.css' %}">
  <link rel="stylesheet" type="text/css" href="{% static 'materialize.min.css' %}">
  <style>
    input[type=text]:focus + label, .materialize-textarea:focus:not([readonly]) + label {
      color: {{hexcolor}} !important;
    }

    input[type=password]:focus + label, .materialize-textarea:focus:not([readonly]) + label {
      color: {{hexcolor}} !important;
    }

    input[type=text]:focus, .materialize-textarea:focus:not([readonly]) {
      border-bottom: 1px solid {{hexcolor}} !important;
      box-shadow: 0 1px 0 0 {{hexcolor}} !important;
    }

    input[type=password]:focus, .materialize-textarea:focus:not([readonly]) {
      border-bottom: 1px solid {{hexcolor}} !important;
      box-shadow: 0 1px 0 0 {{hexcolor}} !important;
    }

    [type="checkbox"].filled-in:checked + span:not(.lever)::after {
     border: 2px solid {{hexcolor}} !important;
     background-color: {{hexcolor}} !important;
    }

    [type="radio"]:checked + span::after, [type="radio"].with-gap:checked + span::before, [type="radio"].with-gap:checked + span::after {
      border: 2px solid {{hexcolor}};
    }

    [type="radio"]:checked + span::after, [type="radio"].with-gap:checked + span::after {
      background-color: {{hexcolor}};
    }

    .switch label input[type="checkbox"]:checked + .lever {
      background-color: {{hexlightcolor}};
    }

    .switch label input[type="checkbox"]:checked + .lever::after {
      background-color: {{hexcolor}};
    }

    .progress .indeterminate {
      background-color: {{hexcolor}};
    }

    .progress .determinate {
      background-color: {{hexcolor}};
    }

    .progress {
      background-color: {{hexlightcolor}};
    }

    .dropdown-content li > a, .dropdown-content li > span {
      color: {{hexcolor}};
    }

    .datepicker-date-display {
      background-color: {{hexcolor}};
    }

    .datepicker-table td.is-selected {
      background-color: {{hexcolor}};
    }

    .datepicker-table td.is-today {
      color: {{hexcolor}};
    }

    .datepicker-cancel, .datepicker-today, .datepicker-done {
      color: black;
    }

    blockquote {
      border-left: 5px solid {{hexcolor}};
    }

   .input-field input[type=text].valid {
     border-bottom: none;
     box-shadow: 0 1px 0 0 #9e9e9e;
   }

   .breadcrumb:last-child {
     color: {{hexcolor}}
   }
  </style>
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <meta charset="utf-8">
  <title>{% block title %}Scout Brega{% endblock %}</title>
</head>
<body>
  <nav class="nav-extended">
    <div class="nav-wrapper {{color}}">
      <ul class="left">
      <li><a id="home_btn" href="{% url 'index' %}"><i class="material-icons">home</i></a></li>
      </ul>
      {% block breadcrumb %}
      {% endblock %}
      <ul class="right">
        {% if group_view %}
          <li class="hide-on-small-only"><a class="modal-trigger" href="#modal_capi">Lista documenti</a></li>
        {% endif %}
        {% if user.is_staff or perms.client.staff %}
          <li class="hide-on-small-only"><a href="{% url 'server' %}">Pannello Admin</a></li>
        {% endif %}
        <li class="hide-on-small-only tooltipped" data-position="bottom" data-tooltip="Dati personali"><a href="{% url 'personal' %}">{{ user.username }}</a></li>
        <li class="hide-on-med-and-up tooltipped" data-position="bottom" data-tooltip="Dati personali"><a href="{% url 'personal' %}"><i class="material-icons">person</i></a></li>
        {% if user.is_staff or perms.client.staff %}
          <li class="tooltipped hide-on-med-and-up" data-position="bottom" data-tooltip="Pannello Admin" class="hide-on-med-and-up"><a href="{% url 'server' %}"><i class="material-icons">build</i></a></li>
        {% endif %}
        {% if group_view %}
          <li class="tooltipped hide-on-med-and-up" data-position="bottom" data-tooltip="Lista documenti" class="hide-on-med-and-up"><a class="modal-trigger" href="#modal_capi"><i class="material-icons">list</i></a></li>
        {% endif %}
        <li class="tooltipped" data-position="bottom" data-tooltip="Informazioni"><a href="{% url 'about' %}"><i class="material-icons">info_outline</i></a></li>
        {% if user.is_authenticated %}
          <li class="tooltipped" data-position="bottom" data-tooltip="Logout"><a href="{% url 'logout' %}"><i class="material-icons">exit_to_app</i></a></li>
        {% endif %}
      </ul>
    </div>
    {% block toolbar %}
    {% endblock %}
  </nav>

  <main id="main" style="margin-left: 10px;margin-right: 10px;margin-top: 10px;">
    {% block content %}
    {% endblock %}
  </main>
  <script type="text/javascript" src="{% static 'jquery-3.5.1.min.js' %}"></script>
  <script type="text/javascript" src="{% static 'materialize.min.js' %}"></script>
  <script type="text/javascript" src="{% static 'lazyload.js' %}"></script>
  <script>
  $(document).ready(function(){
    $('.tooltipped').tooltip();
  });
  {% block script %}
  {% endblock%}
  </script>
</body>
</html>
{% endwith %}
{% endwith %}
{% endwith %}