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">
<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 @@
{% if user and user.is_staff %}
<a class="btn btn-default btn-sm" href="{% url 'admin:representatives_recommendations_recommendation_add' %}?proposal={{ }}">
{% trans "Add recommendation" %}
{% 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