From 365c97d0efe30943fcb50b5eb74c529cb8a4129a Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Tue, 15 Dec 2020 14:16:10 -0500 Subject: [PATCH] Add bootstrap styling to login page --- templates/auth/login.djhtml | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/templates/auth/login.djhtml b/templates/auth/login.djhtml index cf56fe6..e24d5e6 100644 --- a/templates/auth/login.djhtml +++ b/templates/auth/login.djhtml @@ -1,34 +1,36 @@ {% extends "base.djhtml" %} +{% load widget_tweaks %} + {% block title %} Login {% endblock %} {% block content %} {% if form.errors %} -

Your username and password didn't match. Please try again.

+

Your username and password didn't match. Please try again.

{% endif %} {% if next %} {% if user.is_authenticated %} -

Your account doesn't have access to this page. To proceed, - please login with an account that has access.

+

+ Your account doesn't have access to this page. To proceed, + please login with an account that has access. +

{% else %} -

Please login to see this page.

+

Please login to see this page.

{% endif %} {% endif %} -
+ {% csrf_token %} - - - - - - - - - -
{{ form.username.label_tag }}{{ form.username }}
{{ form.password.label_tag }}{{ form.password }}
- + {% for field in form %} +
+ +
+ {% render_field field class="form-control" %} +
+
+ {% endfor %} +