diff --git a/openslides/agenda/forms.py b/openslides/agenda/forms.py index 0f27e254c..3578f95c5 100644 --- a/openslides/agenda/forms.py +++ b/openslides/agenda/forms.py @@ -63,7 +63,7 @@ class ItemOrderForm(CssClassMixin, forms.Form): class AppendSpeakerForm(CssClassMixin, forms.Form): speaker = PersonFormField( widget=forms.Select(attrs={'class': 'medium-input'}), - label=ugettext_lazy("Set a person to the speaker list.")) + label=ugettext_lazy("Add participant")) def __init__(self, item, *args, **kwargs): self.item = item @@ -73,6 +73,6 @@ class AppendSpeakerForm(CssClassMixin, forms.Form): speaker = self.cleaned_data['speaker'] if Speaker.objects.filter(person=speaker, item=self.item, time=None).exists(): raise forms.ValidationError(ugettext_lazy( - '%s is allready on the list of speakers.' - % speaker)) + '%s is already on the list of speakers.' + % unicode(speaker))) return speaker diff --git a/openslides/agenda/static/javascript/agenda.js b/openslides/agenda/static/javascript/agenda.js index 9de70b69a..35cb30765 100644 --- a/openslides/agenda/static/javascript/agenda.js +++ b/openslides/agenda/static/javascript/agenda.js @@ -34,15 +34,6 @@ function hideClosedSlides(hide) { return false; } -function toggleOldSpeakers() { - $('#show_old_speakers').toggle(); - $('#old_speakers').toggle(); -} - -$('.toggle_old_speakers > a').click(function() { - toggleOldSpeakers(); -}); - $('#speaker_list_changed_form').submit(function() { $('#sort_order').val($('#list_of_speakers').sortable("toArray")); }); @@ -95,9 +86,6 @@ $(function() { //# $('#hide_closed_items').attr('checked', true); //# } - // List of Speakers - toggleOldSpeakers(); - $('#list_of_speakers').sortable({axis: "y", containment: "parent", update: function(event, ui) { $('#speaker_list_changed_form').show(); }}); diff --git a/openslides/agenda/static/styles/agenda.css b/openslides/agenda/static/styles/agenda.css index 3c6ead5ea..2b8343ac9 100644 --- a/openslides/agenda/static/styles/agenda.css +++ b/openslides/agenda/static/styles/agenda.css @@ -21,3 +21,7 @@ table#agendatime td { padding: 3px; white-space: nowrap; } + +#list_of_speakers li { + line-height: 30px; +} diff --git a/openslides/agenda/templates/agenda/view.html b/openslides/agenda/templates/agenda/view.html index 66d40ee9e..1e5337580 100644 --- a/openslides/agenda/templates/agenda/view.html +++ b/openslides/agenda/templates/agenda/view.html @@ -6,6 +6,10 @@ {% block title %}{{ block.super }} – {{ item.title }}{% endblock %} +{% block header %} + +{% endblock %} + {% block javascript %} {{ block.super }} {% comment %} TODO: import the sortable-plugin in our custom jquery-file {% endcomment %} @@ -19,23 +23,25 @@
@@ -43,90 +49,128 @@ {% if perms.agenda.can_manage_agenda %} {% if item.comment %} -{{ item.comment|linebreaks }}
{% endif %} {% endif %} {# List of Speakers #} -+{% if perms.agenda.can_manage_agenda %} + {% if item.speaker_list_closed %} + {% trans 'Open list' %} + {% else %} + {% trans 'Close list' %} + {% endif %} {% endif %} +{% if perms.projector.can_manage_projector %} + + + {% trans 'Show list' %} + -
+{% endif %} + {% if old_speakers %} - - -{% trans 'The list of speakers is empty' %}
-{% endif %} ++ {% if is_speaker %} + {% trans "Remove me from the list" %} + {% elif not object.speaker_list_closed %} + {% trans "Put me on the list" %} + {% endif %} +
+ {% if perms.can_manage_agenda %} + + {% endif %} -{% if is_speaker %} - {% trans "Remove me vom speakers list." %} -{% elif not object.speaker_list_closed %} - {% trans "Put me on speakers list." %} -{% endif %} - -{% if perms.can_manage_agenda %} - -{% endif %} - +