From e822efdc81fec8666452a3a698b88c17389bc273 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Mon, 4 Feb 2013 13:06:36 +0100 Subject: [PATCH] Some template style work. --- .../templates/assignment/poll_view.html | 5 +- .../assignment/templates/assignment/view.html | 2 +- .../motion/templates/motion/poll_view.html | 85 ++++++++++--------- openslides/static/styles/base.css | 3 + 4 files changed, 50 insertions(+), 45 deletions(-) diff --git a/openslides/assignment/templates/assignment/poll_view.html b/openslides/assignment/templates/assignment/poll_view.html index f7c90ad9f..6ac33793d 100644 --- a/openslides/assignment/templates/assignment/poll_view.html +++ b/openslides/assignment/templates/assignment/poll_view.html @@ -25,8 +25,9 @@

{% trans "Short description (for ballot paper)" %}: {{ assignment.polldescription }}

{% endif %} -{% trans "Special values" %}: -1 = {% trans 'majority' %}; -2 = {% trans 'undocumented' %} - +

+{% trans "Special values" %}: -1 = {% trans 'majority' %} | -2 = {% trans 'undocumented' %} +

{% csrf_token %} diff --git a/openslides/assignment/templates/assignment/view.html b/openslides/assignment/templates/assignment/view.html index f7ab63059..c74623b39 100644 --- a/openslides/assignment/templates/assignment/view.html +++ b/openslides/assignment/templates/assignment/view.html @@ -98,7 +98,7 @@ {% endif %} {% if perms.assignment.can_manage_assignments and blocked_candidates and assignment.status != "fin" %} -

{% trans "Blocked Candidates" %}

+

{% trans "Blocked Candidates" %}

+

+{% trans "Special values" %}: -1 = {% trans 'majority' %} | -2 = {% trans 'undocumented' %} +

+{% csrf_token %} + {{ pre_form }} + +
+ + + + + {% for value in forms.0 %} - - + + - {% for value in forms.0 %} - - - - - {% endfor %} - - - - - - - - -
{% trans "Option" %}{% trans "Votes" %}
{% trans "Option" %}{% trans "Votes" %}{{ value.label }}{{ value.errors }}{{ value }}
{{ value.label }}{{ value.errors }}{{ value }}
{% trans "Invalid votes" %}{{ pollform.votesinvalid.errors }}{{ pollform.votesinvalid }}
{% trans "Votes cast" %}{{ pollform.votescast.errors }}{{ pollform.votescast }}
- {{ post_form }} - -

- - {% trans 'Ballot paper as PDF' %} + {% endfor %} + + {% trans "Invalid votes" %} + {{ pollform.votesinvalid.errors }}{{ pollform.votesinvalid }} + + + {% trans "Votes cast" %} + {{ pollform.votescast.errors }}{{ pollform.votescast }} + + + {{ post_form }} + +

+ + {% trans 'Ballot paper as PDF' %} + +

+ +
+ + + + {% trans 'Cancel' %} -

- -
- - - - {% trans 'Cancel' %} - -
- +
+ {% endblock %} diff --git a/openslides/static/styles/base.css b/openslides/static/styles/base.css index 771beedeb..51e2458de 100644 --- a/openslides/static/styles/base.css +++ b/openslides/static/styles/base.css @@ -116,6 +116,9 @@ tr.total td { input, textarea { width: 320px; } +.small-form input { + width: 33px; +} textarea { height: 100px; }