Insert new list with all elected candidates, see ticket #374

This commit is contained in:
Norman Jäckel 2012-10-25 21:28:13 +02:00
parent d0771063b3
commit 4052e137a2
1 changed files with 21 additions and 3 deletions

View File

@ -88,18 +88,36 @@
{% endif %}
{% endif %}
<h3>{% trans "Elected Candidates" %}</h3>
<ul>
{% for person in assignment.elected %}
<li>
{{ person }}
{% if perms.assignment.can_manage_assignment %}
{% if assignment.status == "sea" or assignment.status == "vot" %}
<a href="{% url assignment_user_not_elected assignment.id person.person_id %}"><img src="{% static 'images/icons/delete.png' %}" title="{% trans 'Remove candidate' %}"></a>
{% endif %}
{% endif %}
</li>
{% empty %}
<li>{% trans "There are no elected candidates available." %}</li>
{% endfor %}
</ul>
{% if perms.assignment.can_manage_assignments %}
<h3>{% trans "Blocked Candidates" %}</h3>
<ul>
{% for candidate in blocked_candidates %}
{% for person in blocked_candidates %}
<li>
{{ candidate }}<a href="{% url assignment_delother assignment.id candidate.person_id %}"><img src="{% static 'images/icons/delete.png' %}" title="{% trans 'Remove candidate' %}"></a>
{{ person }}<a href="{% url assignment_delother assignment.id person.person_id %}"><img src="{% static 'images/icons/delete.png' %}" title="{% trans 'Remove candidate' %}"></a>
</li>
{% empty %}
<li>{% trans "There are no blocked candidates." %}</li>
<li>{% trans "There are no blocked candidates available." %}</li>
{% endfor %}
</ul>
{% endif %}
<h3>{% trans "Election results" %}</h3>
{% if polls.exists %}