Update schedule module
This commit is contained in:
@ -5,9 +5,12 @@
|
||||
{% block pagetitle %}{% trans "Login" %}{% endblock %}
|
||||
{% block content %}
|
||||
<p>
|
||||
<strong>{% trans "Login" %}</strong>
|
||||
<strong>{% trans "Login" %}</strong>
|
||||
<br />
|
||||
{% blocktrans %}
|
||||
You can login here to create your schedules. If you do not have a login, please contact: some_one@rug.nl
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
|
||||
<form method="post" action="{% url 'login' %}">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="next" value="{{ next }}">
|
||||
@ -18,7 +21,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<br />
|
||||
{# Assumes you setup the password_reset view in your URLconf #}
|
||||
<p><a href="{% url 'password_reset' %}">{% trans "Lost password?" %}</a></p>
|
||||
{% endblock %}
|
@ -4,9 +4,7 @@
|
||||
{% block title %}{% trans "Password reset complete" %}{% endblock %}
|
||||
{% block pagetitle %}{% trans "Password reset complete" %}{% endblock %}
|
||||
{% block content %}
|
||||
<p>
|
||||
<strong>{% trans "Password reset complete" %}</strong>
|
||||
<br />
|
||||
<p>Your new password has been set. You can log in now on the <a href="{% url 'login' %}">log in page</a>.</p>
|
||||
</p>
|
||||
<p><strong>{% trans "Password reset complete" %}</strong></p>
|
||||
{% url 'login' as login_url %}
|
||||
<p>{% blocktrans %}Your new password has been set. You can log in now on the <a href="{{ login_url }}">log in page</a>.{% endblocktrans %}</p>
|
||||
{% endblock %}
|
||||
|
@ -4,22 +4,23 @@
|
||||
{% block title %}{% trans "Set a new password!" %}{% endblock %}
|
||||
{% block pagetitle %}{% trans "Set a new password!" %}{% endblock %}
|
||||
{% block content %}
|
||||
<p>
|
||||
<strong>{% trans "Set a new password!" %}</strong>
|
||||
<p><strong>{% trans "Set a new password!" %}</strong><br />
|
||||
{% if validlink %}
|
||||
<form method="POST">
|
||||
<table>
|
||||
{% csrf_token %}
|
||||
{{ form.as_table }}
|
||||
<tr>
|
||||
<td>
|
||||
<input type="submit" value="Change my password">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{% blocktrans %}Here you can set a new password.{% endblocktrans %}
|
||||
</p>
|
||||
<form method="POST">
|
||||
<table>
|
||||
{% csrf_token %}
|
||||
{{ form.as_table }}
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<input type="submit" value="{% trans "Change my password" %}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{% else %}
|
||||
<p>{% trans "The password reset link was invalid, possibly because it has already been used. Please request a new password reset." %}</p>
|
||||
{% trans "The password reset link was invalid, possibly because it has already been used. Please request a new password reset." %}</p>
|
||||
{% endif %}
|
||||
</p>
|
||||
|
||||
{% endblock %}
|
||||
|
@ -8,6 +8,6 @@
|
||||
<strong>{% trans "Reset password, email sent" %}</strong>
|
||||
<br />
|
||||
<br />
|
||||
We've emailed you instructions for setting your password. You should receive the email shortly!
|
||||
{% blocktrans %}We've emailed you instructions for setting your password. You should receive the email shortly!{% endblocktrans %}
|
||||
</p>
|
||||
{% endblock %}
|
File diff suppressed because one or more lines are too long
@ -6,19 +6,16 @@
|
||||
{% block content %}
|
||||
<p>
|
||||
<strong>{% trans "Reset password" %}</strong>
|
||||
<br />
|
||||
{% blocktrans %}Here you can request a password reset. Please enter your email address that is used for registration.{% endblocktrans %}
|
||||
</p>
|
||||
|
||||
|
||||
<form method="post" action="{% url 'password_reset' %}">
|
||||
{% csrf_token %}
|
||||
<table>
|
||||
<tr>
|
||||
<td>{{ form.email.label_tag }}</td>
|
||||
<td>{{ form.email }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="submit" value="Reset my password">
|
||||
{% csrf_token %}
|
||||
<table>
|
||||
{{ form.as_table }}
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" value="{% trans "Reset my password"%} "></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user