]> git.ozlabs.org Git - patchwork/blob - patchwork/templates/patchwork/optout-request.html
login: Focus the username field on load
[patchwork] / patchwork / templates / patchwork / optout-request.html
1 {% extends "base.html" %}
2
3 {% block title %}opt-out{% endblock %}
4 {% block heading %}opt-out{% endblock %}
5
6 {% block body %}
7 {% if email_sent %}
8 <p><strong>Opt-out confirmation email sent</strong></p>
9 <p>An opt-out confirmation mail has been sent to
10 <strong>{{confirmation.email}}</strong>, containing a link. Please click on
11 that link to confirm your opt-out.</p>
12 {% else %}
13 {% if error %}
14 <p class="error">{{error}}</p>
15 {% endif %}
16
17 {% if form %}
18 <p>This form allows you to opt-out of automated email from patchwork.</p>
19 <p>If you opt-out of email, Patchwork may still email you if you do certain
20 actions yourself (such as create a new patchwork account), but will not send
21 you unsolicited email.</p>
22 When you submit it, one email will be sent to your address with a link to click
23 to finalise the opt-out. Patchwork does this to prevent someone opting you out
24 without your consent.</p>
25 <form method="post" action="">
26 {% csrf_token %}
27 {{form.email.errors}}
28 <div style="padding: 0.5em 1em 2em;">
29 {{form.email.label_tag}}: {{form.email}}
30 </div>
31 <input type="submit" value="Send me an opt-out link">
32 </form>
33 {% endif %}
34
35 {% if error and admins %}
36 <p>If you are having trouble opting out, please email
37 {% for admin in admins %}
38 {% if admins|length > 1 and forloop.last %} or {% endif %}
39 {{admin.0}} &lt;<a href="mailto:{{admin.1}}">{{admin.1}}</a
40 >&gt;{% if admins|length > 2 and not forloop.last %}, {% endif %}
41 {% endfor %}
42 {% endif %}
43
44 {% endif %}
45
46 {% if user.is_authenticated %}
47 <p>Return to your <a href="{% url 'patchwork.views.user.profile' %}">user
48 profile</a>.</p>
49 {% endif %}
50
51 {% endblock %}