a383a4305b
- Fixed #737 (Motion edit link is missing for normal delegate users) - Fixed motion pdf filename errors (now use motion-<identifier>.pdf or if no identifier: motion-<title>.pdf with using djangos slugify for special chars in title) - Fixed motion pdf build error if there is an unauthorized version - Enlarge max_length of event name field to 50 chars. - Align participant import instruction with motion import page. - Added title field to particpants-demo_en.csv. - participant overview: Show comma after last_name only if first_name and last_name are given. - Changed all page titles to "<specific action page> - <event-name>" (moved event-name to the end of the string) - Updated EN tranlation string. - Updated DE translations.
92 lines
3.2 KiB
HTML
92 lines
3.2 KiB
HTML
{% extends 'base.html' %}
|
||
|
||
{% load i18n %}
|
||
{% load humanize %}
|
||
|
||
{% block title %}{% trans "Election" %} "{{ assignment }}", {{ ballotnumber }}. {% trans "ballot" %} – {{ block.super }}{% endblock %}
|
||
|
||
{% block content %}
|
||
<h1>
|
||
{{ assignment }}
|
||
<small>
|
||
{{ ballotnumber|ordinal|safe }} {% trans "ballot" %}
|
||
</small>
|
||
<small class="pull-right">
|
||
<a href="{% url 'assignment_view' assignment.id %}" class="btn btn-mini"><i class="icon-chevron-left"></i> {% trans "Back to election" %}</a>
|
||
<!-- activate projector -->
|
||
{% if perms.projector.can_manage_projector %}
|
||
<a href="{% url 'projector_activate_slide' assignment.sid %}" class="activate_link btn {% if assignment.active %}btn-primary{% endif %} btn-mini" rel="tooltip" data-original-title="{% trans 'Show election' %}">
|
||
<i class="icon-facetime-video {% if assignment.active %}icon-white{% endif %}"></i>
|
||
</a>
|
||
{% endif %}
|
||
</small>
|
||
</h1>
|
||
|
||
{% if assignment.polldescription %}
|
||
<p><b>{% trans "Short description (for ballot paper)" %}:</b> {{ assignment.polldescription }}</p>
|
||
{% endif %}
|
||
|
||
<p>
|
||
{% trans "Special values" %}: <span class="badge badge-success">-1</span> = {% trans 'majority' %} | <span class="badge">-2</span> = {% trans 'undocumented' %}
|
||
</p>
|
||
<form action="" method="post" class="small-form">{% csrf_token %}
|
||
<table class="table table-striped table-bordered" style="width: auto;">
|
||
<tr>
|
||
<th>{% trans "Candidates" %}</th>
|
||
{% for value in poll.get_vote_values %}
|
||
<th>{% trans value %}</th>
|
||
{% endfor %}
|
||
</tr>
|
||
{% for form in forms %}
|
||
<tr>
|
||
<td>{{ form.option }}</td>
|
||
{% for value in form %}
|
||
<td>
|
||
{{ value.errors }}
|
||
{{ value }}
|
||
</td>
|
||
{% endfor %}
|
||
</tr>
|
||
{% endfor %}
|
||
<tr>
|
||
<td>{% trans "Invalid votes" %}</td>
|
||
{% for value in poll.get_vote_values %}
|
||
{% if forloop.first %}
|
||
<td>{{ pollform.votesinvalid.errors }}{{ pollform.votesinvalid }}</td>
|
||
{% else %}
|
||
<td></td>
|
||
{% endif %}
|
||
{% endfor %}
|
||
</tr>
|
||
<tr class="total warning">
|
||
<td>{% trans "Votes cast" %}</td>
|
||
{% for value in poll.get_vote_values %}
|
||
{% if forloop.first %}
|
||
<td>{{ pollform.votescast.errors }}{{ pollform.votescast }}</td>
|
||
{% else %}
|
||
<td></td>
|
||
{% endif %}
|
||
{% endfor %}
|
||
</tr>
|
||
</table>
|
||
|
||
<p>
|
||
<a href="{% url 'print_assignment_poll' poll.id %}" class="btn" target="_blank">
|
||
<i class="icon-print"></i> {% trans 'Ballot paper as PDF' %}
|
||
</a>
|
||
</p>
|
||
<!-- Control buttons -->
|
||
<div class="control-group">
|
||
<button type="submit" class="btn btn-primary">
|
||
{% trans 'Save' %}
|
||
</button>
|
||
<button type="submit" name="apply" class="btn">
|
||
{% trans 'Apply' %}
|
||
</button>
|
||
<a href="{% url 'assignment_view' poll.assignment.id %}" class="btn">
|
||
{% trans 'Cancel' %}
|
||
</a>
|
||
</div>
|
||
</form>
|
||
{% endblock %}
|