From 04fa86898892314fec4ca566c59855391ced8466 Mon Sep 17 00:00:00 2001 From: Ivlev Denis Date: Thu, 26 Apr 2018 10:59:24 +0300 Subject: [PATCH] LIL-424, 429. Fix None in become author template --- apps/user/templates/user/become-author.html | 47 +++++++++------------ 1 file changed, 20 insertions(+), 27 deletions(-) diff --git a/apps/user/templates/user/become-author.html b/apps/user/templates/user/become-author.html index 383b81ab..92e7c054 100644 --- a/apps/user/templates/user/become-author.html +++ b/apps/user/templates/user/become-author.html @@ -1,12 +1,5 @@ -{% extends "templates/lilcity/index.html" %} {% load static %} {% block content %} {% if messages %} -
-
- {% for message in messages %} -
{{ message }}
- {% endfor %} -
-
-{% endif %} +{% extends "templates/lilcity/index.html" %} {% load static %} {% block content %} +{% include 'templates/blocks/messages.html' %}
{% csrf_token %} @@ -16,48 +9,48 @@
ИМЯ
- +
- {% if form.first_name.errors %} -
Укажите корректно свои данные
- {% endif %} + {% for error in form.first_name.errors %} +
{{ error }}
+ {% endfor %}
ФАМИЛИЯ
- +
- {% if form.last_name.errors %} -
Укажите корректно свои данные
- {% endif %} + {% for error in form.last_name.errors %} +
{{ error }}
+ {% endfor %}
Почта
- +
- {% if form.email.errors %} -
Укажите корректно свои данные
- {% endif %} + {% for error in form.email.errors %} +
{{ error }}
+ {% endfor %}
О себе
- {% if form.about.errors %} -
Укажите корректно свои данные
- {% endif %} + {% for error in form.about.errors %} +
{{ error }}
+ {% endfor %}
FACEBOOK
- {% if form.facebook.errors %} -
Укажите корректно свои данные
- {% endif %} + {% for error in form.facebook.errors %} +
{{ error }}
+ {% endfor %}