summaryrefslogtreecommitdiffstats
path: root/templates/patchwork/mail-settings.html
blob: 303139aa33c1630ddc1960d82471a9a2d69c6aa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{% extends "base.html" %}

{% block title %}mail settings{% endblock %}
{% block heading %}mail settings{% endblock %}

{% block body %}
<p>Settings for <strong>{{email}}</strong>:</p>

<table class="horizontal">
 <tr>
  <th>Opt-out list</th>
{% if is_optout %}
  <td>Patchwork <strong>may not</strong> send automated notifications to
   this address.</td>
  <td>
   <form method="post" action="{% url patchwork.views.mail.optin %}">
    {% csrf_token %}
    <input type="hidden" name="email" value="{{email}}"/>
    <input type="submit" value="Opt-in"/>
   </form>
  </td>
   
{% else %}
  <td>Patchwork <strong>may</strong> send automated notifications to
   this address.</td>
  <td>
   <form method="post" action="{% url patchwork.views.mail.optout %}">
    {% csrf_token %}
    <input type="hidden" name="email" value="{{email}}"/>
    <input type="submit" value="Opt-out"/>
   </form>
  </td>
{% endif %}
 </tr>
</table>

{% endblock %}