Agenda orga items and time scheduling: Formatting improved. Use permission 'can_see_orga_items' also to show/hide duration column and agenda time scheduling.

This commit is contained in:
Emanuel Schuetze 2013-02-01 12:55:04 +01:00
parent 4cea530917
commit d3b679442c
9 changed files with 54 additions and 50 deletions

View File

@ -63,8 +63,8 @@ class ItemOrderForm(forms.Form, CssClassMixin):
class ConfigForm(forms.Form, CssClassMixin): class ConfigForm(forms.Form, CssClassMixin):
agenda_start_event_time = forms.TimeField( agenda_start_event_time = forms.TimeField(
widget=forms.TimeInput(format='%H:%M') , widget=forms.TimeInput(format='%H:%M'),
input_formats=('%H:%M', '%H:%M:%S'), input_formats=['%H:%M'],
required=False, required=False,
label=_("Begin of event (hh:mm)"), label=_("Begin of event (hh:mm)"),
) )

View File

@ -181,7 +181,7 @@ class Item(MPTTModel, SlideMixin):
permissions = ( permissions = (
('can_see_agenda', ugettext_noop("Can see agenda")), ('can_see_agenda', ugettext_noop("Can see agenda")),
('can_manage_agenda', ugettext_noop("Can manage agenda")), ('can_manage_agenda', ugettext_noop("Can manage agenda")),
('can_see_orga_items', ugettext_noop("Can see orga items")), ('can_see_orga_items', ugettext_noop("Can see orga items and time scheduling of agenda")),
) )
class MPTTMeta: class MPTTMeta:

View File

@ -25,6 +25,9 @@ table#menu-overview {
table#agendatime { table#agendatime {
float: right; float: right;
width: 15%; width: 25%;
margin-bottom: 1em; margin-bottom: 1em;
}
table#agendatime td {
padding: 5px;
} }

View File

@ -20,17 +20,20 @@
{% if perms.agenda.can_manage_agenda %} {% if perms.agenda.can_manage_agenda %}
<div class="dragcell"></div> <div class="dragcell"></div>
{% endif %} {% endif %}
<a href="{% model_url item 'view' %}">{{ item }}</a> <a href="{% model_url item 'view' %}">{% if item.type == "org" %}<i>[{% endif %}{{ item }}{% if item.type == "org" %}]</i>{% endif %}</a>
{{ item.get_title_supplement|safe }} {{ item.get_title_supplement|safe }}
</td> </td>
{% if perms.agenda.can_manage_agenda %} {% if perms.agenda.can_manage_agenda %}
<td> <td>
{{ item.comment|first_line }} {{ item.comment|first_line }}
</td> </td>
{% endif %}
{% if perms.agenda.can_see_orga_items %}
<td> <td>
{{ item.duration|time:"H:i" }} {% if item.duration %}
{{ item.duration|time:"H:i" }}h
{% endif %}
</td> </td>
{% endif %} {% endif %}
{% if perms.agenda.can_manage_agenda or perms.projector.can_manage_projector %} {% if perms.agenda.can_manage_agenda or perms.projector.can_manage_projector %}
<td> <td>

View File

