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):
agenda_start_event_time = forms.TimeField(
widget=forms.TimeInput(format='%H:%M') ,
input_formats=('%H:%M', '%H:%M:%S'),
widget=forms.TimeInput(format='%H:%M'),
input_formats=['%H:%M'],
required=False,
label=_("Begin of event (hh:mm)"),
)

View File

@ -181,7 +181,7 @@ class Item(MPTTModel, SlideMixin):
permissions = (
('can_see_agenda', ugettext_noop("Can see 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:

View File

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

View File

@ -20,17 +20,20 @@
{% if perms.agenda.can_manage_agenda %}
<div class="dragcell"></div>
{% 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 }}
</td>
{% if perms.agenda.can_manage_agenda %}
<td>
{{ item.comment|first_line }}
</td>
{% endif %}
{% if perms.agenda.can_see_orga_items %}
<td>
{{ item.duration|time:"H:i" }}
{% if item.duration %}
{{ item.duration|time:"H:i" }}h
{% endif %}
</td>
{% endif %}
{% if perms.agenda.can_manage_agenda or perms.projector.can_manage_projector %}
<td>

View File

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

View File

@ -39,7 +39,7 @@
{% for p in item.get_ancestors %}
<span class="indentation">&nbsp;</span>
{% 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 }}
</li>
{% empty %}

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: OpenSlides 1.x\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"
"Last-Translator: Emanuel Schuetze <emanuel@intevation.de>\n"
"Language-Team: support@openslides.de\n"
@ -33,9 +33,13 @@ msgstr "Französisch"
msgid "Parent item"
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)"
msgstr "Beginn der Veranstaltung (ss:mm)"
msgstr "Beginn der Veranstaltung (hh:mm)"
#: agenda/models.py:35
msgid "Agenda item"
@ -56,7 +60,7 @@ msgstr "Titel"
msgid "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
#: participant/templates/participant/overview.html:72
#: participant/templates/participant/user_detail.html:45
@ -67,7 +71,7 @@ msgstr "Kommentar"
msgid "Closed"
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
msgid "Weight"
msgstr "Gewichtung"
@ -79,10 +83,6 @@ msgstr "Gewichtung"
msgid "Type"
msgstr "Typ"
#: agenda/models.py:49
msgid "Duration (hh:mm)"
msgstr "Dauer (ss:mm)"
#: agenda/models.py:182
msgid "Can see agenda"
msgstr "Darf die Tagesordnung sehen"
@ -92,15 +92,15 @@ msgid "Can manage agenda"
msgstr "Darf die Tagesordung verwalten"
#: agenda/models.py:184
msgid "Can see orga items"
msgstr "Darf Organisationspunkte sehen"
msgid "Can see orga items and time scheduling of agenda"
msgstr "Darf Organisationspunkte und Tagesordnung-Zeitplan sehen"
#: 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/templates/agenda/base_agenda.html:10
#: agenda/templates/agenda/overview.html:8
#: 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:10
msgid "Agenda"
@ -161,12 +161,12 @@ msgstr "Eintrag anzeigen"
#: agenda/templates/agenda/base_agenda.html:31
#: 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"
msgstr "Eintrag bearbeiten"
#: agenda/templates/agenda/base_agenda.html:33
#: agenda/templates/agenda/item_row.html:45
#: agenda/templates/agenda/item_row.html:48
msgid "Delete item"
msgstr "Eintrag löschen"
@ -243,12 +243,12 @@ msgstr "Eintrag als erledigt markieren"
msgid "Item closed"
msgstr "Eintrag erledigt"
#: agenda/templates/agenda/item_row.html:39
#: agenda/templates/agenda/overview.html:99
#: agenda/templates/agenda/item_row.html:42
#: agenda/templates/agenda/overview.html:104
msgid "Activate item"
msgstr "Eintrag projizieren"
#: agenda/templates/agenda/item_row.html:48
#: agenda/templates/agenda/item_row.html:51
#: agenda/templates/agenda/widget.html:35
msgid "Activate summary for this item"
msgstr "Zusammenfassung für diesen Eintrag projizieren"
@ -279,44 +279,44 @@ msgstr "Ja"
msgid "No"
msgstr "Nein"
#: agenda/templates/agenda/overview.html:55
#: agenda/templates/agenda/overview.html:56
msgid "Start of event"
msgstr "Beginn der Veranstaltung"
#: agenda/templates/agenda/overview.html:59
#: agenda/templates/agenda/overview.html:60
msgid "Estimated end"
msgstr "Voraussichtliches Ende"
#: agenda/templates/agenda/overview.html:64
#: agenda/templates/agenda/overview.html:67
#: assignment/templates/assignment/overview.html:12
#: motion/templates/motion/overview.html:12
#: participant/templates/participant/overview.html:22
msgid "Filter"
msgstr "Filter"
#: agenda/templates/agenda/overview.html:65
#: agenda/templates/agenda/overview.html:68
msgid "Hide closed items"
msgstr "Verstecke abgeschlossene Einträge"
#: agenda/templates/agenda/overview.html:68
#: agenda/templates/agenda/overview.html:71
msgid "item"
msgid_plural "items"
msgstr[0] "Eintrag"
msgstr[1] "Einträge"
#: agenda/templates/agenda/overview.html:71
#: agenda/templates/agenda/overview.html:74
msgid "Done"
msgstr "Erledigt"
#: agenda/templates/agenda/overview.html:72
#: agenda/templates/agenda/overview.html:75
msgid "Item"
msgstr "Eintrag"
#: agenda/templates/agenda/overview.html:77
#: agenda/templates/agenda/overview.html:80
msgid "Duration"
msgstr "Dauer"
#: agenda/templates/agenda/overview.html:80
#: agenda/templates/agenda/overview.html:83
#: assignment/templates/assignment/overview.html:28
#: motion/templates/motion/overview.html:43
#: participant/templates/participant/group_overview.html:14
@ -324,7 +324,7 @@ msgstr "Dauer"
msgid "Actions"
msgstr "Aktionen"
#: agenda/templates/agenda/overview.html:115
#: agenda/templates/agenda/overview.html:120
#: agenda/templates/agenda/widget.html:46
#: projector/templates/projector/custom_slide_widget.html:36
msgid "No items available."
@ -2421,11 +2421,3 @@ msgstr "undefinierter-dateiname"
msgid "Enter valid JSON"
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 {
height: 310px;
width: 412px;
}
.button {
border: 1px solid #D3D3D3;