diff --git a/openslides/agenda/static/javascript/agenda.js b/openslides/agenda/static/javascript/agenda.js index 93b2db91c..c2be1928f 100644 --- a/openslides/agenda/static/javascript/agenda.js +++ b/openslides/agenda/static/javascript/agenda.js @@ -37,19 +37,23 @@ function hideClosedSlides(hide) { $(function() { $('.close_link a').click(function(event) { event.preventDefault(); - slide = $(this); + var link = $(this); $.ajax({ type: 'GET', - url: slide.attr('href'), + url: $(this).attr('href'), dataType: 'json', success: function(data) { if (data.closed) { newclass = 'closed'; + link.parent().parent().parent().addClass('itemdoneline'); } else { newclass = 'open'; + link.parent().parent().parent().removeClass('itemdoneline'); } - slide.parent().removeClass('closed open').addClass(newclass); - slide.attr('href', data.link); + link.parent().removeClass('closed open').addClass(newclass); + + + link.attr('href', data.link); } }); }); diff --git a/openslides/agenda/static/styles/agenda.css b/openslides/agenda/static/styles/agenda.css index 2f9c3d6ab..3851b9db8 100644 --- a/openslides/agenda/static/styles/agenda.css +++ b/openslides/agenda/static/styles/agenda.css @@ -18,3 +18,8 @@ .close_link.closed span { background-image: url(../images/icons/close.png); } + +tr.topline td { + border-bottom: 1px solid #333333; + background-color: #CDCDCD; +} \ No newline at end of file diff --git a/openslides/agenda/templates/agenda/edit.html b/openslides/agenda/templates/agenda/edit.html index e022f59ac..95f414f49 100644 --- a/openslides/agenda/templates/agenda/edit.html +++ b/openslides/agenda/templates/agenda/edit.html @@ -42,10 +42,8 @@ - - + + {% trans 'Cancel' %} * {% trans "required" %} diff --git a/openslides/agenda/templates/agenda/item_row.html b/openslides/agenda/templates/agenda/item_row.html index d8bfc5114..6dab2dcf6 100644 --- a/openslides/agenda/templates/agenda/item_row.html +++ b/openslides/agenda/templates/agenda/item_row.html @@ -3,14 +3,15 @@ {% load tags %} - - {% if perms.agenda.can_manage_agenda %} - - - - {% elif item.closed %} - - {% endif %} + + {% if perms.agenda.can_manage_agenda %} + + + + {% else %} + + {% endif %} @@ -24,7 +25,7 @@ {{ item.get_title_supplement|safe }} {% if perms.agenda.can_manage_agenda %} - + {{ item.comment|first_line }} {% endif %} @@ -32,16 +33,20 @@ {% if perms.projector.can_manage_projector %} - - + + {% endif %} {% if perms.agenda.can_manage_agenda %} - - + + + + + + {% if not item.is_leaf_node %} - - + + {% endif %} {% endif %} diff --git a/openslides/agenda/templates/agenda/overview.html b/openslides/agenda/templates/agenda/overview.html index af86c2276..55f8e1490 100644 --- a/openslides/agenda/templates/agenda/overview.html +++ b/openslides/agenda/templates/agenda/overview.html @@ -63,7 +63,7 @@ {{ items|length }} @@ -74,7 +74,7 @@ {% trans "Item" %} {% if perms.agenda.can_manage_agenda %} - {% trans "Comment" %} + {% trans "Comment" %} {% endif %} {% if perms.agenda.can_manage_agenda or perms.projector.can_manage_projector %} {% trans "Actions" %} @@ -86,26 +86,26 @@ - {% trans "Agenda" %} + {% trans "Agenda" %} {% if perms.agenda.can_manage_agenda %} - + {% endif %} {% if perms.agenda.can_manage_agenda or perms.projector.can_manage_projector %} {% if perms.projector.can_manage_projector %} - - - - + + + + {% endif %} {% endif %} {% if items %} {% for item in items %} - + {% include "agenda/item_row.html" %} {% endfor %} diff --git a/openslides/agenda/templates/agenda/view.html b/openslides/agenda/templates/agenda/view.html index 94ad22f00..844461cc9 100644 --- a/openslides/agenda/templates/agenda/view.html +++ b/openslides/agenda/templates/agenda/view.html @@ -5,7 +5,31 @@ {% block title %}{{ block.super }} – {{ item.title }}{% endblock %} {% block content %} -

{{ item }}

+

+ {{ item }} + +
+ {% trans "Back to overview" %} +
+ + {% trans 'More actions' %} + + + {% if perms.agenda.can_manage_agenda %} + + {% endif %} +
+ {% if perms.projector.can_manage_projector %} + + + + {% endif %} +
+
+

{{ item.text|safe|linebreaks }}

{% if perms.agenda.can_manage_agenda %} diff --git a/openslides/agenda/templates/agenda/widget.html b/openslides/agenda/templates/agenda/widget.html index b1dc4bdd2..f5438b966 100644 --- a/openslides/agenda/templates/agenda/widget.html +++ b/openslides/agenda/templates/agenda/widget.html @@ -4,9 +4,9 @@
  • - -
    -
    + + +   @@ -17,9 +17,9 @@
      {% for item in items %}
    • - -
      -
      + + +   diff --git a/openslides/motion/templates/motion/overview.html b/openslides/motion/templates/motion/overview.html index d35de0978..736d68c6c 100644 --- a/openslides/motion/templates/motion/overview.html +++ b/openslides/motion/templates/motion/overview.html @@ -52,10 +52,10 @@ {% trans "#" %} {% trans "Motion title" %} {% if min_supporters > 0 %} - {% trans "Number of supporters" %} + {% trans "Number of supporters" %} {% endif %} {% trans "Status" %} - {% trans "Submitter" %} + {% trans "Submitter" %} {% trans "Creation Time" %} {% trans "Actions" %} @@ -66,7 +66,7 @@ {% if motion.number %}{{ motion.number }}{% else %}-{% endif %} {{ motion.public_version.title }} {% if min_supporters > 0 %} - {{ motion.count_supporters }} + {{ motion.count_supporters }} {% endif %} {% if motion.status != "pub" %} {{ motion.get_status_display }}
      @@ -76,7 +76,7 @@ {% if not forloop.last %}
      {%endif%} {% endfor %} - {{ motion.submitter }} + {{ motion.submitter }} {{ motion.creation_time }} diff --git a/openslides/participant/templates/participant/login.html b/openslides/participant/templates/participant/login.html index 3558d0562..af1083ce1 100644 --- a/openslides/participant/templates/participant/login.html +++ b/openslides/participant/templates/participant/login.html @@ -51,6 +51,8 @@

      +{% endblock %} +{% block javascript %} {% if os_enable_anonymous_login %}