@ -49,17 +49,20 @@
</div> </div>
{% endif %} {% endif %}
<h1>{% trans "Agenda" %}</h1> <h1>{% trans "Agenda" %}
<table id="agendatime"> {% if perms.agenda.can_see_orga_items %}
<table id="agendatime">
<tr> <tr>
<td>{% trans "Start of event" %}</td> <td>{% trans "Start of event" %}:</td>
<td>{{ start|time:"H:i" }}</td> <td>{{ start|time:"H:i" }}</td>
</tr> </tr>
<tr> <tr>
<td>{% trans "Estimated end" %}</td> <td>{% trans "Estimated end" %}:</td>
<td>{{ end|time:"H:i" }}</td> <td>{{ end|time:"H:i" }}</td>
</tr> </tr>
</table> </table>
{% endif %}
</h1>
<p> <p>
{% trans "Filter" %}: {% trans "Filter" %}:
<input type="checkbox" id="hide_closed_items"> {% trans "Hide closed items" %} <input type="checkbox" id="hide_closed_items"> {% trans "Hide closed items" %}
@ -73,7 +76,7 @@
{% if perms.agenda.can_manage_agenda %} {% if perms.agenda.can_manage_agenda %}
<th width="200">{% trans "Comment" %}</th> <th width="200">{% trans "Comment" %}</th>
{% endif %} {% endif %}
{% if perms.agenda.can_manage_agenda %} {% if perms.agenda.can_see_orga_items %}
<th width="50">{% trans "Duration" %}</th> <th width="50">{% trans "Duration" %}</th>
{% endif %} {% endif %}
{% if perms.agenda.can_manage_agenda or perms.projector.can_manage_projector %} {% if perms.agenda.can_manage_agenda or perms.projector.can_manage_projector %}
@ -90,7 +93,9 @@
</td> </td>
{% if perms.agenda.can_manage_agenda %} {% if perms.agenda.can_manage_agenda %}
<td></td> <td></td>
<td>{{ duration|time:"H:i" }}</td> {% endif %}
{% if perms.agenda.can_see_orga_items %}
<td>{{duration|time:"H:i"}}h</td>
{% endif %} {% endif %}
{% if perms.agenda.can_manage_agenda or perms.projector.can_manage_projector %} {% if perms.agenda.can_manage_agenda or perms.projector.can_manage_projector %}
<td> <td>

View File

