]> git.ozlabs.org Git - patchwork/blobdiff - patchwork/templates/patchwork/mail-form.html
Move to a more recent django project structure
[patchwork] / patchwork / templates / patchwork / mail-form.html
diff --git a/patchwork/templates/patchwork/mail-form.html b/patchwork/templates/patchwork/mail-form.html
new file mode 100644 (file)
index 0000000..d71b2fb
--- /dev/null
@@ -0,0 +1,38 @@
+{% extends "base.html" %}
+
+{% block title %}mail settings{% endblock %}
+{% block heading %}mail settings{% endblock %}
+
+{% block body %}
+
+<p>You can configure patchwork to send you mail on certain events,
+or block automated mail altogether. Enter your email address to
+view or change your email settings.</p>
+
+<form method="post">
+{% csrf_token %}
+<table class="form registerform">
+{% if form.errors %}
+ <tr>
+  <td colspan="2" class="error">
+   There was an error accessing your mail settings:
+  </td>
+ </tr>
+{% endif %}
+ <tr>
+  <th>{{ form.email.label_tag }}</th>
+  <td>
+   {{form.email}}
+   {{form.email.errors}}
+  </td>
+ </tr>
+ <tr>
+  <td colspan="2" class="submitrow">
+   <input type="submit" value="Access mail settings"/>
+  </td>
+ </tr>
+</table>
+</form>
+
+
+{% endblock %}