aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-08-31 15:52:14 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2020-08-31 15:52:14 +0200
commit0ba22318c4ac4b03d50030c5ada27b639d033a40 (patch)
tree3ca567148611c66cea1e2ee0ad4ced5b67f1ab80 /server
parentgraghics improvement for mobile, and more modular (diff)
downloadscout-subs-0ba22318c4ac4b03d50030c5ada27b639d033a40.tar.gz
scout-subs-0ba22318c4ac4b03d50030c5ada27b639d033a40.zip
variables for accent color
Diffstat (limited to '')
-rw-r--r--server/templates/server/approve_doc.html2
-rw-r--r--server/templates/server/approve_user.html2
-rw-r--r--server/templates/server/data_request.html4
-rw-r--r--server/templates/server/doc_create.html2
-rw-r--r--server/templates/server/doc_list.html4
-rw-r--r--server/templates/server/doc_type.html6
-rw-r--r--server/templates/server/index.html30
-rw-r--r--server/templates/server/upload_doc.html6
-rw-r--r--server/templates/server/user_list.html10
9 files changed, 33 insertions, 33 deletions
diff --git a/server/templates/server/approve_doc.html b/server/templates/server/approve_doc.html
index 42f4436..23eef4f 100644
--- a/server/templates/server/approve_doc.html
+++ b/server/templates/server/approve_doc.html
@@ -33,7 +33,7 @@
<textarea name="codes" class="materialize-textarea"></textarea>
</div>
<div class="card-action">
- <a class="waves-effect waves-light btn red lighten-1" href="#" onclick="document.getElementById('form').submit()">Invia</a>
+ <a class="waves-effect waves-light btn {{color}}" href="#" onclick="document.getElementById('form').submit()">Invia</a>
</div>
</form>
</div>
diff --git a/server/templates/server/approve_user.html b/server/templates/server/approve_user.html
index 288b4f9..3b7da2f 100644
--- a/server/templates/server/approve_user.html
+++ b/server/templates/server/approve_user.html
@@ -33,7 +33,7 @@
<textarea name="codes" class="materialize-textarea"></textarea>
</div>
<div class="card-action">
- <a class="waves-effect waves-light btn red lighten-1" href="#" onclick="document.getElementById('form').submit()">Invia</a>
+ <a class="waves-effect waves-light btn {{color}}" href="#" onclick="document.getElementById('form').submit()">Invia</a>
</div>
</form>
</div>
diff --git a/server/templates/server/data_request.html b/server/templates/server/data_request.html
index 1f65ff1..1db580c 100644
--- a/server/templates/server/data_request.html
+++ b/server/templates/server/data_request.html
@@ -26,8 +26,8 @@
<textarea id="data" class="materialize-textarea">{{data}}</textarea>
</div>
<div class="card-action">
- <a class="waves-effect waves-light btn red lighten-1" href="#" onclick="document.getElementById('form').submit()">Invia</a>
- <a class="waves-effect waves-light btn red lighten-1" onclick="copy()">Copia risultato</a>
+ <a class="waves-effect waves-light btn {{color}}" href="#" onclick="document.getElementById('form').submit()">Invia</a>
+ <a class="waves-effect waves-light btn {{color}}" onclick="copy()">Copia risultato</a>
</div>
</form>
</div>
diff --git a/server/templates/server/doc_create.html b/server/templates/server/doc_create.html
index a9877a3..9549a9d 100644
--- a/server/templates/server/doc_create.html
+++ b/server/templates/server/doc_create.html
@@ -96,7 +96,7 @@
</div>
</div>
<div class="fixed-action-btn">
- <a class="btn-floating btn-large red lighten-1" onclick="document.getElementById('form').submit()">
+ <a class="btn-floating btn-large {{color}}" onclick="document.getElementById('form').submit()">
<i class="large material-icons">save</i>
</a>
</div>
diff --git a/server/templates/server/doc_list.html b/server/templates/server/doc_list.html
index b9f1b1b..2499245 100644
--- a/server/templates/server/doc_list.html
+++ b/server/templates/server/doc_list.html
@@ -7,7 +7,7 @@
<a class="breadcrumb hide-on-med-and-down">Documenti</a>
{% endblock %}
{% block toolbar %}
- <div class="nav-wrapper red lighten-1">
+ <div class="nav-wrapper {{color}}">
<ul>
<li>
<input id="select-all" type="checkbox" class="filled-in"/>
@@ -165,7 +165,7 @@
</div>
<div class="collapsible-body"><span>
{% if doc.0.status == "ok" or doc.0.status == 'archive' %}
- <a class="waves-effect waves-light btn red lighten-1" onclick="send('k{{doc.0.id}}')"><i class="material-icons left">file_download</i> Scarica documento</a>
+ <a class="waves-effect waves-light btn {{color}}" onclick="send('k{{doc.0.id}}')"><i class="material-icons left">file_download</i> Scarica documento</a>
<br>
<br>
{% endif %}
diff --git a/server/templates/server/doc_type.html b/server/templates/server/doc_type.html
index f621e07..8c3093d 100644
--- a/server/templates/server/doc_type.html
+++ b/server/templates/server/doc_type.html
@@ -7,7 +7,7 @@
<a class="breadcrumb hide-on-med-and-down">Tipo Doc</a>
{% endblock %}
{% block toolbar %}
- <div class="nav-wrapper red lighten-1">
+ <div class="nav-wrapper {{color}}">
<ul>
<li>
<input id="select-all" type="checkbox" class="filled-in"/>
@@ -138,7 +138,7 @@
<i class="material-icons">assignment_turned_in</i>
{% endif %}
{{doctype.0.name}}
- <span class="new badge red lighten-1" data-badge-caption="">{{doctype.2}}</span>
+ <span class="new badge {{color}}" data-badge-caption="">{{doctype.2}}</span>
</div>
<div class="collapsible-body"><span>
<ul class="collection">
@@ -196,7 +196,7 @@
</ul>
</form>
<div class="fixed-action-btn">
- <a class="btn-floating btn-large red lighten-1" href="{% url 'doccreate'%}">
+ <a class="btn-floating btn-large {{color}}" href="{% url 'doccreate'%}">
<i class="large material-icons">add</i>
</a>
</div>
diff --git a/server/templates/server/index.html b/server/templates/server/index.html
index f2a2242..aa4681e 100644
--- a/server/templates/server/index.html
+++ b/server/templates/server/index.html
@@ -31,19 +31,19 @@
</div>
<div class="card-action">
<div class="hide-on-med-and-down">
- <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>
- <a class="waves-effect waves-light btn red lighten-1" href="{% url 'request' %}">Richiedi dati</a>
+ <a class="waves-effect waves-light btn {{color}}" href="{% url 'ulist' %}">Lista utenti</a>
+ <a class="waves-effect waves-light btn {{color}}" href="{% url 'uapprove' %}">Approva 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 red lighten-1" href="{% url 'ulist' %}">Lista utenti</a>
+ <a class="col s12 waves-effect waves-light btn {{color}}" href="{% url 'ulist' %}">Lista utenti</a>
<br>
<br>
- <a class="col s12 waves-effect waves-light btn red lighten-1" href="{% url 'uapprove' %}">Approva utente</a>
+ <a class="col s12 waves-effect waves-light btn {{color}}" href="{% url 'uapprove' %}">Approva utente</a>
<br>
<br>
- <a class="col s12 waves-effect waves-light btn red lighten-1" href="{% url 'request' %}">Richiedi dati</a>
+ <a class="col s12 waves-effect waves-light btn {{color}}" href="{% url 'request' %}">Richiedi dati</a>
</div>
</div>
</div>
@@ -69,29 +69,29 @@
<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>
+ <span class="new badge {{color}}" data-badge-caption="">{{doctype.1}}</span>
{% endfor %}
</ul>
</div>
<div class="card-action">
<div class="hide-on-med-and-down">
- <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>
+ <a class="waves-effect waves-light btn {{color}}" href="{% url 'doctype' %}">Lista tipo doc</a>
+ <a class="waves-effect waves-light btn {{color}}" href="{% url 'doclist' %}">Lista documenti</a>
+ <a class="waves-effect waves-light btn {{color}}" href="{% url 'docapprove' %}">Approva documento</a>
+ <a class="waves-effect waves-light btn {{color}}" href="{% url 'docupload' %}">Carica firma</a>
</div>
<div class="hide-on-large-only">
- <a class="col s12 waves-effect waves-light btn red lighten-1" href="{% url 'doctype' %}">Lista tipo doc</a>
+ <a class="col s12 waves-effect waves-light btn {{color}}" 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>
+ <a class="col s12 waves-effect waves-light btn {{color}}" 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>
+ <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 red lighten-1" href="{% url 'docupload' %}">Carica firma</a>
+ <a class="col s12 waves-effect waves-light btn {{color}}" href="{% url 'docupload' %}">Carica firma</a>
</div>
</div>
</div>
diff --git a/server/templates/server/upload_doc.html b/server/templates/server/upload_doc.html
index b29e2ae..78f3e81 100644
--- a/server/templates/server/upload_doc.html
+++ b/server/templates/server/upload_doc.html
@@ -27,7 +27,7 @@
</div>
<div class="row">
<div class="file-field input-field col s12">
- <div class="btn red lighten-1">
+ <div class="btn {{color}}">
<span><i class="material-icons left">file_upload</i>File</span>
<input type="file" name="doc_sign" id="doc_sign" onchange="loadFile(event)">
</div>
@@ -38,8 +38,8 @@
</div>
</div>
<div class="card-action">
- <a id="send_button" class="waves-effect waves-light btn red lighten-1" href="#" onclick="confirm()">Approva</a>
- <a class="right waves-effect waves-light btn red lighten-1" onclick="send()">Anteprima documento</a>
+ <a id="send_button" class="waves-effect waves-light btn {{color}}" href="#" onclick="confirm()">Approva</a>
+ <a class="right waves-effect waves-light btn {{color}}" onclick="send()">Anteprima documento</a>
</div>
</form>
</div>
diff --git a/server/templates/server/user_list.html b/server/templates/server/user_list.html
index 0537ab0..afd4163 100644
--- a/server/templates/server/user_list.html
+++ b/server/templates/server/user_list.html
@@ -7,7 +7,7 @@
<a class="breadcrumb hide-on-med-and-down">Lista Utenti</a>
{% endblock %}
{% block toolbar %}
- <div class="nav-wrapper red lighten-1">
+ <div class="nav-wrapper {{color}}">
<form>
<div class="input-field">
<input autocomplete="off" id="search" type="search" onkeyup="filterResults()" required>
@@ -48,14 +48,14 @@
</div>
</div>
<div class="hide-on-med-and-down">
- <a class="waves-effect waves-light btn red lighten-1 modal-trigger" href="#modal{{user.0.id}}"><i class="material-icons left">remove_circle_outline</i>Deapprova utente</a>
- <a class="waves-effect waves-light btn red lighten-1" onclick="send('c{{user.0.id}}')"><i class="material-icons left">star_border</i>Capo/non</a>
+ <a class="waves-effect waves-light btn {{color}} modal-trigger" href="#modal{{user.0.id}}"><i class="material-icons left">remove_circle_outline</i>Deapprova utente</a>
+ <a class="waves-effect waves-light btn {{color}}" onclick="send('c{{user.0.id}}')"><i class="material-icons left">star_border</i>Capo/non</a>
</div>
<div style="margin-bottom: 0px;" class="hide-on-large-only row">
- <a class="col s12 waves-effect waves-light btn red lighten-1 modal-trigger" href="#modal{{user.0.id}}"><i class="material-icons left">remove_circle_outline</i>Deapprova utente</a>
+ <a class="col s12 waves-effect waves-light btn {{color}} modal-trigger" href="#modal{{user.0.id}}"><i class="material-icons left">remove_circle_outline</i>Deapprova utente</a>
<br>
<br>
- <a class="col s12 waves-effect waves-light btn red lighten-1" onclick="send('c{{user.0.id}}')"><i class="material-icons left">star_border</i>Capo/non</a>
+ <a class="col s12 waves-effect waves-light btn {{color}}" onclick="send('c{{user.0.id}}')"><i class="material-icons left">star_border</i>Capo/non</a>
</div>
<br><br>
{% endif %}