Verified Commit 32b7b371 authored by Marco Marinello's avatar Marco Marinello
Browse files

Minor UI fixes


Signed-off-by: Marco Marinello's avatarMarco Marinello <me@marcomarinello.it>
parent 73028f2e
......@@ -4,4 +4,5 @@
{% block content %}
<p>{% trans "Your password has successfully been reset. You can use it right now on the login page." %}</p>
<a href="{% url 'index' %}" class="btn btn-lg btn-dark btn-block">{% trans "Login" %}</a>
{% endblock %}
......@@ -4,9 +4,25 @@
{% block title %}{% trans "Password recovery" %}{% endblock %}
{% block content %}
<br><br>
<h2>{% trans "Password recovery" %}</h2>
<br>
<form method="post" action="{{ url }}">
{% csrf_token %}
{{ form.as_p }}
<p><input type="submit" value="{% trans "Recover my password" %}"></p>
<button type="submit" class="btn btn-lg btn-dark btn-block">{% trans "Recover my password" %}</button>
</form>
<script type="text/javascript">
$(".form-signin > form > p > input").each(function() {
$(this).attr("class", "form-control");
});
$(".form-signin > form > p > label").each(function() {
$(this).attr("class", "sr-only");
$("#"+$(this).attr("for")).attr("placeholder", $(this).text().replace(":", ""));
});
</script>
{% endblock %}
{% extends "password_reset/base.html" %}{% load i18n %}
{% block title %}{% trans "Set new password" %}{% endblock %}
{% block content %}
{% if invalid %}{% url "password_reset_recover" as recovery_url %}
<p>{% blocktrans %}Sorry, this password reset link is invalid. You can still <a href="{{ recovery_url }}">request a new one</a>.{% endblocktrans %}</p>
{% else %}
<p>{% blocktrans %}Hi, <strong>{{ username }}</strong>. Please choose your new password.{% endblocktrans %}</p>
<form method="post" action="{% url "password_reset_reset" token %}">
<form method="post" action="{% url "password_reset:password_reset_reset" token %}">
{% csrf_token %}
{{ form.as_p }}
<p><input type="submit" value="{% trans "Set new password" %}"></p>
<button type="submit" class="btn btn-lg btn-dark btn-block">{% trans "Change password" %}</button>
</form>
{% endif %}
<script type="text/javascript">
$(".form-signin > form > p > input").each(function() {
$(this).attr("class", "form-control");
});
$(".form-signin > form > p > label").each(function() {
$(this).attr("class", "sr-only");
$("#"+$(this).attr("for")).attr("placeholder", $(this).text().replace(":", ""));
});
</script>
{% endblock %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment