Commit 36c272db authored by Nicolas Joyard's avatar Nicolas Joyard
Browse files

Add recommendation button when user is admin

parent ec06b3db
......@@ -8,6 +8,7 @@
<table class="table table-responsive table-striped">
<tr>
<th>{% trans "Proposal" %}</th>
{% if user and user.is_staff %}<th></th>{% endif %}
<th>{% trans "Status" %}</th>
<th>{{ "for"|position_icon }}</th>
<th>{{ "against"|position_icon }}</th>
......@@ -25,6 +26,14 @@
</small>
</td>
{% if user and user.is_staff %}
<td>
<a class="btn btn-default btn-sm" href="{% url 'admin:representatives_recommendations_recommendation_add' %}?proposal={{ proposal.pk }}">
{% trans "Add recommendation" %}
</a>
</td>
{% endif %}
<td>{{ proposal.status|proposal_status_label }}</td>
<td>{{ proposal.total_for }}</td>
<td>{{ proposal.total_against }}</td>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment