Browse Source

Tweaking password required template. (#85)

Vince Salvino 6 years ago
parent
commit
e27350707c
1 changed files with 15 additions and 13 deletions
  1. 15 13
      coderedcms/templates/wagtailcore/password_required.html

+ 15 - 13
coderedcms/templates/wagtailcore/password_required.html

@@ -4,20 +4,22 @@
 {% block title %}Password Required{% endblock %}
 
 {% block content %}
-<div class="container">
-    <div class='text-center mt-5'>
-        <h1>{% trans "Password Required" %}</h1>
-        {% block password_required_message %}
-            <p>{% trans "You need a password to access this page." %}</p>
-        {% endblock %}
-        <form action="{{ action_url }}" method="POST">
-            {% csrf_token %}
-            {% bootstrap_form form layout='horizontal' %}
+<div class="container text-center my-5">
+    <div class="row">
+        <div class="col-lg-6 offset-lg-3">
+            <h1>{% trans "Password Required" %}</h1>
+            {% block password_required_message %}
+                <p>{% trans "You need a password to access this page." %}</p>
+            {% endblock %}
+            <form action="{{ action_url }}" method="POST">
+                {% csrf_token %}
+                {% bootstrap_form form layout='horizontal' %}
 
-            <div class="form-group">
-                <button type="submit" class="btn btn-primary">{% trans 'Continue' %}</button>
-            </div>
-        </form>
+                <div class="form-group">
+                    <button type="submit" class="btn btn-primary">{% trans 'Continue' %}</button>
+                </div>
+            </form>
+        </div>
     </div>
 </div>
 {% endblock %}