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 | 3962695cafeb6903a00040f3d8587881f6c10a37 (patch) | |
tree | 53f619c22f69b288ad40e6c0ab71786e1d0d2589 /ishtar_common/templates | |
parent | 36659ab14433190d394ab4ed5e764628e2bef54e (diff) | |
download | Ishtar-3962695cafeb6903a00040f3d8587881f6c10a37.tar.bz2 Ishtar-3962695cafeb6903a00040f3d8587881f6c10a37.zip |
Login layout
Diffstat (limited to 'ishtar_common/templates')
-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"> |