2012-09-07 17:35:00 +02:00
|
|
|
<script type="text/javascript">
|
|
|
|
autofocus('#new_subscriptions');
|
|
|
|
</script>
|
|
|
|
|
2012-08-30 18:04:35 +02:00
|
|
|
<h1>Current subscriptions</h1>
|
|
|
|
<div class="row-fluid">
|
|
|
|
<div id="current_subscriptions" class="span12">
|
|
|
|
<form action="/subscriptions/manage/" method="post" class="subscriptions">{% csrf_token %}
|
|
|
|
<table id="current_subscriptions_table">
|
2012-08-31 22:48:34 +02:00
|
|
|
<tr>
|
|
|
|
<th>Unsubscribe?</th>
|
|
|
|
<th>Class</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
{% for subscription in subscriptions %}
|
|
|
|
<td class="checkbox">
|
|
|
|
<input type="checkbox" name="subscription" value="{{ subscription }}" /></input>
|
|
|
|
</td>
|
|
|
|
<td class="subscription">
|
|
|
|
{{ subscription }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
2012-08-30 18:04:35 +02:00
|
|
|
</table>
|
|
|
|
<input type="submit" name="change_subscriptions" value="Change subscriptions" class="btn" />
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2012-08-30 20:00:04 +02:00
|
|
|
<h1>Add new subscriptions</h1>
|
|
|
|
<div class="row-fluid">
|
|
|
|
<div id="current_subscriptions" class="span12">
|
|
|
|
<form action="/subscriptions/add/" method="post" class="subscriptions">{% csrf_token %}
|
|
|
|
<label>Please enter a comma-separated list of classes</label>
|
|
|
|
<input type="text" name="new_subscriptions" id="new_subscriptions" value="" /><br />
|
|
|
|
<input type="submit" name="add_subscriptions" value="Add subscriptions" class="btn" />
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|