aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/templates
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-09-05 16:57:46 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2020-09-05 16:57:46 +0200
commit0e16e938af1b7c76fad0774fe70f5df16310296c (patch)
tree340efab7a1fef4e41b267cf9448357aebd656d65 /accounts/templates
parentupdate creation date of doc on edit (diff)
downloadscout-subs-0e16e938af1b7c76fad0774fe70f5df16310296c.tar.gz
scout-subs-0e16e938af1b7c76fad0774fe70f5df16310296c.zip
better signup form errors
Diffstat (limited to 'accounts/templates')
-rw-r--r--accounts/templates/accounts/signup.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/accounts/templates/accounts/signup.html b/accounts/templates/accounts/signup.html
index 0decf9e..36ea568 100644
--- a/accounts/templates/accounts/signup.html
+++ b/accounts/templates/accounts/signup.html
@@ -11,6 +11,7 @@
<form method="post">
{% csrf_token %}
{{ form.as_p }}
+ <p>La password deve essere di almeno 8 caretteri e contenere lettere</p>
<br>
<label>
<input name="terms_accept" type="checkbox" class="filled-in"/>
@@ -27,9 +28,9 @@
{% endblock %}
{% block script %}
-{% if error %}
document.addEventListener('DOMContentLoaded', function() {
- M.toast({html: '{{ error_text }}', classes: 'orange'})
+{% for error in errors %}
+ M.toast({html: '{{ error }}', classes: 'orange'})
+{% endfor %}
});
-{% endif %}
{% endblock %} \ No newline at end of file