Merge branch 'master' of github.com:OpenSlides/OpenSlides

This commit is contained in:
Oskar Hahn 2012-11-09 09:52:00 +01:00
commit 6719cca7e1
11 changed files with 126 additions and 63 deletions

View File

@ -226,6 +226,7 @@ def get_widgets(request):
return [ return [
Widget( Widget(
name='agenda', name='agenda',
display_name=_('Agenda'),
template='agenda/widget.html', template='agenda/widget.html',
context={ context={
'agenda': SLIDE['agenda'], 'agenda': SLIDE['agenda'],

View File

@ -223,7 +223,7 @@ def delother(request, assignment_id, user_id):
if not is_blocked: if not is_blocked:
message = _("Do you really want to withdraw <b>%s</b> from the election?") % person message = _("Do you really want to withdraw <b>%s</b> from the election?") % person
else: else:
message = _("Do you really want to unblock <b>%s</b> from the election?") % person message = _("Do you really want to unblock <b>%s</b> for the election?") % person
gen_confirm_form(request, message, reverse('assignment_delother', args=[assignment_id, user_id])) gen_confirm_form(request, message, reverse('assignment_delother', args=[assignment_id, user_id]))
return redirect(reverse('assignment_view', args=[assignment_id])) return redirect(reverse('assignment_view', args=[assignment_id]))
@ -674,7 +674,8 @@ def register_tab(request):
def get_widgets(request): def get_widgets(request):
return [ return [
Widget( Widget(
name=_('Assignments'), name='assignments',
display_name=_('Elections'),
template='assignment/widget.html', template='assignment/widget.html',
context={'assignments': Assignment.objects.all()}, context={'assignments': Assignment.objects.all()},
permission_required='assignment.can_manage_assignment')] permission_required='assignment.can_manage_assignment')]

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: OpenSlides 1.x\n" "Project-Id-Version: OpenSlides 1.x\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-11-07 22:14+0100\n" "POT-Creation-Date: 2012-11-08 09:41+0100\n"
"PO-Revision-Date: 2012-07-28 11:07+0200\n" "PO-Revision-Date: 2012-07-28 11:07+0200\n"
"Last-Translator: Emanuel Schuetze <emanuel@intevation.de>\n" "Last-Translator: Emanuel Schuetze <emanuel@intevation.de>\n"
"Language-Team: support@openslides.de\n" "Language-Team: support@openslides.de\n"
@ -25,6 +25,10 @@ msgstr "Deutsch"
msgid "English" msgid "English"
msgstr "Englisch" msgstr "Englisch"
#: global_settings.py:38
msgid "French"
msgstr ""
#: agenda/forms.py:28 #: agenda/forms.py:28
msgid "Parent item" msgid "Parent item"
msgstr "Elternelement" msgstr "Elternelement"
@ -41,7 +45,7 @@ msgid "Text"
msgstr "Text" msgstr "Text"
#: agenda/models.py:44 agenda/templates/agenda/overview.html:65 #: agenda/models.py:44 agenda/templates/agenda/overview.html:65
#: agenda/templates/agenda/view.html:13 participant/models.py:56 #: agenda/templates/agenda/view.html:13 participant/models.py:59
#: participant/templates/participant/overview.html:72 #: participant/templates/participant/overview.html:72
#: participant/templates/participant/user_detail.html:45 #: participant/templates/participant/user_detail.html:45
msgid "Comment" msgid "Comment"
@ -65,7 +69,7 @@ msgid "Can manage agenda"
msgstr "Darf die Tagesordung verwalten" msgstr "Darf die Tagesordung verwalten"
#: agenda/models.py:189 agenda/slides.py:20 agenda/views.py:194 #: agenda/models.py:189 agenda/slides.py:20 agenda/views.py:194
#: agenda/views.py:195 agenda/views.py:214 #: agenda/views.py:195 agenda/views.py:214 agenda/views.py:229
#: agenda/templates/agenda/base_agenda.html:10 #: agenda/templates/agenda/base_agenda.html:10
#: agenda/templates/agenda/overview.html:8 #: agenda/templates/agenda/overview.html:8
#: agenda/templates/agenda/overview.html:52 #: agenda/templates/agenda/overview.html:52
@ -392,7 +396,7 @@ msgstr "Abgeschlossen"
msgid "Name" msgid "Name"
msgstr "Name" msgstr "Name"
#: assignment/models.py:55 participant/models.py:120 #: assignment/models.py:55 participant/models.py:133
msgid "Description" msgid "Description"
msgstr "Beschreibung" msgstr "Beschreibung"
@ -459,6 +463,7 @@ msgid "Ballot %d"
msgstr "Wahlgang %d" msgstr "Wahlgang %d"
#: assignment/models.py:331 assignment/views.py:340 assignment/views.py:664 #: assignment/models.py:331 assignment/views.py:340 assignment/views.py:664
#: assignment/views.py:678
#: assignment/templates/assignment/base_assignment.html:14 #: assignment/templates/assignment/base_assignment.html:14
#: assignment/templates/assignment/overview.html:6 #: assignment/templates/assignment/overview.html:6
#: assignment/templates/assignment/overview.html:9 #: assignment/templates/assignment/overview.html:9
@ -523,7 +528,7 @@ msgstr "Soll <b>%s</b> wirklich von der Wahl zurückgezogen werden?"
#: assignment/views.py:226 #: assignment/views.py:226
#, python-format #, python-format
msgid "Do you really want to unblock <b>%s</b> from the election?" msgid "Do you really want to unblock <b>%s</b> for the election?"
msgstr "Soll <b>%s</b> wirklich für die Wahl freigegeben werden?" msgstr "Soll <b>%s</b> wirklich für die Wahl freigegeben werden?"
#: assignment/views.py:241 #: assignment/views.py:241
@ -666,10 +671,6 @@ msgstr "Enthaltung"
msgid "Election settings successfully saved." msgid "Election settings successfully saved."
msgstr "Wahl-Einstellungen wurden erfolgreich gespeichert." msgstr "Wahl-Einstellungen wurden erfolgreich gespeichert."
#: assignment/views.py:677
msgid "Assignments"
msgstr "Wahlen"
#: assignment/templates/assignment/base_assignment.html:16 #: assignment/templates/assignment/base_assignment.html:16
msgid "All elections" msgid "All elections"
msgstr "Alle Wahlen" msgstr "Alle Wahlen"
@ -1191,7 +1192,7 @@ msgid "The assembly may decide,"
msgstr "Die Versammlung möge beschließen," msgstr "Die Versammlung möge beschließen,"
#: motion/models.py:604 motion/views.py:692 motion/views.py:917 #: motion/models.py:604 motion/views.py:692 motion/views.py:917
#: motion/templates/motion/base_motion.html:9 #: motion/views.py:928 motion/templates/motion/base_motion.html:9
#: motion/templates/motion/overview.html:7 #: motion/templates/motion/overview.html:7
#: motion/templates/motion/overview.html:10 #: motion/templates/motion/overview.html:10
msgid "Motions" msgid "Motions"
@ -1621,7 +1622,7 @@ msgid "Not permit (reject)"
msgstr "Nicht zulassen (verwerfen)" msgstr "Nicht zulassen (verwerfen)"
#: motion/templates/motion/view.html:157 #: motion/templates/motion/view.html:157
msgid "Set Number" msgid "Set number"
msgstr "Setze Nummer" msgstr "Setze Nummer"
#: motion/templates/motion/view.html:164 #: motion/templates/motion/view.html:164
@ -1633,7 +1634,7 @@ msgid "Result after debate"
msgstr "Ergebnis nach der Debatte" msgstr "Ergebnis nach der Debatte"
#: motion/templates/motion/view.html:189 #: motion/templates/motion/view.html:189
msgid "Withdrawed by Submitter" msgid "Withdrawed by submitter"
msgstr "Zurückgezogen durch Antragsteller/in" msgstr "Zurückgezogen durch Antragsteller/in"
#: motion/templates/motion/view.html:194 #: motion/templates/motion/view.html:194
@ -1709,6 +1710,7 @@ msgstr "Teilnehmer"
#: participant/templates/participant/group_overview.html:7 #: participant/templates/participant/group_overview.html:7
#: participant/templates/participant/group_overview.html:10 #: participant/templates/participant/group_overview.html:10
#: participant/templates/participant/user_detail.html:14 #: participant/templates/participant/user_detail.html:14
#: participant/templates/projector/UserSlide.html:12
msgid "Groups" msgid "Groups"
msgstr "Gruppen" msgstr "Gruppen"
@ -1716,7 +1718,7 @@ msgstr "Gruppen"
msgid "Permissions" msgid "Permissions"
msgstr "Rechte" msgstr "Rechte"
#: participant/forms.py:47 participant/views.py:530 #: participant/forms.py:47 participant/views.py:530 participant/views.py:576
#: participant/templates/participant/base_participant.html:12 #: participant/templates/participant/base_participant.html:12
#: participant/templates/participant/overview.html:7 #: participant/templates/participant/overview.html:7
#: participant/templates/participant/overview.html:18 #: participant/templates/participant/overview.html:18
@ -1749,93 +1751,95 @@ msgstr "Teilnehmer/innen nach Vornamen sortieren"
msgid "Disable for sorting by last name" msgid "Disable for sorting by last name"
msgstr "Deaktivieren für Sortierung nach Nachnamen" msgstr "Deaktivieren für Sortierung nach Nachnamen"
#: participant/models.py:29 participant/templates/participant/overview.html:25 #: participant/models.py:32 participant/templates/participant/overview.html:25
msgid "Male" msgid "Male"
msgstr "Männlich" msgstr "Männlich"
#: participant/models.py:30 participant/templates/participant/overview.html:26 #: participant/models.py:33 participant/templates/participant/overview.html:26
msgid "Female" msgid "Female"
msgstr "Weiblich" msgstr "Weiblich"
#: participant/models.py:33 participant/templates/participant/overview.html:38 #: participant/models.py:36 participant/templates/participant/overview.html:38
msgid "Delegate" msgid "Delegate"
msgstr "Delegierter" msgstr "Delegierter"
#: participant/models.py:34 participant/templates/participant/overview.html:39 #: participant/models.py:37 participant/templates/participant/overview.html:39
msgid "Observer" msgid "Observer"
msgstr "Beobachter" msgstr "Beobachter"
#: participant/models.py:35 participant/templates/participant/overview.html:40 #: participant/models.py:38 participant/templates/participant/overview.html:40
msgid "Staff" msgid "Staff"
msgstr "Mitarbeiter" msgstr "Mitarbeiter"
#: participant/models.py:36 participant/templates/participant/overview.html:41 #: participant/models.py:39 participant/templates/participant/overview.html:41
msgid "Guest" msgid "Guest"
msgstr "Gast" msgstr "Gast"
#: participant/models.py:41 participant/templates/participant/overview.html:30 #: participant/models.py:44 participant/templates/participant/overview.html:30
#: participant/templates/participant/overview.html:68 #: participant/templates/participant/overview.html:68
msgid "Detail" msgid "Detail"
msgstr "Detail" msgstr "Detail"
#: participant/models.py:42 #: participant/models.py:45
msgid "Will be shown after the name." msgid "Will be shown after the name."
msgstr "Wird nach dem Namen angezeigt." msgstr "Wird nach dem Namen angezeigt."
#: participant/models.py:45 participant/templates/participant/overview.html:24 #: participant/models.py:48 participant/templates/participant/overview.html:24
#: participant/templates/participant/user_detail.html:24 #: participant/templates/participant/user_detail.html:24
#: participant/templates/projector/UserSlide.html:20
msgid "Gender" msgid "Gender"
msgstr "Geschlecht" msgstr "Geschlecht"
#: participant/models.py:45 participant/models.py:48 participant/models.py:51 #: participant/models.py:48 participant/models.py:51 participant/models.py:54
msgid "Only for filtering the participant list." msgid "Only for filtering the participant list."
msgstr "Nur zum Filtern der Teilnehmerliste." msgstr "Nur zum Filtern der Teilnehmerliste."
#: participant/models.py:48 #: participant/models.py:51
msgid "Typ" msgid "Typ"
msgstr "Typ" msgstr "Typ"
#: participant/models.py:50 participant/views.py:245 #: participant/models.py:53 participant/views.py:245
#: participant/templates/participant/overview.html:45 #: participant/templates/participant/overview.html:45
#: participant/templates/participant/overview.html:70 #: participant/templates/participant/overview.html:70
#: participant/templates/participant/user_detail.html:34 #: participant/templates/participant/user_detail.html:34
#: participant/templates/projector/UserSlide.html:28
msgid "Committee" msgid "Committee"
msgstr "Amt" msgstr "Amt"
#: participant/models.py:53 #: participant/models.py:56
#: participant/templates/participant/user_detail.html:39 #: participant/templates/participant/user_detail.html:39
msgid "About me" msgid "About me"
msgstr "Über mich" msgstr "Über mich"
#: participant/models.py:54 #: participant/models.py:57
msgid "Your profile text" msgid "Your profile text"
msgstr "Ihr Profiltext" msgstr "Ihr Profiltext"
#: participant/models.py:57 #: participant/models.py:60
msgid "Only for notes." msgid "Only for notes."
msgstr "Nur für Notizen." msgstr "Nur für Notizen."
#: participant/models.py:60 #: participant/models.py:63
msgid "Default password" msgid "Default password"
msgstr "Vorgegebenes Passwort" msgstr "Vorgegebenes Passwort"
#: participant/models.py:108 #: participant/models.py:111
msgid "Can see participant" msgid "Can see participant"
msgstr "Darf die Teilnehmer/inen sehen" msgstr "Darf die Teilnehmer/inen sehen"
#: participant/models.py:110 #: participant/models.py:113
msgid "Can manage participant" msgid "Can manage participant"
msgstr "Darf die Teilnehmer/inen verwalten" msgstr "Darf die Teilnehmer/inen verwalten"
#: participant/models.py:119 #: participant/models.py:132
msgid "Use this group as participant" msgid "Use this group as participant"
msgstr "Verwende diese Gruppe als Teilnehmer/in" msgstr "Verwende diese Gruppe als Teilnehmer/in"
#: participant/models.py:119 #: participant/models.py:132
msgid "For example as submitter of a motion." msgid "For example as submitter of a motion."
msgstr "Zum Beispiel als Antragsteller." msgstr "Zum Beispiel als Antragsteller."
#: participant/models.py:201 #: participant/models.py:214
msgid "Welcome to OpenSlides!" msgid "Welcome to OpenSlides!"
msgstr "Willkommen bei OpenSlides!" msgstr "Willkommen bei OpenSlides!"
@ -1863,6 +1867,7 @@ msgstr "Gruppe"
#: participant/views.py:244 participant/templates/participant/overview.html:37 #: participant/views.py:244 participant/templates/participant/overview.html:37
#: participant/templates/participant/overview.html:69 #: participant/templates/participant/overview.html:69
#: participant/templates/participant/user_detail.html:29 #: participant/templates/participant/user_detail.html:29
#: participant/templates/projector/UserSlide.html:24
msgid "Type" msgid "Type"
msgstr "Typ" msgstr "Typ"
@ -1937,10 +1942,6 @@ msgstr "Passwort wurde erfolgreich geändert."
msgid "My motions and elections" msgid "My motions and elections"
msgstr "Meine Anträge und Wahlen" msgstr "Meine Anträge und Wahlen"
#: participant/views.py:576
msgid "Users"
msgstr "Benutzer"
#: participant/templates/participant/base_participant.html:15 #: participant/templates/participant/base_participant.html:15
msgid "All participants" msgid "All participants"
msgstr "Alle Teilnehmer/innen" msgstr "Alle Teilnehmer/innen"
@ -2142,6 +2143,7 @@ msgid "I am candidate for the following elections:"
msgstr "Ich bin Kandidat/in bei folgenden Wahlen:" msgstr "Ich bin Kandidat/in bei folgenden Wahlen:"
#: participant/templates/participant/user_detail.html:19 #: participant/templates/participant/user_detail.html:19
#: participant/templates/projector/UserSlide.html:16
msgid "The participant is not member of any group." msgid "The participant is not member of any group."
msgstr "Teilnehmer/in ist kein Mitglied einer Gruppe." msgstr "Teilnehmer/in ist kein Mitglied einer Gruppe."

View File

@ -9,7 +9,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: OpenSlides 1.2\n" "Project-Id-Version: OpenSlides 1.2\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-11-07 21:58+0100\n" "POT-Creation-Date: 2012-11-07 22:35+0100\n"
"PO-Revision-Date: 2012-07-28 21:36+0200\n" "PO-Revision-Date: 2012-07-28 21:36+0200\n"
"Last-Translator: Moira Brülisauer <moosline@gmail.com>\n" "Last-Translator: Moira Brülisauer <moosline@gmail.com>\n"
"Language-Team: Französisch <>\n" "Language-Team: Französisch <>\n"
@ -27,8 +27,11 @@ msgstr "Allemand"
msgid "English" msgid "English"
msgstr "Anglais" msgstr "Anglais"
#: global_settings.py:38
msgid "French"
msgstr ""
#: agenda/forms.py:28 #: agenda/forms.py:28
#, fuzzy
msgid "Parent item" msgid "Parent item"
msgstr "Elément parent" msgstr "Elément parent"
@ -424,6 +427,7 @@ msgid "The candidate list is already closed."
msgstr "La liste des candidats est déjà fermée" msgstr "La liste des candidats est déjà fermée"
#: assignment/models.py:94 #: assignment/models.py:94
#, python-format
msgid "%s does not want to be a candidate." msgid "%s does not want to be a candidate."
msgstr "%s ne veut pas etre un candidat" msgstr "%s ne veut pas etre un candidat"
@ -510,20 +514,23 @@ msgstr ""
"nominer comme candidat" "nominer comme candidat"
#: assignment/views.py:218 #: assignment/views.py:218
#, python-format
msgid "Candidate <b>%s</b> was withdrawn successfully." msgid "Candidate <b>%s</b> was withdrawn successfully."
msgstr "Le candidat <b>%s</b> a été rejeté avec succès." msgstr "Le candidat <b>%s</b> a été rejeté avec succès."
#: assignment/views.py:220 #: assignment/views.py:220
#, python-format
msgid "<b>%s</b> was unblocked successfully." msgid "<b>%s</b> was unblocked successfully."
msgstr "Le candidat <b>%s</b> a été nominé avec succès." msgstr "Le candidat <b>%s</b> a été nominé avec succès."
#: assignment/views.py:224 #: assignment/views.py:224
#, python-format
msgid "Do you really want to withdraw <b>%s</b> from the election?" msgid "Do you really want to withdraw <b>%s</b> from the election?"
msgstr "Voulez-vous vraiment exclure <b>%s</b> de cette élection?" msgstr "Voulez-vous vraiment exclure <b>%s</b> de cette élection?"
#: assignment/views.py:226 #: assignment/views.py:226
#, fuzzy, python-format #, python-format
msgid "Do you really want to unblock <b>%s</b> from the election?" msgid "Do you really want to unblock <b>%s</b> for the election?"
msgstr "" msgstr ""
"Voulez-vous vraiment repermettre a participer <b>%s</b> à cette élection?" "Voulez-vous vraiment repermettre a participer <b>%s</b> à cette élection?"
@ -652,6 +659,7 @@ msgstr[0] "%d candidat"
msgstr[1] "%d candidats" msgstr[1] "%d candidats"
#: assignment/views.py:545 #: assignment/views.py:545
#, python-format
msgid "%d available post" msgid "%d available post"
msgid_plural "%d available posts" msgid_plural "%d available posts"
msgstr[0] "%d postes disponibles" msgstr[0] "%d postes disponibles"
@ -1118,6 +1126,7 @@ msgid "Supporter: -%s"
msgstr "Partisants: -%s" msgstr "Partisants: -%s"
#: motion/models.py:295 #: motion/models.py:295
#, python-format
msgid "Number set: %s" msgid "Number set: %s"
msgstr "Numéro inséré: %s" msgstr "Numéro inséré: %s"
@ -1277,7 +1286,6 @@ msgstr ""
"Vous supportez maintenant cette motion, vous avez vous ajouté avec succès." "Vous supportez maintenant cette motion, vous avez vous ajouté avec succès."
#: motion/views.py:417 #: motion/views.py:417
msgid "You have unsupported this motion successfully." msgid "You have unsupported this motion successfully."
msgstr "Vous avez retiré votre support pour cette motion avec succès. " msgstr "Vous avez retiré votre support pour cette motion avec succès. "
@ -1432,6 +1440,7 @@ msgid "Poll"
msgstr "Sondage" msgstr "Sondage"
#: motion/views.py:851 #: motion/views.py:851
#, python-format
msgid "Motion No. %s" msgid "Motion No. %s"
msgstr "Motion No %s" msgstr "Motion No %s"
@ -1624,7 +1633,7 @@ msgid "Not permit (reject)"
msgstr "Non autorisé (rejeter)" msgstr "Non autorisé (rejeter)"
#: motion/templates/motion/view.html:157 #: motion/templates/motion/view.html:157
msgid "Set Number" msgid "Set number"
msgstr "Insérer un numéro" msgstr "Insérer un numéro"
#: motion/templates/motion/view.html:164 #: motion/templates/motion/view.html:164
@ -1636,7 +1645,7 @@ msgid "Result after debate"
msgstr "Résultat après la discussion" msgstr "Résultat après la discussion"
#: motion/templates/motion/view.html:189 #: motion/templates/motion/view.html:189
msgid "Withdrawed by Submitter" msgid "Withdrawed by submitter"
msgstr "Retiré par le requérant" msgstr "Retiré par le requérant"
#: motion/templates/motion/view.html:194 #: motion/templates/motion/view.html:194
@ -1746,12 +1755,10 @@ msgstr ""
"Imprimé dans le PDF avec la liste des premiers mots de passe seulement." "Imprimé dans le PDF avec la liste des premiers mots de passe seulement."
#: participant/forms.py:118 #: participant/forms.py:118
#, fuzzy
msgid "Sort participants by first name" msgid "Sort participants by first name"
msgstr "" msgstr ""
#: participant/forms.py:119 #: participant/forms.py:119
#, fuzzy
msgid "Disable for sorting by last name" msgid "Disable for sorting by last name"
msgstr "" msgstr ""
@ -1834,7 +1841,6 @@ msgid "Can manage participant"
msgstr "Peut gérer des participants" msgstr "Peut gérer des participants"
#: participant/models.py:119 #: participant/models.py:119
#, fuzzy
msgid "Use this group as participant" msgid "Use this group as participant"
msgstr "" msgstr ""
@ -1911,6 +1917,7 @@ msgid "Do you really want to reset the password?"
msgstr "Voulez-vous vraiment reinitialser le mot de passe?" msgstr "Voulez-vous vraiment reinitialser le mot de passe?"
#: participant/views.py:378 #: participant/views.py:378
#, python-format
msgid "The Password for %s was successfully reset." msgid "The Password for %s was successfully reset."
msgstr "Le mot de passe de %s a été initialisé avec succès" msgstr "Le mot de passe de %s a été initialisé avec succès"
@ -1921,6 +1928,7 @@ msgstr ""
"succès" "succès"
#: participant/views.py:467 #: participant/views.py:467
#, python-format
msgid "" msgid ""
"Installation was successfully! Use %(user)s (password: %(password)s) for " "Installation was successfully! Use %(user)s (password: %(password)s) for "
"first login.<br><strong>Important:</strong> Please change the password after " "first login.<br><strong>Important:</strong> Please change the password after "
@ -1942,7 +1950,6 @@ msgid "Password successfully changed."
msgstr "Le mot de passe a été changé avec succès." msgstr "Le mot de passe a été changé avec succès."
#: participant/views.py:562 #: participant/views.py:562
#, fuzzy
msgid "My motions and elections" msgid "My motions and elections"
msgstr "" msgstr ""
@ -1985,9 +1992,8 @@ msgid "First time passwords as PDF"
msgstr "La liste des premiers mots de passe en PDF" msgstr "La liste des premiers mots de passe en PDF"
#: participant/templates/participant/base_participant.html:38 #: participant/templates/participant/base_participant.html:38
#, fuzzy
msgid "View participant" msgid "View participant"
msgstr "Nouveau participant" msgstr "Afficher participant"
#: participant/templates/participant/base_participant.html:45 #: participant/templates/participant/base_participant.html:45
#: participant/templates/participant/edit.html:8 #: participant/templates/participant/edit.html:8
@ -2002,9 +2008,8 @@ msgid "Delete participant"
msgstr "Supprimer le participant" msgstr "Supprimer le participant"
#: participant/templates/participant/base_participant.html:60 #: participant/templates/participant/base_participant.html:60
#, fuzzy
msgid "View group" msgid "View group"
msgstr "Modifier le groupe" msgstr "Afficher le groupe"
#: participant/templates/participant/base_participant.html:65 #: participant/templates/participant/base_participant.html:65
#: participant/templates/participant/group_edit.html:8 #: participant/templates/participant/group_edit.html:8
@ -2135,7 +2140,6 @@ msgid "Personal Settings"
msgstr "Paramètres personnels" msgstr "Paramètres personnels"
#: participant/templates/participant/personal_info_widget.html:5 #: participant/templates/participant/personal_info_widget.html:5
#, fuzzy
msgid "I submitted the following motions:" msgid "I submitted the following motions:"
msgstr "" msgstr ""
@ -2146,12 +2150,10 @@ msgid "None"
msgstr "" msgstr ""
#: participant/templates/participant/personal_info_widget.html:24 #: participant/templates/participant/personal_info_widget.html:24
#, fuzzy
msgid "I support the following motions:" msgid "I support the following motions:"
msgstr "" msgstr ""
#: participant/templates/participant/personal_info_widget.html:43 #: participant/templates/participant/personal_info_widget.html:43
#, fuzzy
msgid "I am candidate for the following elections:" msgid "I am candidate for the following elections:"
msgstr "" msgstr ""

View File

@ -154,7 +154,7 @@
<a href='{% url motion_notpermit motion.id %}'><span class="button"><span class="icon reject">{% trans 'Not permit (reject)' %}</span></span></a> <a href='{% url motion_notpermit motion.id %}'><span class="button"><span class="icon reject">{% trans 'Not permit (reject)' %}</span></span></a>
{% endif %} {% endif %}
{% if "setnumber" in actions %} {% if "setnumber" in actions %}
<a href='{% url motion_set_number motion.id %}'><span class="button"><span class="icon number">{% trans 'Set Number' %}</span></span></a> <a href='{% url motion_set_number motion.id %}'><span class="button"><span class="icon number">{% trans 'Set number' %}</span></span></a>
{% endif %} {% endif %}
</p> </p>
{% endif %} {% endif %}
@ -186,7 +186,7 @@
<a href='{% url motion_set_status motion.id 'com' %}'><span class="button">{% trans 'Commited a bill' %}</span></a><br> <a href='{% url motion_set_status motion.id 'com' %}'><span class="button">{% trans 'Commited a bill' %}</span></a><br>
{% endif %} {% endif %}
{% if "wit" in actions %} {% if "wit" in actions %}
<a href='{% url motion_set_status motion.id 'wit' %}'><span class="button">{% trans 'Withdrawed by Submitter' %}</span></a> <a href='{% url motion_set_status motion.id 'wit' %}'><span class="button">{% trans 'Withdrawed by submitter' %}</span></a>
{% endif %} {% endif %}
{% endif %} {% endif %}
<p></p> <p></p>

View File

@ -925,6 +925,7 @@ def get_widgets(request):
return [ return [
Widget( Widget(
name='motions', name='motions',
display_name=_('Motions'),
template='motion/widget.html', template='motion/widget.html',
context={'motions': Motion.objects.all()}, context={'motions': Motion.objects.all()},
permission_required='motion.can_manage_motion')] permission_required='motion.can_manage_motion')]

View File

@ -22,8 +22,11 @@ from openslides.utils.person.signals import receive_persons
from openslides.config.models import config from openslides.config.models import config
from openslides.config.signals import default_config_value from openslides.config.signals import default_config_value
from openslides.projector.api import register_slidemodel
from openslides.projector.projector import SlideMixin
class User(DjangoUser, PersonMixin, Person): class User(DjangoUser, PersonMixin, Person, SlideMixin):
prefix = 'user' # This is for the slides
person_prefix = 'user' person_prefix = 'user'
GENDER_CHOICES = ( GENDER_CHOICES = (
('male', _('Male')), ('male', _('Male')),
@ -111,6 +114,16 @@ class User(DjangoUser, PersonMixin, Person):
) )
ordering = ('last_name',) ordering = ('last_name',)
def slide(self):
"""
Returns a map with the data for the slides.
"""
return {
'shown_user': self,
'title': self.clean_name,
'template': 'projector/UserSlide.html'}
register_slidemodel(User)
class Group(DjangoGroup, PersonMixin, Person): class Group(DjangoGroup, PersonMixin, Person):
person_prefix = 'group' person_prefix = 'group'

View File

@ -0,0 +1,43 @@
{% extends "base-projector.html" %}
{% load i18n %}
{% load tags %}
{% block title %}{{ block.super }} - {{ title }}{% endblock %}
{% block content %}
<div id='sidebar'>
<div class='box'>
<p><strong>{% trans "Groups" %}</strong><br />
{% for group in shown_user.groups.all %}
{{ group }},
{% empty %}
{% trans "The participant is not member of any group." %}
{% endfor %}
</p>
{% if shown_user.get_gender_display %}
<p><strong>{% trans "Gender" %}</strong><br />{{ shown_user.get_gender_display }}</p>
{% endif %}
{% if shown_user.get_type_display %}
<p><strong>{% trans "Type" %}</strong><br />{{ shown_user.get_type_display }}</p>
{% endif %}
{% if shown_user.committee %}
<p><strong>{% trans "Committee" %}</strong><br />{{ shown_user.committee }}</p>
{% endif %}
</div>
</div>
<h1>{{ shown_user }}</h1>
<p>{{ shown_user.email }}</p>
{% endblock %}
{% block scrollcontent %}
<p>
<div class="text">{{ shown_user.about_me|linebreaks }}</div>
</p>
{% endblock %}

View File

@ -255,7 +255,7 @@ class ParticipantsListPDF(PDFView):
Paragraph(user.last_name, stylesheet['Tablecell']), Paragraph(user.last_name, stylesheet['Tablecell']),
Paragraph(user.first_name, stylesheet['Tablecell']), Paragraph(user.first_name, stylesheet['Tablecell']),
Paragraph(user.detail, stylesheet['Tablecell']), Paragraph(user.detail, stylesheet['Tablecell']),
Paragraph(_(user.type), stylesheet['Tablecell']), Paragraph(user.type, stylesheet['Tablecell']),
Paragraph(user.committee, stylesheet['Tablecell'])]) Paragraph(user.committee, stylesheet['Tablecell'])])
t = LongTable(data, style=[ t = LongTable(data, style=[
('VALIGN', (0, 0), (-1, -1), 'TOP'), ('VALIGN', (0, 0), (-1, -1), 'TOP'),
@ -573,7 +573,7 @@ def get_user_widget(request):
""" """
return Widget( return Widget(
name='user', name='user',
display_name=_('Users'), display_name=_('Participants'),
template='participant/user_widget.html', template='participant/user_widget.html',
context={'users': User.objects.all(),}, context={'users': User.objects.all(),},
permission_required='projector.can_manage_projector', permission_required='projector.can_manage_projector',