aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/templates
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-07-28 21:17:18 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2020-07-28 21:17:18 +0200
commit68cc1657fbe11b8ffbcd4d3d517f71c4404497c3 (patch)
tree37fd17cb370bca5bb0a5779295256b141cf0295b /accounts/templates
parentlocal font feching, list for non interactive items (diff)
downloadscout-subs-68cc1657fbe11b8ffbcd4d3d517f71c4404497c3.tar.gz
scout-subs-68cc1657fbe11b8ffbcd4d3d517f71c4404497c3.zip
accept terms on account creation
Diffstat (limited to 'accounts/templates')
-rw-r--r--accounts/templates/accounts/signup.html14
-rw-r--r--accounts/templates/accounts/terms.html27
2 files changed, 41 insertions, 0 deletions
diff --git a/accounts/templates/accounts/signup.html b/accounts/templates/accounts/signup.html
index a8a517c..56b5a4c 100644
--- a/accounts/templates/accounts/signup.html
+++ b/accounts/templates/accounts/signup.html
@@ -12,10 +12,24 @@
{% csrf_token %}
{{ form.as_p }}
<br>
+ <label>
+ <input name="terms_accept" type="checkbox" class="filled-in"/>
+ <span style="color:black">Accetto i <a href="{% url 'terms' %}">Termini e condizioni generali</a></span>
+ </label>
+ <br>
+ <br>
<button class="btn waves-effect waves-light" type="submit">Invia</button>
</form>
</div>
</div>
</div>
</div>
+{% endblock %}
+
+{% block script %}
+{% if error %}
+document.addEventListener('DOMContentLoaded', function() {
+ M.toast({html: '{{ error_text }}', classes: 'orange'})
+});
+{% endif %}
{% endblock %} \ No newline at end of file
diff --git a/accounts/templates/accounts/terms.html b/accounts/templates/accounts/terms.html
new file mode 100644
index 0000000..c72e006
--- /dev/null
+++ b/accounts/templates/accounts/terms.html
@@ -0,0 +1,27 @@
+{% extends 'registration/base_client.html' %}
+
+{% block title %}About{% endblock %}
+
+{%block nav%}
+ <a style="margin-left: 10px;" href="{% url 'index' %}" class="breadcrumb">Home</a>
+ <a href="!#" class="breadcrumb hide-on-med-and-down">Termini e condizioni</a>
+{% endblock%}
+
+{% block content %}
+ <div class="row">
+ <div class="col l4 offset-l4 m8 offset-m2 s12">
+ <div class="card">
+ <div class="card-content">
+ <h5>Termini e condizioni</h5>
+ <blockquote>
+ Termine 1 ecc......
+ Cose
+ </blockquote>
+ </div>
+ </div>
+ </div>
+ </div>
+{% endblock %}
+
+{% block script %}
+{% endblock %} \ No newline at end of file