diff --git a/openslides/agenda/templates/agenda/item_row.html b/openslides/agenda/templates/agenda/item_row.html new file mode 100644 index 000000000..7b685b90b --- /dev/null +++ b/openslides/agenda/templates/agenda/item_row.html @@ -0,0 +1,58 @@ +{% load i18n %} + + + {% if perms.agenda.can_manage_agenda %} + + +
+
+ + {% else %} + + {% if item.closed %} + + {% endif %} + + {% 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 %} + {% endif %} + + + {% if perms.agenda.can_manage_agenda %} + + {% with form=item.weight_form %} + {{ form.weight }} + {{ form.self }} + {{ form.parent }} + {% endwith %} + + {% endif %} + diff --git a/openslides/agenda/templates/agenda/overview.html b/openslides/agenda/templates/agenda/overview.html index 914418c41..83a5e8484 100644 --- a/openslides/agenda/templates/agenda/overview.html +++ b/openslides/agenda/templates/agenda/overview.html @@ -36,111 +36,60 @@ {% endif %} {% endblock %} + {% block content %}

{% trans "Agenda" %}

{% if items %}
{% csrf_token %} - {% if perms.agenda.can_manage_agenda %} + {% if perms.agenda.can_manage_agenda %} - {% endif %} - - - - {% if perms.agenda.can_manage_agenda %} - - {% else %} - - {% endif %} - - - {% if perms.agenda.can_manage_agenda %} - - {% endif %} - - - {% if perms.agenda.can_manage_agenda %} - - {% else %} - - {% endif %} - - - - {% for item in items %} - - {% if perms.agenda.can_manage_agenda %} - - {% else %} - - {% endif %} - + {% if perms.agenda.can_manage_agenda %} + + {% else %} + + {% endif %} + + + + + {% for item in items %} + {% include "agenda/item_row.html" %} + {% endfor %} +
{% else %} {% trans "No items available." %} diff --git a/openslides/static/styles/agenda.css b/openslides/static/styles/agenda.css index d176a52ab..2bd046516 100644 --- a/openslides/static/styles/agenda.css +++ b/openslides/static/styles/agenda.css @@ -62,4 +62,4 @@ a.countdown_visible_link.open div { width: 16px; height: 16px; display: inline-block; -} \ No newline at end of file +} diff --git a/openslides/static/styles/base.css b/openslides/static/styles/base.css index c2a90bb2c..0792b9973 100644 --- a/openslides/static/styles/base.css +++ b/openslides/static/styles/base.css @@ -477,8 +477,8 @@ ul.results { /* Misc */ #sidebar { - width: 250px; - float: right; + width: 250px; + float: right; margin:50px 0 20px 10px; } .box { @@ -553,3 +553,11 @@ ul.results { border-color: #A2B4EE; color: #585B66; } + +.pdficon span { + background-image: url("/static/images/icons/application-pdf.png"); + background-repeat: no-repeat; + background-position: center; + width: 16px; + height: 16px; + display: inline-block;