From 06a9a5649d34c6e6dbde6f06bbbce84979d97e5f Mon Sep 17 00:00:00 2001 From: Tom Teichler <tom.teichler@teckids.org> Date: Thu, 28 Nov 2019 16:47:16 +0100 Subject: [PATCH] Rewrite login template. --- biscuit/core/templates/two_factor/login.html | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 biscuit/core/templates/two_factor/login.html diff --git a/biscuit/core/templates/two_factor/login.html b/biscuit/core/templates/two_factor/login.html new file mode 100644 index 000000000..cc46fbc14 --- /dev/null +++ b/biscuit/core/templates/two_factor/login.html @@ -0,0 +1,24 @@ +{# -*- engine:django -*- #} +{% extends "core/base.html" %} +{% load bootstrap4 i18n %} + +{% block content %} + {% if next %} + {% if user.is_authenticated %} + <p> + Your account doesn't have access to this page. To proceed, + please login with an account that has access. + </p> + {% else %} + <p>Please login to see this page.</p> + {% endif %} + {% endif %} + + <form method="post" action="{% url 'two_factor:login' %}"> + {% csrf_token %} + {% bootstrap_form form %} + <button type="submit" class="btn btn-dark"> + {% blocktrans %}Login{% endblocktrans %} + </button> + </form> +{% endblock %} -- GitLab