aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/templates
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2022-01-31 17:10:39 +0100
committerAndrea Lepori <alepori@student.ethz.ch>2022-01-31 17:11:17 +0100
commit7b3ff4bacab76138a45f018fcfee055c8fd1f186 (patch)
treec841299beeb9516ed4cb8f67072fca86d661dc02 /accounts/templates
parentfix chrome showing white page on production (diff)
downloadscout-subs-7b3ff4bacab76138a45f018fcfee055c8fd1f186.tar.gz
scout-subs-7b3ff4bacab76138a45f018fcfee055c8fd1f186.zip
add go home message after saving data and other warning
Diffstat (limited to '')
-rw-r--r--accounts/templates/accounts/index.html13
1 files changed, 12 insertions, 1 deletions
diff --git a/accounts/templates/accounts/index.html b/accounts/templates/accounts/index.html
index 670c490..563de89 100644
--- a/accounts/templates/accounts/index.html
+++ b/accounts/templates/accounts/index.html
@@ -17,7 +17,14 @@
{% endblock%}
{% block content %}
-<form action="{% url 'personal'%}" method="post" id="form1" enctype="multipart/form-data">
+<div class="tap-target {{color}}" data-target="home_btn">
+ <div class="tap-target-content">
+ <h5 style="color:white">Continua l'attivazione</h5>
+ <p style="color:white">Usa questo pulsante per tornare alla home e continuare il processo d'attivazione</p>
+ </div>
+</div>
+
+<form action="{% url 'personal'%}?saved=true" method="post" id="form1" enctype="multipart/form-data">
<div id="personal" class="row">
<div class="col l8 offset-l2 s12">
<div class="card-panel">
@@ -456,12 +463,16 @@ $(document).ready(function() {
$('.datepicker').datepicker(options);
$('.tabs').tabs();
$('select').formSelect();
+ $('.tap-target').tapTarget();
{% for error in errors %}
M.toast({html: '{{ error }}', classes: 'orange'})
{% endfor %}
{% if ok_message %}
M.toast({html: '{{ ok_message }}', classes: 'green'})
{% endif %}
+ {% if home_tooltip %}
+ $('.tap-target').tapTarget('open');
+ {% endif %}
document.getElementById("vac_certificate").onchange = function() {
for (i=0; i < this.files.length; i++) {
if(this.files[i].size > 1048576*10) {