2012-08-14 07:49:57 +00:00
|
|
|
{% extends "reviews/base.html" %}
|
|
|
|
|
2014-01-15 13:57:57 +00:00
|
|
|
{% load url from future %}
|
|
|
|
|
|
|
|
|
2012-08-14 07:49:57 +00:00
|
|
|
{% block body %}
|
|
|
|
<h1>Review Assignments</h1>
|
|
|
|
|
|
|
|
{% if assignments %}
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th>Proposal</th>
|
|
|
|
<th>Opted out</th>
|
|
|
|
<th>Opt out</th>
|
|
|
|
</tr>
|
|
|
|
{% for assignment in assignments %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
2014-01-15 13:57:57 +00:00
|
|
|
<a href="{% url 'review_detail' assignment.proposal.pk %}">
|
2012-08-14 07:49:57 +00:00
|
|
|
{{ assignment.proposal.title }}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
2014-01-15 13:57:57 +00:00
|
|
|
<form method="post" action="{% url 'review_assignment_opt_out' assignment.pk %}">
|
2012-08-14 07:49:57 +00:00
|
|
|
{% csrf_token %}
|
|
|
|
<input type="submit" value="Opt-out" />
|
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
{% else %}
|
|
|
|
<p>You do not have any assignments.</p>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|