switch login form to crispy

This commit is contained in:
Ross
2023-02-13 11:04:38 +00:00
parent 1cb62c7f67
commit 8b8b21b006
+11 -1
View File
@@ -1,4 +1,5 @@
{% extends '../base.html' %}
{% load crispy_forms_tags %}
{% block title %}Login{% endblock %}
@@ -6,7 +7,7 @@
<h2>Login</h2>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
{{ form | crispy }}
<button type="submit">Login</button>
</form>
<!-- <p><a href="{% url 'password_reset' %}">Reset password</a></p> -->
@@ -16,3 +17,12 @@
<p>This page is for user account logins. If you have a CID / Passcode <a href="{% url 'cid_selector' %}">click here</a>
{% endblock %}
{% block css %}
<style>
.asteriskField {
display: none;
}
</style>
{% endblock css %}