added name for participant app in __init__

removed some files, added though branch merge
This commit is contained in:
Oskar Hahn 2012-07-19 11:11:07 +02:00
parent 8f4970e16c
commit 70b161c539
8 changed files with 100 additions and 267 deletions

View File

@ -1,60 +0,0 @@
{% extends "beamer.html" %}
{% load tags %}
{% block title %}{{ block.super }} - {{ item.title }}{% endblock %}
{% block content %}
<div id="sidebar">
<div class="box">
<p><b>{%trans "Status" %}:</b><br>
{% if item.application.status != "pub" %}
{%trans item.application.get_status_display %}
<br>
{% else %}
{% for note in item.application.notes %}
{{ note }}
{% endfor %}
{% endif %}
</p>
<p><b>{% trans "Submitter" %}:</b><br>
{{ item.application.submitter.profile }}</p>
{% with item.application.poll_set.all as polls %}
{% if polls|length > 0 and polls.0.has_vote %}
<p><b>{% trans "Poll result" %}:</b></p>
{% for p in polls %}
{% if p.has_vote %}
{% if polls|length > 1 %}
{{forloop.counter}}. {% trans "Vote" %}:<br>
{% endif %}
{% for option in p.options %}
<img src="/static/images/icons/voting-yes.png" title="{% trans 'Yes' %}"> {{ option.yes }} <br>
<img src="/static/images/icons/voting-no.png" title="{% trans 'No' %}"> {{ option.no }} <br>
<img src="/static/images/icons/voting-abstention.png" title="{% trans 'Abstention' %}"> {{ option.undesided }}<br>
<img src="/static/images/icons/voting-invalid.png" title="{% trans 'Invalid' %}"> {{ p.votesinvalidf }}<br>
<div style="border-top: 1px solid; padding-top: 5px; margin: 5px 0; width: 10em;">
<img src="/static/images/icons/voting-total.png" title="{% trans 'Votes cast' %}"> {{ p.votescastf }}
</div>
{% endfor %}
<br>
{% else %}
{% if poll|length == 1 %}
<i>{% trans "No poll results available." %}</i>
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endwith %}
</div>
</div>
<h1>{% trans "Application No." %} {{ item.application.number }}</h1>
<b>{{ item.title }}</b>
<p>
<div class="text">{{ item.application.public_version.text|linebreaks }}</div>
{% if item.application.public_version.reason %}
<br>
<div class="reason"><p><b>{% trans "Reason" %}:</b></p>
{{ item.application.public_version.reason|linebreaks }}</div>
{% endif %}
</p>
{% endblock %}

View File

