Application view: added link to edit a poll

This commit is contained in:
Oskar Hahn 2012-04-15 11:48:31 +02:00
parent bf5ae10552
commit f4ed79b68d

View File

@ -65,13 +65,13 @@
<ul class="results">
{% for poll in polls %}
<li>
{% if perms.application.can_manage_application and poll.has_vote %}
<a href="{% url application_poll_view poll.id %}">
{% endif %}
<b>{{ forloop.counter }}. {% trans "Vote" %}:</b>
{% if perms.application.can_manage_application %}
{% if poll.has_vote %}</a>{% endif %}
<a href="{% url application_poll_delete poll.id %}"><img src="{% static 'images/icons/edit-delete.png' %}" title="{% trans 'Delete Vote' %}"></a>
<a href="{% url application_poll_view poll.id %}">
<b>{{ forloop.counter }}. {% trans "Vote" %}:</b>
</a>
<a href="{% url application_poll_delete poll.id %}">
<img src="{% static 'images/icons/edit-delete.png' %}" title="{% trans 'Delete Vote' %}">
</a>
{% endif %}
<br>
{% if poll.has_votes %}
@ -103,7 +103,6 @@
</ul>
{% endwith %}
<h4>{% trans "Creation Time" %}:</h4>
{{ application.creation_time }}