diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-06-19 10:45:26 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-06-19 10:45:26 +0200 |
commit | ff3bff03fce212679e2aa31b5532dabb8c7b38ec (patch) | |
tree | 53f619c22f69b288ad40e6c0ab71786e1d0d2589 | |
parent | 783b3ae06a3c741607d94305ee0f39efc73e5d7c (diff) | |
download | Ishtar-ff3bff03fce212679e2aa31b5532dabb8c7b38ec.tar.bz2 Ishtar-ff3bff03fce212679e2aa31b5532dabb8c7b38ec.zip |
Login layout
-rw-r--r-- | ishtar_common/templates/registration/login.html | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/ishtar_common/templates/registration/login.html b/ishtar_common/templates/registration/login.html index 2be3e4a2c..4d8e2f37b 100644 --- a/ishtar_common/templates/registration/login.html +++ b/ishtar_common/templates/registration/login.html @@ -2,33 +2,35 @@ {% load i18n %} {% block content %} -<div class="row justify-content-center"> - <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 %} - <div class="form-group row"> - {% for error in form.non_field_errors %} - <div class="form-group has-errors text-danger small"> - {{error}} +<div class="container"> + <div class="row justify-content-center"> + <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 %} + <div class="form-group row"> + {% for error in form.non_field_errors %} + <div class="form-group has-errors text-danger small"> + {{error}} + </div> + {% endfor %} </div> + {% endif %} + {% with force_large_col=True %} + {% for field in form %} + {% include "blocks/bs_field_snippet.html" %} {% endfor %} - </div> - {% endif %} - {% with force_large_col=True %} - {% for field in form %} - {% include "blocks/bs_field_snippet.html" %} - {% endfor %} - {% endwith %} + {% endwith %} - <div class="row justify-content-center"> - <div class="col-md-4"> - <button type="submit" class="btn btn-primary">{% trans 'Log in' %}</button> - </div> + <div class="row justify-content-center"> + <div class="col-md-4"> + <button type="submit" class="btn btn-primary">{% trans 'Log in' %}</button> + </div> + </div> + </form> </div> - </form> - </div> + </div> </div> <hr/> <div class="row justify-content-center"> |