From 672685ebd78f1310dbe7428fd57593ac327b03bc Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 1 Mar 2019 10:44:15 +0100 Subject: UI: improve login layout --- ishtar_common/templates/blocks/bs_field_snippet.html | 2 +- ishtar_common/templates/registration/login.html | 19 ++++++------------- scss/custom.scss | 4 ++++ 3 files changed, 11 insertions(+), 14 deletions(-) diff --git a/ishtar_common/templates/blocks/bs_field_snippet.html b/ishtar_common/templates/blocks/bs_field_snippet.html index 43509eefc..b89727327 100644 --- a/ishtar_common/templates/blocks/bs_field_snippet.html +++ b/ishtar_common/templates/blocks/bs_field_snippet.html @@ -1,5 +1,5 @@ {% load i18n %} -
{% if field.label %}{{ field.label_tag }}{% endif %} {% if show_field_number or form.show_field_number %} diff --git a/ishtar_common/templates/registration/login.html b/ishtar_common/templates/registration/login.html index 3e82a882f..2be3e4a2c 100644 --- a/ishtar_common/templates/registration/login.html +++ b/ishtar_common/templates/registration/login.html @@ -3,8 +3,8 @@ {% block content %}
-
-

{%trans "Log in"%}

+
+

{%trans "Log in"%}

{% csrf_token %} {% if form.non_field_errors %} @@ -16,21 +16,14 @@ {% endfor %}
{% endif %} - + {% with force_large_col=True %} {% for field in form %} - {% if field.errors %} -
- {{field.errors}} -
- {% endif %} -
- -
{{field}}
-
+ {% include "blocks/bs_field_snippet.html" %} {% endfor %} + {% endwith %}
-
+
diff --git a/scss/custom.scss b/scss/custom.scss index 26a2cffdf..4f854650a 100644 --- a/scss/custom.scss +++ b/scss/custom.scss @@ -41,6 +41,10 @@ label { display: block; } +.form-group.full-width input{ + width: 100%; +} + .form-group.no-label{ margin-top: 1.7rem; } -- cgit v1.2.3