@ -39,7 +39,7 @@
{% for p in item.get_ancestors %} {% for p in item.get_ancestors %}
<span class="indentation">&nbsp;</span> <span class="indentation">&nbsp;</span>
{% endfor %} {% endfor %}
<a href="{% model_url item 'view' %}">{{ item }}</a> <a href="{% model_url item 'view' %}">{% if item.type == "org" %}<i>[{% endif %}{{ item }}{% if item.type == "org" %}]</i>{% endif %}</a>
{{ item.get_title_supplement|safe }} {{ item.get_title_supplement|safe }}
</li> </li>
{% empty %} {% empty %}

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: 2013-01-30 17:20+0100\n" "POT-Creation-Date: 2013-01-30 21:40+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"
@ -33,9 +33,13 @@ msgstr "Französisch"
msgid "Parent item" msgid "Parent item"
msgstr "Elternelement" msgstr "Elternelement"
#: agenda/forms.py:64 #: agenda/forms.py:34 agenda/models.py:49
msgid "Duration (hh:mm)"
msgstr "Dauer (hh:mm)"
#: agenda/forms.py:69
msgid "Begin of event (hh:mm)" msgid "Begin of event (hh:mm)"
msgstr "Beginn der Veranstaltung (ss:mm)" msgstr "Beginn der Veranstaltung (hh:mm)"
#: agenda/models.py:35 #: agenda/models.py:35
msgid "Agenda item" msgid "Agenda item"
@ -56,7 +60,7 @@ msgstr "Titel"
msgid "Text" msgid "Text"
msgstr "Text" msgstr "Text"
#: agenda/models.py:41 agenda/templates/agenda/overview.html:74 #: agenda/models.py:41 agenda/templates/agenda/overview.html:77
#: agenda/templates/agenda/view.html:13 participant/models.py:60 #: agenda/templates/agenda/view.html:13 participant/models.py:60
#: 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
@ -67,7 +71,7 @@ msgstr "Kommentar"
msgid "Closed" msgid "Closed"
msgstr "Abgeschlossen" msgstr "Abgeschlossen"
#: agenda/models.py:43 agenda/templates/agenda/overview.html:83 #: agenda/models.py:43 agenda/templates/agenda/overview.html:86
#: projector/models.py:31 #: projector/models.py:31
msgid "Weight" msgid "Weight"
msgstr "Gewichtung" msgstr "Gewichtung"
@ -79,10 +83,6 @@ msgstr "Gewichtung"
msgid "Type" msgid "Type"
msgstr "Typ" msgstr "Typ"
#: agenda/models.py:49
msgid "Duration (hh:mm)"
msgstr "Dauer (ss:mm)"
#: agenda/models.py:182 #: agenda/models.py:182
msgid "Can see agenda" msgid "Can see agenda"
msgstr "Darf die Tagesordnung sehen" msgstr "Darf die Tagesordnung sehen"
@ -92,15 +92,15 @@ msgid "Can manage agenda"
msgstr "Darf die Tagesordung verwalten" msgstr "Darf die Tagesordung verwalten"
#: agenda/models.py:184 #: agenda/models.py:184
msgid "Can see orga items" msgid "Can see orga items and time scheduling of agenda"
msgstr "Darf Organisationspunkte sehen" msgstr "Darf Organisationspunkte und Tagesordnung-Zeitplan sehen"
#: agenda/models.py:194 agenda/slides.py:20 agenda/views.py:219 #: agenda/models.py:194 agenda/slides.py:20 agenda/views.py:219
#: agenda/views.py:220 agenda/views.py:257 agenda/views.py:271 #: agenda/views.py:220 agenda/views.py:257 agenda/views.py:271
#: 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
#: agenda/templates/agenda/overview.html:89 #: agenda/templates/agenda/overview.html:92
#: agenda/templates/projector/AgendaSummary.html:6 #: agenda/templates/projector/AgendaSummary.html:6
#: agenda/templates/projector/AgendaSummary.html:10 #: agenda/templates/projector/AgendaSummary.html:10
msgid "Agenda" msgid "Agenda"
@ -161,12 +161,12 @@ msgstr "Eintrag anzeigen"
#: agenda/templates/agenda/base_agenda.html:31 #: agenda/templates/agenda/base_agenda.html:31
#: agenda/templates/agenda/edit.html:8 agenda/templates/agenda/edit.html:16 #: agenda/templates/agenda/edit.html:8 agenda/templates/agenda/edit.html:16
#: agenda/templates/agenda/item_row.html:44 #: agenda/templates/agenda/item_row.html:47
msgid "Edit item" msgid "Edit item"
msgstr "Eintrag bearbeiten" msgstr "Eintrag bearbeiten"
#: agenda/templates/agenda/base_agenda.html:33 #: agenda/templates/agenda/base_agenda.html:33
#: agenda/templates/agenda/item_row.html:45 #: agenda/templates/agenda/item_row.html:48
msgid "Delete item" msgid "Delete item"
msgstr "Eintrag löschen" msgstr "Eintrag löschen"
@ -243,12 +243,12 @@ msgstr "Eintrag als erledigt markieren"
msgid "Item closed" msgid "Item closed"
msgstr "Eintrag erledigt" msgstr "Eintrag erledigt"
#: agenda/templates/agenda/item_row.html:39 #: agenda/templates/agenda/item_row.html:42
#: agenda/templates/agenda/overview.html:99 #: agenda/templates/agenda/overview.html:104
msgid "Activate item" msgid "Activate item"
msgstr "Eintrag projizieren" msgstr "Eintrag projizieren"
#: agenda/templates/agenda/item_row.html:48 #: agenda/templates/agenda/item_row.html:51
#: agenda/templates/agenda/widget.html:35 #: agenda/templates/agenda/widget.html:35
msgid "Activate summary for this item" msgid "Activate summary for this item"
msgstr "Zusammenfassung für diesen Eintrag projizieren" msgstr "Zusammenfassung für diesen Eintrag projizieren"
@ -279,44 +279,44 @@ msgstr "Ja"
msgid "No" msgid "No"
msgstr "Nein" msgstr "Nein"
#: agenda/templates/agenda/overview.html:55 #: agenda/templates/agenda/overview.html:56
msgid "Start of event" msgid "Start of event"
msgstr "Beginn der Veranstaltung" msgstr "Beginn der Veranstaltung"
#: agenda/templates/agenda/overview.html:59 #: agenda/templates/agenda/overview.html:60
msgid "Estimated end" msgid "Estimated end"
msgstr "Voraussichtliches Ende" msgstr "Voraussichtliches Ende"
#: agenda/templates/agenda/overview.html:64 #: agenda/templates/agenda/overview.html:67
#: assignment/templates/assignment/overview.html:12 #: assignment/templates/assignment/overview.html:12
#: motion/templates/motion/overview.html:12 #: motion/templates/motion/overview.html:12
#: participant/templates/participant/overview.html:22 #: participant/templates/participant/overview.html:22
msgid "Filter" msgid "Filter"
msgstr "Filter" msgstr "Filter"
#: agenda/templates/agenda/overview.html:65 #: agenda/templates/agenda/overview.html:68
msgid "Hide closed items" msgid "Hide closed items"
msgstr "Verstecke abgeschlossene Einträge" msgstr "Verstecke abgeschlossene Einträge"
#: agenda/templates/agenda/overview.html:68 #: agenda/templates/agenda/overview.html:71
msgid "item" msgid "item"
msgid_plural "items" msgid_plural "items"
msgstr[0] "Eintrag" msgstr[0] "Eintrag"
msgstr[1] "Einträge" msgstr[1] "Einträge"
#: agenda/templates/agenda/overview.html:71 #: agenda/templates/agenda/overview.html:74
msgid "Done" msgid "Done"
msgstr "Erledigt" msgstr "Erledigt"
#: agenda/templates/agenda/overview.html:72 #: agenda/templates/agenda/overview.html:75
msgid "Item" msgid "Item"
msgstr "Eintrag" msgstr "Eintrag"
#: agenda/templates/agenda/overview.html:77 #: agenda/templates/agenda/overview.html:80
msgid "Duration" msgid "Duration"
msgstr "Dauer" msgstr "Dauer"
#: agenda/templates/agenda/overview.html:80 #: agenda/templates/agenda/overview.html:83
#: assignment/templates/assignment/overview.html:28 #: assignment/templates/assignment/overview.html:28
#: motion/templates/motion/overview.html:43 #: motion/templates/motion/overview.html:43
#: participant/templates/participant/group_overview.html:14 #: participant/templates/participant/group_overview.html:14
@ -324,7 +324,7 @@ msgstr "Dauer"
msgid "Actions" msgid "Actions"
msgstr "Aktionen" msgstr "Aktionen"
#: agenda/templates/agenda/overview.html:115 #: agenda/templates/agenda/overview.html:120
#: agenda/templates/agenda/widget.html:46 #: agenda/templates/agenda/widget.html:46
#: projector/templates/projector/custom_slide_widget.html:36 #: projector/templates/projector/custom_slide_widget.html:36
msgid "No items available." msgid "No items available."
@ -2421,11 +2421,3 @@ msgstr "undefinierter-dateiname"
msgid "Enter valid JSON" msgid "Enter valid JSON"
msgstr "Gebe valides JSON ein" msgstr "Gebe valides JSON ein"
#~ msgid "Visible to all"
#~ msgstr "Für alle sichtbar"
#~ msgid "Moderators only"
#~ msgstr "Nur für Moderatoren"
#~ msgid "Visibility"
#~ msgstr "Sichtbarkeit"

View File

@ -318,6 +318,7 @@ input[type="submit"], input[type="button"] {
} }
#id_permissions, #id_users { #id_permissions, #id_users {
height: 310px; height: 310px;
width: 412px;
} }
.button { .button {
border: 1px solid #D3D3D3; border: 1px solid #D3D3D3;