Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Improve password reset template

Artur Smęt2c32712f03e5
diff --git a/templates/account/password_reset_from_key.html b/templates/account/password_reset_from_key.html
index e6e7c31106..10ab7154bf 100644
--- a/templates/account/password_reset_from_key.html
+++ b/templates/account/password_reset_from_key.html
@@ -6,31 +6,31 @@
{% block content %}
<div class="row">
- <div class="col-sm-12">
- <h1>{% trans "Bad Token" %}</h1>
- {% if token_fail %}
+ {% if token_fail %}
+ <div class="col-sm-12">
+ <h1>{% trans "Bad Token" %}</h1>
{% url 'account_reset_password' as passwd_reset_url %}
<p>{% blocktrans %}The password reset link was invalid, possibly because it has already been used. Please request a <a href="{{ passwd_reset_url }}">new password reset</a>.{% endblocktrans %}</p>
+ </div>
{% else %}
- <div class="col-sm-6">
- <div class="panel panel-default">
- <div class="panel-body">
- <form method="post" novalidate>
- {% csrf_token %}
- <fieldset>
- <legend>{% trans 'Change Password' %}</legend>
- {% bootstrap_form form %}
-{# <input type="hidden" name="next" value="{{ next }}" />#}
- </fieldset>
- <div class="form-group text-right">
- <button class="btn btn-primary">
- {% trans "Continue" %}
- </button>
- </div>
- </form>
+ <div class="col-sm-6">
+ <div class="panel panel-default">
+ <div class="panel-body">
+ <form method="post" novalidate>
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans 'Change Password' %}</legend>
+ {% bootstrap_form form %}
+ </fieldset>
+ <div class="form-group text-right">
+ <button class="btn btn-primary">
+ {% trans "Continue" %}
+ </button>
+ </div>
+ </form>
+ </div>
</div>
</div>
{% endif %}
- </div>
</div>
{% endblock %}