From 0cd70fbbd9fca44dd200c04196ca9526ccd8f72a Mon Sep 17 00:00:00 2001 From: Max Yakovenko Date: Tue, 31 Jul 2018 11:29:30 +0300 Subject: [PATCH] reffactor registration form layout.remove captcha --- templates/bootstrap/forms/registration.html | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/templates/bootstrap/forms/registration.html b/templates/bootstrap/forms/registration.html index 9a5e0e0..10425f3 100644 --- a/templates/bootstrap/forms/registration.html +++ b/templates/bootstrap/forms/registration.html @@ -4,9 +4,7 @@ {% spaceless %}
- {% if "captcha" in field.id_for_label %} - {{ field.field.widget.image_and_audio|safe }} - {% elif "agreement" in field.id_for_label %} + {% if "agreement" in field.id_for_label %}
Согласен с условиями обработки персональных @@ -19,18 +17,15 @@
- {% if "captcha" in field.id_for_label %} - {{ field.field.widget.hidden_field|safe }} - {{ field.field.widget.text_field|safe }} - {% else %} - {{ field }} - {% endif %} + {{ field }} {% if field.field.help_text %} {% endif %}
- {% if field.has_errors %} -
{{ field.errors|safe }}
+ {% if field.errors %} +
+ {{ field.errors|safe }} +
{% endif %}