Some minor style fixes for poll view templates.

This commit is contained in:
Emanuel Schuetze 2012-04-29 19:12:18 +02:00
parent 905d9d546c
commit 79605531c5
3 changed files with 19 additions and 27 deletions

View File

@ -10,7 +10,7 @@
<h3>{{ application.title }}</h3> <h3>{{ application.title }}</h3>
<p>{%trans "Results of" %} {{ ballot }}. {%trans "Vote" %}</p> <p>{%trans "Results of" %} {{ ballot }}. {%trans "Vote" %}</p>
<i>-1 := {% trans 'majority' %}, -2 := {% trans 'undocumented' %}</i> <i class="helptext">{% trans "Special values" %}: -1 = {% trans 'majority' %}; -2 = {% trans 'undocumented' %}</i>
<form action="" method="post" class="small-form">{% csrf_token %} <form action="" method="post" class="small-form">{% csrf_token %}
{{ pre_form }} {{ pre_form }}
<span id="poll_id" style="display:none">{{ poll.id }}</span> <span id="poll_id" style="display:none">{{ poll.id }}</span>

View File

@ -9,8 +9,10 @@
<p>{{ ballotnumber }}. {%trans "ballot" %}: {{assignment.poll.get_options}} <p>{{ ballotnumber }}. {%trans "ballot" %}: {{assignment.poll.get_options}}
{% blocktrans count counter=options|length %}candidate{% plural %}candidates{% endblocktrans %} {% blocktrans count counter=options|length %}candidate{% plural %}candidates{% endblocktrans %}
</p> </p>
{% if assignment.polldescription %}
<p><b>{% trans "Short description" %}:</b> {{ assignment.polldescription }}</p> <p><b>{% trans "Short description" %}:</b> {{ assignment.polldescription }}</p>
<i>-1 := {% trans 'majority' %}, -2 := {% trans 'undocumented' %}</i> {% endif %}
<i class="helptext">{% trans "Special values" %}: -1 = {% trans 'majority' %}; -2 = {% trans 'undocumented' %}</i>
<form action="" method="post" class="small-form">{% csrf_token %} <form action="" method="post" class="small-form">{% csrf_token %}
<table style="width:auto"> <table style="width:auto">
<tr> <tr>
@ -39,15 +41,6 @@
<td>{{ pollform.votescast.errors }}{{ pollform.votescast }}</td> <td>{{ pollform.votescast.errors }}{{ pollform.votescast }}</td>
</tr> </tr>
</table> </table>
<p>
<a href='{% url print_assignment_poll poll.id %}'>
<span class="button">
<span class="icon pdf">{%trans 'Print ballot' %}</span>
</span>
</a>
</p>
<p> <p>
<button class="button" type="submit"> <button class="button" type="submit">
<span class="icon ok">{%trans 'Save' %}</span> <span class="icon ok">{%trans 'Save' %}</span>
@ -62,5 +55,4 @@
</a> </a>
</p> </p>
</form> </form>
{% endblock %} {% endblock %}

View File

@ -451,7 +451,7 @@ form .error input, form .error textarea {
form input:after { form input:after {
font-weight: bold; font-weight: bold;
} }
form .helptext { .helptext {
font-size:9px; font-size:9px;
display: block; display: block;
color: #556652; color: #556652;