2
0
Эх сурвалжийг харах

Adding password required page template (#78)

Kevin Cummings 6 жил өмнө
parent
commit
52899cf231

+ 23 - 0
coderedcms/templates/wagtailcore/password_required.html

@@ -0,0 +1,23 @@
+{% extends "coderedcms/pages/web_page_notitle.html" %}
+{% load i18n bootstrap4 %}
+
+{% 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="form-group">
+                <button type="submit" class="btn btn-primary">{% trans 'Continue' %}</button>
+            </div>
+        </form>
+    </div>
+</div>
+{% endblock %}