switch login form to crispy
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
{% extends '../base.html' %}
|
{% extends '../base.html' %}
|
||||||
|
{% load crispy_forms_tags %}
|
||||||
|
|
||||||
{% block title %}Login{% endblock %}
|
{% block title %}Login{% endblock %}
|
||||||
|
|
||||||
@@ -6,7 +7,7 @@
|
|||||||
<h2>Login</h2>
|
<h2>Login</h2>
|
||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ form.as_p }}
|
{{ form | crispy }}
|
||||||
<button type="submit">Login</button>
|
<button type="submit">Login</button>
|
||||||
</form>
|
</form>
|
||||||
<!-- <p><a href="{% url 'password_reset' %}">Reset password</a></p> -->
|
<!-- <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>
|
<p>This page is for user account logins. If you have a CID / Passcode <a href="{% url 'cid_selector' %}">click here</a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
|
{% block css %}
|
||||||
|
<style>
|
||||||
|
.asteriskField {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
{% endblock css %}
|
||||||
|
|||||||
Reference in New Issue
Block a user