diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-03-01 10:44:15 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-04-24 19:38:57 +0200 |
| commit | 672685ebd78f1310dbe7428fd57593ac327b03bc (patch) | |
| tree | b32de43705cae8ac5e19181394244af95f1c67ca /ishtar_common/templates/registration | |
| parent | ce46ae2b1ce6b4c2217b0f5508ff5914acd9bd6e (diff) | |
| download | Ishtar-672685ebd78f1310dbe7428fd57593ac327b03bc.tar.bz2 Ishtar-672685ebd78f1310dbe7428fd57593ac327b03bc.zip | |
UI: improve login layout
Diffstat (limited to 'ishtar_common/templates/registration')
| -rw-r--r-- | ishtar_common/templates/registration/login.html | 19 |
1 files changed, 6 insertions, 13 deletions
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 %} <div class="row justify-content-center"> - <div class="col-md-6"> - <h4>{%trans "Log in"%}</h4> + <div class="col-md-3"> + <h3 class="text-center">{%trans "Log in"%}</h3> <form method="post" action=".">{% csrf_token %} <input type="hidden" name="next" value="{{ next }}" /> {% if form.non_field_errors %} @@ -16,21 +16,14 @@ {% endfor %} </div> {% endif %} - + {% with force_large_col=True %} {% for field in form %} - {% if field.errors %} - <div class="form-group row has-errors text-danger small"> - {{field.errors}} - </div> - {% endif %} - <div class="form-group row"> - <label for="{{field.id}}" class="col-6 col-form-label">{{field.label}}</label> - <div class="col-6">{{field}}</div> - </div> + {% include "blocks/bs_field_snippet.html" %} {% endfor %} + {% endwith %} <div class="row justify-content-center"> - <div class="col-12"> + <div class="col-md-4"> <button type="submit" class="btn btn-primary">{% trans 'Log in' %}</button> </div> </div> |
