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>
<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 %}
{{ pre_form }}
<span id="poll_id" style="display:none">{{ poll.id }}</span>

View File

@ -9,8 +9,10 @@
<p>{{ ballotnumber }}. {%trans "ballot" %}: {{assignment.poll.get_options}}
{% blocktrans count counter=options|length %}candidate{% plural %}candidates{% endblocktrans %}
</p>
{% if assignment.polldescription %}
<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 %}
<table style="width:auto">
<tr>
@ -39,15 +41,6 @@
<td>{{ pollform.votescast.errors }}{{ pollform.votescast }}</td>
</tr>
</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>
<button class="button" type="submit">
<span class="icon ok">{%trans 'Save' %}</span>
@ -62,5 +55,4 @@
</a>
</p>
</form>
{% endblock %}

View File

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