diff --git a/openslides/agenda/templates/agenda/widget.html b/openslides/agenda/templates/agenda/widget.html
index 23cf8a393..e81142940 100644
--- a/openslides/agenda/templates/agenda/widget.html
+++ b/openslides/agenda/templates/agenda/widget.html
@@ -20,13 +20,19 @@
+
+
+
+
+
+
{% for p in item.get_ancestors %}
{% endfor %}
- {{ item }}
+ {{ item }}
{% endfor %}
diff --git a/openslides/application/templates/application/widget.html b/openslides/application/templates/application/widget.html
index c7b3c29f3..56e8b6bdf 100644
--- a/openslides/application/templates/application/widget.html
+++ b/openslides/application/templates/application/widget.html
@@ -8,10 +8,16 @@
+
+
+
+
+
+
-
+
{% if application.number %}
{% trans 'Application' %} {{ application.number }}:
{% endif %}
diff --git a/openslides/assignment/templates/assignment/widget.html b/openslides/assignment/templates/assignment/widget.html
new file mode 100644
index 000000000..7a56f3354
--- /dev/null
+++ b/openslides/assignment/templates/assignment/widget.html
@@ -0,0 +1,24 @@
+{% load staticfiles %}
+{% load i18n %}
+{% load tags %}
+
+
+
diff --git a/openslides/assignment/views.py b/openslides/assignment/views.py
index 7bb37b44f..27d76e58b 100644
--- a/openslides/assignment/views.py
+++ b/openslides/assignment/views.py
@@ -31,7 +31,7 @@ from utils.pdf import stylesheet
from utils.views import FormView, DeleteView, PDFView, RedirectView
from utils.template import Tab
-from projector.api import get_model_widget
+from projector.projector import Widget
from poll.views import PollFormView
@@ -619,4 +619,7 @@ def register_tab(request):
def get_widgets(request):
- return [get_model_widget(name='assignments', model=Assignment)]
+ return [
+ Widget(name='assignments', template='assignment/widget.html',
+ context={'assignments': Assignment.objects.all()})
+ ]
diff --git a/openslides/projector/api.py b/openslides/projector/api.py
index 295a4b370..3efe3cdb3 100644
--- a/openslides/projector/api.py
+++ b/openslides/projector/api.py
@@ -122,13 +122,3 @@ def projector_message_set(message, sid=None):
def projector_message_delete():
config['projector_message'] = ''
-
-
-def get_model_widget(name, model):
- return Widget(
- name=name,
- template='projector/model_widget.html',
- context={
- 'slides': model.objects.all(),
- }
- )
diff --git a/openslides/projector/templates/projector/model_widget.html b/openslides/projector/templates/projector/model_widget.html
deleted file mode 100644
index f889fe37b..000000000
--- a/openslides/projector/templates/projector/model_widget.html
+++ /dev/null
@@ -1,18 +0,0 @@
-{% load staticfiles %}
-{% load i18n %}
-{% load tags %}
-
-
-
diff --git a/openslides/projector/templates/projector/widget.html b/openslides/projector/templates/projector/widget.html
index 67a21db1b..1697ab5c7 100644
--- a/openslides/projector/templates/projector/widget.html
+++ b/openslides/projector/templates/projector/widget.html
@@ -8,7 +8,10 @@
-
+
+
+
+
diff --git a/openslides/static/styles/base.css b/openslides/static/styles/base.css
index e98085627..2e76d57f5 100644
--- a/openslides/static/styles/base.css
+++ b/openslides/static/styles/base.css
@@ -581,6 +581,9 @@ ul.results {
.preview {
background:url("../images/icons/preview.png") no-repeat 0px 0px;
}
+.edit {
+ background:url("../images/icons/edit.png") no-repeat 0px 0px;
+}
.delete {
background:url("../images/icons/delete.png") no-repeat 0px 0px;
}