This commit is contained in:
Norman Jäckel 2012-07-01 16:28:11 +02:00
parent 6c206fa740
commit d22118ac72
2 changed files with 24 additions and 15 deletions

View File

@ -14,13 +14,7 @@
<form action="" method="post" class="small-form">{% csrf_token %}
{{ pre_form }}
<span id="poll_id" style="display:none">{{ poll.id }}</span>
<span style="float:right;">
<a href='{% url print_application_poll poll.id %}'>
<button class="button" type="button" onclick="window.location='{% url print_application_poll poll.id %}'">
<span class="icon pdf">{%trans 'Ballot paper as PDF' %}</span>
</button>
</a>
</span>
<table class="table" style="width: auto;">
<tr>
<th>{% trans "Option" %}</th>
@ -41,8 +35,18 @@
<td>{{ pollform.votescast.errors }}{{ pollform.votescast }}</td>
</tr>
</table>
{{ post_form }}
<p></p>
<p>
<a href='{% url print_application_poll poll.id %}'>
<button class="button" type="button" onclick="window.location='{% url print_application_poll poll.id %}'">
<span class="icon pdf">{%trans 'Ballot paper as PDF' %}</span>
</button>
</a>
</p>
<p>
<button class="button" type="submit">
<span class="icon ok">{%trans 'Save' %}</span>
</button>
@ -54,5 +58,6 @@
<span class="icon cancel">{%trans 'Cancel' %}</span>
</button>
</a>
</p>
</form>
{% endblock %}

View File

@ -14,13 +14,7 @@
{% endif %}
<i class="helptext">{% trans "Special values" %}: -1 = {% trans 'majority' %}; -2 = {% trans 'undocumented' %}</i>
<form action="" method="post" class="small-form">{% csrf_token %}
<span style="float:right;">
<a href='{% url print_assignment_poll poll.id %}'>
<button class="button" type="button" onclick="window.location='{% url print_assignment_poll poll.id %}'">
<span class="icon pdf">{%trans 'Ballot paper as PDF' %}</span>
</button>
</a>
</span>
<table style="width:auto">
<tr>
<th>{% trans "Candidates" %}</th>
@ -48,6 +42,15 @@
<td>{{ pollform.votescast.errors }}{{ pollform.votescast }}</td>
</tr>
</table>
<p>
<a href='{% url print_assignment_poll poll.id %}'>
<button class="button" type="button" onclick="window.location='{% url print_assignment_poll poll.id %}'">
<span class="icon pdf">{%trans 'Ballot paper as PDF' %}</span>
</button>
</a>
</p>
<p>
<button class="button" type="submit">
<span class="icon ok">{%trans 'Save' %}</span>
@ -61,5 +64,6 @@
</button>
</a>
</p>
</form>
{% endblock %}