| author | Yves-Marie Haussonne <ymh.work+github@gmail.com> |
| Fri, 09 May 2014 18:35:26 +0200 | |
| changeset 656 | a84519031134 |
| parent 551 | 723261fb23fb |
| permissions | -rw-r--r-- |
| 220 | 1 |
{% extends "site/layout/base_workspace.html" %} |
2 |
{% load com %} |
|
3 |
{% load i18n %} |
|
4 |
||
5 |
{% block title %} |
|
6 |
{% blocktrans %}Reset your password{% endblocktrans %} |
|
7 |
{% endblock %} |
|
8 |
||
9 |
{% block head %} |
|
10 |
{% endblock %} |
|
11 |
||
12 |
{% block content %} |
|
13 |
||
| 550 | 14 |
<h1 class="main_title"> |
15 |
{% if CONF.f_get_logo_url %} |
|
16 |
<div><a title="{% blocktrans %}back to workspace{% endblocktrans %}" alt="logo" class="title" href="{% url index %}"><img src="{{ CONF.f_get_logo_url }}" /></a></div> |
|
| 551 | 17 |
{% endif %} |
| 550 | 18 |
|
19 |
{% if CONF.workspace_name %} |
|
20 |
<a title="{% blocktrans %}back to workspace{% endblocktrans %}" class="title" href="{% url index %}">{{ CONF.workspace_name }}</a> |
|
21 |
{% endif %} |
|
22 |
</h1> |
|
| 220 | 23 |
<h1>{% blocktrans %}Reset your password{% endblocktrans %}</h1> |
|
439
8994d24e4b2f
Reverts to changeset 435, and just add {% csrf_token %} to template forgot_pw.html, since CSRF protection seems to be only here (surely because of django.contrib.auth.views).
gibus
parents:
438
diff
changeset
|
24 |
<form id="profile" enctype="multipart/form-data" class="wizard-form" action="." method="post"> |
| 220 | 25 |
<table class="wide_form"> |
26 |
<tbody> |
|
27 |
{% include "site/macros/form_fields.html" %} |
|
28 |
<tr> |
|
29 |
<td style="vertical-align: top; width: 20%; text-align:right;"> |
|
30 |
</td> |
|
31 |
<td> |
|
32 |
<label></label> |
|
33 |
<input name="reset" type="submit" value="{% blocktrans %}Reset your password{% endblocktrans %}"/> |
|
34 |
</td> |
|
35 |
</tr> |
|
36 |
</tbody> |
|
37 |
</table> |
|
38 |
</form> |
|
|
436
83b032cbf471
Avoids HTTP 403 on reset password, seehttps://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ref-contrib-csrf.
Production Moz <dev@sopinspace.com>
parents:
220
diff
changeset
|
39 |
{% endblock %} |