From fdc83048f412a144bf19f323ef2568f1fbbff277 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Tue, 10 Apr 2012 20:09:10 +0200 Subject: [PATCH] More AJAX for projector control template. Moved projector stuff from agenda overview to new control page. --- openslides/agenda/models.py | 2 +- .../agenda/templates/agenda/item_row.html | 31 ++------ .../agenda/templates/agenda/overview.html | 20 +---- .../templates/projector/control.html | 35 ++------- openslides/projector/urls.py | 6 ++ openslides/static/javascript/agenda.js | 60 --------------- .../static/javascript/projector-control.js | 68 +---------------- openslides/static/styles/agenda.css | 61 --------------- .../static/styles/projector-control.css | 76 +++++++++++++++++++ openslides/static/styles/projector.css | 3 +- 10 files changed, 107 insertions(+), 255 deletions(-) create mode 100644 openslides/static/styles/projector-control.css diff --git a/openslides/agenda/models.py b/openslides/agenda/models.py index 8e9efa75c..58a99f78d 100644 --- a/openslides/agenda/models.py +++ b/openslides/agenda/models.py @@ -139,4 +139,4 @@ register_slidemodel(Item, category=_('Agenda'), model_name=_('Agenda Item')) from projector.api import register_slidefunc from agenda.slides import agenda_show -register_slidefunc('agenda_show', agenda_show, category=_('Agenda')) +register_slidefunc(_('Agenda'), agenda_show, category=_('Agenda')) diff --git a/openslides/agenda/templates/agenda/item_row.html b/openslides/agenda/templates/agenda/item_row.html index 7b685b90b..7da0a4dc0 100644 --- a/openslides/agenda/templates/agenda/item_row.html +++ b/openslides/agenda/templates/agenda/item_row.html @@ -1,45 +1,30 @@ {% load i18n %} - - {% if perms.agenda.can_manage_agenda %} - - -
-
- - {% else %} - - {% if item.closed %} - - {% endif %} - - {% endif %} + + + {% if item.closed %} + + {% endif %} + {% for p in item.get_ancestors %}
 
{% endfor %} - {% if perms.agenda.can_manage_agenda %}
{% endif %} - {{ item }} - - + - {% if perms.agenda.can_manage_agenda %} - {% if item.children.exists %} {% endif %} diff --git a/openslides/agenda/templates/agenda/overview.html b/openslides/agenda/templates/agenda/overview.html index 83a5e8484..39406063e 100644 --- a/openslides/agenda/templates/agenda/overview.html +++ b/openslides/agenda/templates/agenda/overview.html @@ -52,32 +52,20 @@ - {% if perms.agenda.can_manage_agenda %} - - {% else %} - - {% endif %} + {% if perms.agenda.can_manage_agenda %} {% endif %} - - {% if perms.agenda.can_manage_agenda %} - - {% else %} - - {% endif %} + +