@ -1,105 +0,0 @@
{% extends "beamer.html" %}
{% block title %}{{ block.super }} - #{{ item.title }}{% endblock %}
{% block header %}
<link type="text/css" rel="stylesheet" media="all" href="/static/styles/assignment.css" />
<script type="text/javascript" src="/static/javascript/assignment.js"></script>
{% endblock %}
{% block content %}
<h1>{% trans "Election" %}: {{ item.assignment }}</h1>
{% if item.assignment.status != "fin" %}
<div id="sidebar">
<div class="box">
<p><b>{% trans "Status" %}:</b><br>
{% trans item.assignment.get_status_display %}</p>
{% if item.assignment.status == "sea" or item.assignment.status == "vot" %}
<p><b>{% trans "Number of available posts" %}:</b><br>
{{ item.assignment.posts }}</p>
{% endif %}
</div>
</div>
{% endif %}
{% if not item.assignment.profile.exists %}
<p>
<div class="text">{{ item.assignment.description|linebreaks }}</div>
</p>
{% endif %}
{% if item.assignment.profile.exists and item.assignment.status != "fin" %}
<h3>{% trans "Candidates" %}</h3>
<ol>
{% for profile in item.assignment.profile.all|dictsort:"user.first_name" %}
<li>{{ profile }} </li>
{% empty %}
<li style="list-style: none outside none;">
<i>{% trans "No candidates available." %}</i>
</li>
{% endfor %}
</ol>
<p><br></p>
{% endif %}
{% with polls|first as firstpoll %}
{% if polls.count > 0 and firstpoll.published %}
<h3>{% trans "Election results" %}</h3>
<table>
<tr>
<th>{% trans "Candidates" %}</th>
{% for poll in item.assignment.poll_set.all %}
{% if poll.published %}
<th><nobr>{{forloop.counter}}. {% trans "ballot" %}</nobr></th>
{% endif %}
{% endfor %}
</tr>
{% for vote in votes %}
<tr class="{% cycle 'odd' '' %}">
{% with vote|first as candidate %}
<td class="candidate {% if candidate.1 %}elected{% endif %}">
{% if candidate.1 %}
<a class="elected"><img src="/static/images/icons/voting-yes.png" title="{% trans 'Candidate is elected' %}"></a>
{% endif %}
{{ candidate.0 }}
</td>
{% for v in vote|last %}
<td style="white-space:nowrap;" {% if candidate.1 %}class="elected"{% endif %}>{% if v %}
{% if v|length == 3 %}
<img src="/static/images/icons/voting-yes.png" title="{% trans 'Yes' %}"> {% if v.0 %}{{ v.0 }}{% else %}&empty;{% endif %}<br>
<img src="/static/images/icons/voting-no.png" title="{% trans 'No' %}"> {% if v.1 %}{{ v.1 }}{% else %}&empty;{% endif %}<br>
<img src="/static/images/icons/voting-abstention.png" title="{% trans 'Abstention' %}"> {% if v.2 %}{{ v.2 }}{% else %}&empty;{% endif %}<br>
{% else %}
{% if v != "-" %}<img src="/static/images/icons/voting-yes.png" title="{% trans 'Yes' %}">{% endif %}
{{ v }}
{% endif %}
{% endif %}
</td>
{% endfor %}
{% endwith %}
</tr>
{% empty %}
<tr>
<td {% if item.assignment.profile.exist %}colspan="2"{% endif %}><i>{% trans "No ballots available." %}</i></td>
</tr>
{% endfor %}
<tr>
<td>{%trans 'Invalid votes' %}</td>
{% for p in polls %}
{% if p.published %}
<td style="white-space:nowrap;"><img src="/static/images/icons/voting-invalid.png" title="{% trans 'Invalid' %}"> {{ p.votesinvalidf }}</td>
{% endif %}
{% endfor %}
</tr>
<tr class="total">
<td><b>{%trans 'Votes cast' %}</b></td>
{% for p in polls %}
{% if p.published %}
<td style="white-space:nowrap;"><img src="/static/images/icons/voting-total.png" title="{% trans 'Votes cast' %}"> <b>{{ p.votescastf }}</b></td>
{% endif %}
{% endfor %}
</tr>
</table>
{% endif %}
{% endwith %}
<br>
{% endblock %}

View File

@ -1,19 +0,0 @@
{% extends "beamer.html" %}
{% block title %}{{ block.super }} - {{ item.title }}{% endblock %}
{% block content %}
{%trans "Poll about" %}:
<h1>{{ item.title }}</h1>
<table>
{% for option in item.poll.get_options %}
<tr>
<td>{{ option }}</td>
<td>{{ option.voteyes }}</td>
{% if item.poll.optiondecision %}
<td>{{ option.voteno }}</td>
<td>{{ option.voteundesided }}</td>
{% endif %}
</tr>
{% endfor %}
</table>
{% endblock %}

View File

@ -1,10 +0,0 @@
{% extends "beamer.html" %}
{% block title %}{{ block.super }} - {{ item.title }}{% endblock %}
{% block content %}
{% if item.text %}
<h1>{{ item.title }}</h1>
{{ item.text|safe|linebreaks }}
{% else %}
<div class="item_fullscreen">{{ item.title }}</div>
{% endif %}
{% endblock %}

View File

@ -1,17 +0,0 @@
{% extends "beamer.html" %}
{% block title %}{{ block.super }} -
{% if title %} {{ title }} {% else %} {%trans "Agenda" %} {% endif %}
{% endblock %}
{% block content %}
{% if title %}
<h1>{{ title }}</h1>
{% else %}
<h1>{%trans "Agenda" %}</h1>
{% endif %}
<ul class="itemlist">
{% for item in items %}
<li{% if item.closed %} class="closed"{% endif %}>{{ item }}</li>
{% endfor %}
</ul>
{% endblock %}

View File

