2012-03-29 03:25:41 +00:00
|
|
|
{% extends "notification/base.html" %}
|
2012-03-27 19:45:41 +00:00
|
|
|
|
|
|
|
{% load i18n %}
|
2012-04-25 14:06:22 +00:00
|
|
|
{% load truncatechars %}
|
2012-03-27 21:47:54 +00:00
|
|
|
{% block title %}{% trans "Notification Settings" %}{% endblock %}
|
2012-03-27 19:45:41 +00:00
|
|
|
|
2012-03-28 15:31:50 +00:00
|
|
|
{% block extra_css %}
|
|
|
|
<link type="text/css" rel="stylesheet" href="/static/css/notices.css" />
|
|
|
|
{% endblock %}
|
|
|
|
|
2013-03-04 22:01:33 +00:00
|
|
|
{% block extra_js %}
|
|
|
|
|
2013-03-08 19:16:24 +00:00
|
|
|
{% block.super %}
|
2013-03-04 22:01:33 +00:00
|
|
|
<script>
|
|
|
|
$j(document).ready(function() {
|
|
|
|
jQuery.post("/ml/status/", function(data){
|
|
|
|
$j("#mailing_list").html(data);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|
|
|
|
|
2012-03-27 21:47:54 +00:00
|
|
|
{% block doccontent %}
|
2012-04-25 14:06:22 +00:00
|
|
|
<h2>{% trans "Notification Settings" %}</h2>
|
2012-03-27 19:45:41 +00:00
|
|
|
|
2012-03-28 15:31:50 +00:00
|
|
|
<a href="{% url notification_notices %}">
|
|
|
|
<div class="notices_menu">
|
|
|
|
{% trans "See Your Notifications" %}
|
|
|
|
</div>
|
|
|
|
</a>
|
2012-03-29 18:48:20 +00:00
|
|
|
<div class="comments"></div>
|
2012-03-28 15:31:50 +00:00
|
|
|
|
|
|
|
<div class="notice_settings">
|
2012-03-27 19:45:41 +00:00
|
|
|
<form method="POST" action="">
|
|
|
|
{% csrf_token %}
|
2012-04-25 14:06:22 +00:00
|
|
|
<h3>Comment Notifications</h3>
|
|
|
|
<table class="notice_settings table table-striped" width="90%">
|
|
|
|
<tr>
|
|
|
|
<th>{% trans "Notify me when..." %}</th>
|
|
|
|
{% for header in notice_settings.column_headers %}
|
|
|
|
<th>{{ header }}</th>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% for row in notice_settings.rows %}
|
|
|
|
{% if row.notice_type.label|truncatechars:11 == 'comment_...' %}
|
|
|
|
<tr class="{% cycle 'row1' 'row2' %}">
|
|
|
|
<td>
|
|
|
|
<span class="notice_type_description">{% trans row.notice_type.description %}</span>
|
|
|
|
</td>
|
|
|
|
{% for cell in row.cells %}
|
|
|
|
<td>
|
|
|
|
<input type="checkbox" name="{{ cell.0 }}" {% if cell.1 %}checked="yes"{% endif %}/>
|
|
|
|
</td>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" id="last"><input type="submit" value="{% trans 'Change' %}"></input></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<h3>Wishlist Notifications</h3>
|
|
|
|
<table class="notice_settings table table-striped" width="90%">
|
|
|
|
<tr>
|
|
|
|
<th>{% trans "Notify me when..." %}</th>
|
|
|
|
{% for header in notice_settings.column_headers %}
|
|
|
|
<th>{{ header }}</th>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% for row in notice_settings.rows %}
|
|
|
|
{% if row.notice_type.label|truncatechars:12 == 'wishlist_...' %}
|
|
|
|
<tr class="{% cycle 'row1' 'row2' %}">
|
|
|
|
<td>
|
|
|
|
<span class="notice_type_description">{% trans row.notice_type.description %}</span>
|
|
|
|
</td>
|
|
|
|
{% for cell in row.cells %}
|
|
|
|
<td>
|
|
|
|
<input type="checkbox" name="{{ cell.0 }}" {% if cell.1 %}checked="yes"{% endif %}/>
|
|
|
|
</td>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" id="last"><input type="submit" value="{% trans 'Change' %}"></input></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<h3>Pledge Notifications</h3>
|
|
|
|
<table class="notice_settings table table-striped" width="90%">
|
2012-03-27 19:45:41 +00:00
|
|
|
<tr>
|
2012-04-25 14:06:22 +00:00
|
|
|
<th>{% trans "Notify me when..." %}</th>
|
2012-03-27 19:45:41 +00:00
|
|
|
{% for header in notice_settings.column_headers %}
|
|
|
|
<th>{{ header }}</th>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% for row in notice_settings.rows %}
|
2012-04-25 14:06:22 +00:00
|
|
|
{% if row.notice_type.label|truncatechars:10 == 'pledge_...' %}
|
2012-03-28 15:31:50 +00:00
|
|
|
<tr class="{% cycle 'row1' 'row2' %}">
|
2012-04-25 14:06:22 +00:00
|
|
|
<td>
|
2012-03-27 19:45:41 +00:00
|
|
|
<span class="notice_type_description">{% trans row.notice_type.description %}</span>
|
|
|
|
</td>
|
|
|
|
{% for cell in row.cells %}
|
|
|
|
<td>
|
|
|
|
<input type="checkbox" name="{{ cell.0 }}" {% if cell.1 %}checked="yes"{% endif %}/>
|
|
|
|
</td>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
2012-04-25 14:06:22 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" id="last"><input type="submit" value="{% trans 'Change' %}"></input></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<h3>Rights Holder Notifications</h3>
|
|
|
|
<table class="notice_settings table table-striped" width="90%">
|
|
|
|
<tr>
|
|
|
|
<th>{% trans "Notify me when..." %}</th>
|
|
|
|
{% for header in notice_settings.column_headers %}
|
|
|
|
<th>{{ header }}</th>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% for row in notice_settings.rows %}
|
|
|
|
{% if row.notice_type.label|truncatechars:10 == 'rights_...' %}
|
|
|
|
<tr class="{% cycle 'row1' 'row2' %}">
|
|
|
|
<td>
|
|
|
|
<span class="notice_type_description">{% trans row.notice_type.description %}</span>
|
|
|
|
</td>
|
|
|
|
{% for cell in row.cells %}
|
|
|
|
<td>
|
|
|
|
<input type="checkbox" name="{{ cell.0 }}" {% if cell.1 %}checked="yes"{% endif %}/>
|
|
|
|
</td>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
2012-03-27 19:45:41 +00:00
|
|
|
{% endfor %}
|
|
|
|
<tr>
|
2012-03-28 15:31:50 +00:00
|
|
|
<td colspan="2" id="last"><input type="submit" value="{% trans 'Change' %}"></input></td>
|
2012-03-27 19:45:41 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
2013-03-04 22:01:33 +00:00
|
|
|
|
|
|
|
<h3>Your mailing list subscription</h3>
|
|
|
|
<div id="mailing_list"></div>
|
2012-04-25 14:06:22 +00:00
|
|
|
<h3>Your email</h3>
|
2012-03-28 15:31:50 +00:00
|
|
|
{% if user.email %}
|
|
|
|
<p>
|
|
|
|
{{ user.email }}<br />
|
|
|
|
</p>
|
|
|
|
<p>
|
2012-04-25 14:06:22 +00:00
|
|
|
({% blocktrans %}You can change this under <a href="{{ editurl }}">Account</a>.{% endblocktrans %})
|
2012-03-28 15:31:50 +00:00
|
|
|
</p>
|
|
|
|
{% else %}
|
|
|
|
<div class="errorlist">
|
|
|
|
{% blocktrans %}
|
|
|
|
You do not have a verified email address to which notices can be sent.
|
2012-04-25 14:06:22 +00:00
|
|
|
You can add one by going to <a href="{{ editurl }}">Account</a>.
|
2012-03-28 15:31:50 +00:00
|
|
|
{% endblocktrans %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2012-03-27 19:45:41 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|