SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 9490ba5e authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Improve reset_password templates

parent f7118b1f
No related branches found
No related tags found
No related merge requests found
...@@ -6,26 +6,16 @@ ...@@ -6,26 +6,16 @@
{% block content %} {% block content %}
{% if ack %} <div class="row">
<div class="row"> <div class="col-lg-8 offset-lg-2">
<div class="col-12"> <h1 class="highlight">Change your SciPost password</h1>
<h1>Your SciPost password has been successfully changed</h1>
</div> <form action="{% url 'scipost:change_password' %}" method="post">
</div> {% csrf_token %}
{% else %} {{form|bootstrap}}
<div class="row"> <input type="submit" class="btn btn-secondary" value="Change" />
<div class="col-lg-8 offset-lg-2"> </form>
<h1 class="highlight">Change your SciPost password</h1>
{% if errormessage %}
<p class="text-danger">{{ errormessage }}</p>
{% endif %}
<form action="{% url 'scipost:change_password' %}" method="post">
{% csrf_token %}
{{form|bootstrap}}
<input type="submit" class="btn btn-secondary" value="Change" />
</form>
</div>
</div> </div>
{% endif %} </div>
{% endblock content %} {% endblock content %}
...@@ -2,20 +2,20 @@ ...@@ -2,20 +2,20 @@
{% block pagetitle %}: Reset Password{% endblock pagetitle %} {% block pagetitle %}: Reset Password{% endblock pagetitle %}
{% block bodysup %}
{% load bootstrap %} {% load bootstrap %}
<div class="container"> {% block content %}
<div class="row">
<div class="col-md-4">
<h3>Reset password request form</h3> <div class="row">
<form method="post"> <div class="col-md-4 offset-md-4">
{% csrf_token %} <h3>Reset password request form</h3>
{{ form|bootstrap }} <form method="post">
<input class="btn btn-primary" type="submit" value="Submit" /> {% csrf_token %}
</form> {{ form|bootstrap }}
<input class="btn btn-primary" type="submit" value="Submit" />
</form>
</div> </div>
</div>
</div> </div>
{% endblock bodysup %}
{% endblock %}
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
{% block pagetitle %}: Reset password complete{% endblock pagetitle %} {% block pagetitle %}: Reset password complete{% endblock pagetitle %}
{% block bodysup %} {% block bodysup %}
<p>You have successfully reset your password.</p> <p>You have successfully reset your password.</p>
{% endblock bodysup %} {% endblock bodysup %}
...@@ -2,16 +2,22 @@ ...@@ -2,16 +2,22 @@
{% block pagetitle %}: Reset password confirm{% endblock pagetitle %} {% block pagetitle %}: Reset password confirm{% endblock pagetitle %}
{% block bodysup %} {% load bootstrap %}
<section>
{% block content %}
<div class="row">
<div class="col-md-6 offset-md-3">
{% if validlink %} {% if validlink %}
<form method="post"> <form method="post">
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {{ form|bootstrap }}
<button type="submit">Submit</button> <input class="btn btn-secondary" type="submit" value="Submit">
</form> </form>
{% else %} {% else %}
<p>This reset link is no longer valid!</p> <p>This reset link is no longer valid!</p>
{% endif %} {% endif %}
</section> </div>
{% endblock bodysup %} </div>
{% endblock content %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment