]> git.ozlabs.org Git - patchwork/blob - patchwork/templates/patchwork/mail-settings.html
login: Focus the username field on load
[patchwork] / patchwork / templates / patchwork / mail-settings.html
1 {% extends "base.html" %}
2
3 {% block title %}mail settings{% endblock %}
4 {% block heading %}mail settings{% endblock %}
5
6 {% block body %}
7 <p>Settings for <strong>{{email}}</strong>:</p>
8
9 <table class="horizontal">
10  <tr>
11   <th>Opt-out list</th>
12 {% if is_optout %}
13   <td>Patchwork <strong>may not</strong> send automated notifications to
14    this address.</td>
15   <td>
16    <form method="post" action="{% url 'patchwork.views.mail.optin' %}">
17     {% csrf_token %}
18     <input type="hidden" name="email" value="{{email}}"/>
19     <input type="submit" value="Opt-in"/>
20    </form>
21   </td>
22    
23 {% else %}
24   <td>Patchwork <strong>may</strong> send automated notifications to
25    this address.</td>
26   <td>
27    <form method="post" action="{% url 'patchwork.views.mail.optout' %}">
28     {% csrf_token %}
29     <input type="hidden" name="email" value="{{email}}"/>
30     <input type="submit" value="Opt-out"/>
31    </form>
32   </td>
33 {% endif %}
34  </tr>
35 </table>
36
37 {% endblock %}