@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: OpenSlides 1.x\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-07-18 10:52+0200\n"
"POT-Creation-Date: 2012-07-19 11:04+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Emanuel Schuetze <emanuel@intevation.de>\n"
"Language-Team: German\n"
@ -69,6 +69,8 @@ msgstr "Darf die Tagesordung verwalten"
#: agenda/templates/agenda/overview.html:77
#: agenda/templates/projector/AgendaSummary.html:6
#: agenda/templates/projector/AgendaSummary.html:10
#: application/templates/projector/overview.html:3
#: application/templates/projector/overview.html:10
msgid "Agenda"
msgstr "Tagesordnung"
@ -105,6 +107,9 @@ msgstr "Eintrag %s wurde erfolgreich gelöscht."
#: application/views.py:487 application/views.py:809 application/views.py:860
#: application/templates/application/view.html:82
#: application/templates/projector/Application.html:37
#: application/templates/projector/ItemApplication.html:30
#: application/templates/projector/ItemAssignment.html:67
#: application/templates/projector/ItemAssignment.html:71
#: assignment/models.py:240 assignment/views.py:557
#: assignment/templates/assignment/view.html:158
#: assignment/templates/assignment/view.html:162
@ -119,6 +124,8 @@ msgstr "Ja"
#: application/views.py:487 application/views.py:809 application/views.py:861
#: application/templates/application/view.html:83
#: application/templates/projector/Application.html:38
#: application/templates/projector/ItemApplication.html:31
#: application/templates/projector/ItemAssignment.html:68
#: assignment/models.py:240 assignment/views.py:558
#: assignment/templates/assignment/view.html:159
#: assignment/templates/projector/Assignment.html:79 utils/utils.py:53
@ -342,6 +349,7 @@ msgstr "Bearbeiten"
#: application/templates/application/view.html:232
#: application/templates/application/view.html:252
#: application/templates/projector/Application.html:77
#: application/templates/projector/ItemApplication.html:56
msgid "Reason"
msgstr "Begründung"
@ -357,6 +365,7 @@ msgstr "Triviale Änderungen erzeugen keine neue Version."
#: application/templates/application/overview.html:41
#: application/templates/application/view.html:18
#: application/templates/projector/Application.html:55
#: application/templates/projector/ItemApplication.html:19
msgid "Submitter"
msgstr "Antragsteller/in"
@ -793,6 +802,7 @@ msgstr "Keine Anträge vorhanden."
#: application/views.py:738
#: application/templates/application/base_application.html:24
#: application/templates/projector/Application.html:63
#: application/templates/projector/ItemApplication.html:50
msgid "Application No."
msgstr "Antrag Nr."
@ -800,6 +810,8 @@ msgstr "Antrag Nr."
#: application/templates/application/overview.html:40
#: application/templates/application/view.html:37
#: application/templates/projector/Application.html:11
#: application/templates/projector/ItemApplication.html:8
#: application/templates/projector/ItemAssignment.html:13
#: assignment/templates/assignment/overview.html:14
#: assignment/templates/assignment/overview.html:27
#: assignment/templates/assignment/view.html:11
@ -809,7 +821,7 @@ msgid "Status"
msgstr "Status"
#: application/views.py:792 application/templates/application/view.html:217
#: application/templates/application/view.html:247 config/models.py:131
#: application/templates/application/view.html:247 config/models.py:133
#: config/templates/config/version.html:5
#: config/templates/config/version.html:8
#: config/templates/config/version.html:11
@ -828,19 +840,24 @@ msgstr "Abstimmungsergebnis"
#: application/templates/application/view.html:69
#: application/templates/application/view.html:77
#: application/templates/projector/Application.html:33
#: application/templates/projector/ItemApplication.html:27
msgid "Vote"
msgstr "Abstimmung"
#: application/views.py:809 application/views.py:862
#: application/templates/application/view.html:84
#: application/templates/projector/Application.html:39 assignment/views.py:558
#: assignment/templates/assignment/view.html:160
#: application/templates/projector/Application.html:39
#: application/templates/projector/ItemApplication.html:32
#: application/templates/projector/ItemAssignment.html:69
#: assignment/views.py:558 assignment/templates/assignment/view.html:160
#: assignment/templates/projector/Assignment.html:80
msgid "Abstention"
msgstr "Enthaltung"
#: application/views.py:809 application/templates/application/view.html:85
#: application/templates/projector/Application.html:40
#: application/templates/projector/ItemApplication.html:33
#: application/templates/projector/ItemAssignment.html:88
#: assignment/templates/assignment/view.html:182
#: assignment/templates/projector/Assignment.html:101
msgid "Invalid"
@ -849,8 +866,11 @@ msgstr "Ungültig"
#: application/views.py:809
#: application/templates/application/poll_view.html:35
#: application/templates/application/view.html:87
#: application/templates/projector/Application.html:42 assignment/views.py:442
#: assignment/templates/assignment/poll_view.html:45
#: application/templates/projector/Application.html:42
#: application/templates/projector/ItemApplication.html:35
#: application/templates/projector/ItemAssignment.html:93
#: application/templates/projector/ItemAssignment.html:96
#: assignment/views.py:442 assignment/templates/assignment/poll_view.html:45
#: assignment/templates/assignment/view.html:194
#: assignment/templates/assignment/view.html:199
#: assignment/templates/projector/Assignment.html:111
@ -1027,8 +1047,9 @@ msgstr "Wahlmöglichkeit"
msgid "Votes"
msgstr "Stimmen"
#: application/templates/application/poll_view.html:31 assignment/views.py:435
#: assignment/templates/assignment/poll_view.html:35
#: application/templates/application/poll_view.html:31
#: application/templates/projector/ItemAssignment.html:85
#: assignment/views.py:435 assignment/templates/assignment/poll_view.html:35
#: assignment/templates/assignment/view.html:177
#: assignment/templates/projector/Assignment.html:97
msgid "Invalid votes"
@ -1168,19 +1189,83 @@ msgid "Log"
msgstr "Log"
#: application/templates/projector/Application.html:29
#: application/templates/projector/ItemApplication.html:23
msgid "Poll result"
msgstr "Abstimmungsergebnis"
#: application/templates/projector/Application.html:47
#: application/templates/projector/ItemApplication.html:41
msgid "No poll results available."
msgstr "Keine Abstimmungen vorhanden."
#: application/templates/projector/ItemAssignment.html:8
#: assignment/views.py:501 assignment/views.py:517
#: assignment/templates/assignment/overview.html:25
#: assignment/templates/assignment/poll_view.html:5
#: assignment/templates/assignment/view.html:6
#: assignment/templates/projector/Assignment.html:27
msgid "Election"
msgstr "Wahl"
#: application/templates/projector/ItemAssignment.html:16
#: assignment/forms.py:24 assignment/models.py:44 assignment/views.py:364
#: assignment/templates/assignment/view.html:13
#: assignment/templates/projector/Assignment.html:21
msgid "Number of available posts"
msgstr "Anzahl der zur Wahl stehenden Posten"
#: application/templates/projector/ItemAssignment.html:30
#: application/templates/projector/ItemAssignment.html:48
#: assignment/views.py:370 assignment/views.py:403
#: assignment/templates/assignment/overview.html:26
#: assignment/templates/assignment/poll_view.html:18
#: assignment/templates/assignment/view.html:36
#: assignment/templates/assignment/view.html:110
#: assignment/templates/projector/Assignment.html:38
#: assignment/templates/projector/Assignment.html:56
msgid "Candidates"
msgstr "Kandidaten/innen"
#: application/templates/projector/ItemAssignment.html:36
#: assignment/templates/assignment/view.html:47
#: assignment/templates/projector/Assignment.html:44
msgid "No candidates available."
msgstr "Keine Kandidaten/innen vorhanden."
#: application/templates/projector/ItemAssignment.html:45
#: assignment/templates/assignment/view.html:95
#: assignment/templates/projector/Assignment.html:52
msgid "Election results"
msgstr "Wahlergebnisse"
#: application/templates/projector/ItemAssignment.html:51
#: assignment/views.py:395
#: assignment/templates/assignment/base_assignment.html:71
#: assignment/templates/assignment/poll_view.html:5
#: assignment/templates/assignment/poll_view.html:8
#: assignment/templates/assignment/view.html:104
#: assignment/templates/assignment/view.html:113
#: assignment/templates/projector/Assignment.html:59
msgid "ballot"
msgstr "Wahlgang"
#: application/templates/projector/ItemAssignment.html:60
#: assignment/templates/assignment/view.html:145
#: assignment/templates/projector/Assignment.html:69
msgid "Candidate is elected"
msgstr "Kandidat/in ist gewählt"
#: application/templates/projector/ItemAssignment.html:81
#: assignment/templates/assignment/view.html:213
#: assignment/templates/projector/Assignment.html:126
msgid "No ballots available."
msgstr "Keine Wahlgänge vorhanden."
#: application/templates/projector/ItemPoll.html:4
#, fuzzy
msgid "Poll about"
msgstr "Abstimmungsergebnis"
#: assignment/forms.py:35
msgid "Nominate a participant"
msgstr "Teilnehmer/in vorschlagen"
@ -1382,26 +1467,6 @@ msgstr "Keine Wahlen vorhanden."
msgid "Election: %s"
msgstr "Wahlen: %s"
#: assignment/views.py:370 assignment/views.py:403
#: assignment/templates/assignment/overview.html:26
#: assignment/templates/assignment/poll_view.html:18
#: assignment/templates/assignment/view.html:36
#: assignment/templates/assignment/view.html:110
#: assignment/templates/projector/Assignment.html:38
#: assignment/templates/projector/Assignment.html:56
msgid "Candidates"
msgstr "Kandidaten/innen"
#: assignment/views.py:395
#: assignment/templates/assignment/base_assignment.html:71
#: assignment/templates/assignment/poll_view.html:5
#: assignment/templates/assignment/poll_view.html:8
#: assignment/templates/assignment/view.html:104
#: assignment/templates/assignment/view.html:113
#: assignment/templates/projector/Assignment.html:59
msgid "ballot"
msgstr "Wahlgang"
#: assignment/views.py:398
msgid "ballots"
msgstr "Wahlgänge"
@ -1417,14 +1482,6 @@ msgstr ""
"N: %(NO)s\n"
"E: %(ABSTAIN)s"
#: assignment/views.py:501 assignment/views.py:517
#: assignment/templates/assignment/overview.html:25
#: assignment/templates/assignment/poll_view.html:5
#: assignment/templates/assignment/view.html:6
#: assignment/templates/projector/Assignment.html:27
msgid "Election"
msgstr "Wahl"
#: assignment/views.py:523
#, python-format
msgid "%d. ballot"
@ -1512,11 +1569,6 @@ msgstr "Status ändern"
msgid "Remove candidate"
msgstr "Kandidate/in entfernen"
#: assignment/templates/assignment/view.html:47
#: assignment/templates/projector/Assignment.html:44
msgid "No candidates available."
msgstr "Keine Kandidaten/innen vorhanden."
#: assignment/templates/assignment/view.html:60
msgid "Withdraw self candidature"
msgstr "Eigene Kandidatur zurückziehen"
@ -1529,11 +1581,6 @@ msgstr "Selbst kandidieren"
msgid "Add new participant"
msgstr "Neue/n Teilnehmer/in hinzufügen"
#: assignment/templates/assignment/view.html:95
#: assignment/templates/projector/Assignment.html:52
msgid "Election results"
msgstr "Wahlergebnisse"
#: assignment/templates/assignment/view.html:118
msgid "Publish/unpublish results"
msgstr "Ergebnisse veröffentlichen/unveröffentlichen"
@ -1543,21 +1590,11 @@ msgstr "Ergebnisse veröffentlichen/unveröffentlichen"
msgid "New ballot"
msgstr "Neuer Wahlgang"
#: assignment/templates/assignment/view.html:145
#: assignment/templates/projector/Assignment.html:69
msgid "Candidate is elected"
msgstr "Kandidat/in ist gewählt"
#: assignment/templates/assignment/view.html:164
#: assignment/templates/projector/Assignment.html:84
msgid "was not a <br> candidate"
msgstr "war kein Kandidat"
#: assignment/templates/assignment/view.html:213
#: assignment/templates/projector/Assignment.html:126
msgid "No ballots available."
msgstr "Keine Wahlgänge vorhanden."
#: config/forms.py:24
msgid "Event name"
msgstr "Veranstaltungsname"
@ -1644,6 +1681,10 @@ msgstr "Startseite"
msgid "System"
msgstr "System"
#: participant/__init__.py:3
msgid "Participant"
msgstr "Teilnehmer"
#: participant/forms.py:24
msgid "Keep applications, try to reassign submitter"
msgstr "Anträge beibehalten, versuchen Antragssteller erneut zuzuweisen"

View File

@ -0,0 +1,3 @@
from django.utils.translation import ugettext_noop
NAME = ugettext_noop('Participant')