Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Political Memory
memopol
Commits
36c272db
Commit
36c272db
authored
Aug 31, 2016
by
Nicolas Joyard
Browse files
Add recommendation button when user is admin
parent
ec06b3db
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/representatives_votes/dossier_detail_proposals.html
View file @
36c272db
...
...
@@ -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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment