diff --git a/openslides/agenda/static/javascript/agenda.js b/openslides/agenda/static/javascript/agenda.js index 5dc2eb9b0..0dfdfd92d 100644 --- a/openslides/agenda/static/javascript/agenda.js +++ b/openslides/agenda/static/javascript/agenda.js @@ -46,6 +46,25 @@ $(function() { } }); }); + // activate an element to show it on projector + $('.activate_link').click(function(event) { + event.preventDefault(); + link = $(this); + $.ajax({ + type: 'GET', + url: $(this).attr('href'), + dataType: 'json', + data: '', + success: function(data) { + $('.activate_link').removeClass('active'); + //$('li').removeClass('activeline'); + link.addClass('active'); + }, + error: function () { + alert("Ajax Error"); + } + }); + }); // hide closed items $('#action_field span').after($('').click(function () { if ($.cookie('Slide.HideClosed') == 1) { diff --git a/openslides/agenda/static/styles/agenda.css b/openslides/agenda/static/styles/agenda.css index 2123bf169..42cde9622 100644 --- a/openslides/agenda/static/styles/agenda.css +++ b/openslides/agenda/static/styles/agenda.css @@ -31,4 +31,16 @@ a.hidelink.show span { height: 16px; display: inline-block; } +/* activate link */ +a.activate_link span { + background-image: url(../images/icons/task-accepted-grey.png); + background-repeat: no-repeat; + background-position: center; + width: 16px; + height: 16px; + display: inline-block; +} +a.activate_link.active span { + background-image: url(../images/icons/task-accepted.png); +} diff --git a/openslides/agenda/templates/agenda/item_row.html b/openslides/agenda/templates/agenda/item_row.html index d1fdfd1f4..d43a41fdc 100644 --- a/openslides/agenda/templates/agenda/item_row.html +++ b/openslides/agenda/templates/agenda/item_row.html @@ -24,6 +24,9 @@ {% if perms.agenda.can_manage_agenda %} + + + {% endif %} diff --git a/openslides/agenda/templates/agenda/view.html b/openslides/agenda/templates/agenda/view.html index a264d50b3..688e2a79f 100644 --- a/openslides/agenda/templates/agenda/view.html +++ b/openslides/agenda/templates/agenda/view.html @@ -6,6 +6,11 @@ {% block content %}

{{ item.title }}

- {{ item.text }} +

{{ item.text|safe|linebreaks }}

+ + {% if perms.agenda.can_manage_agenda and item.comment %} +

{% trans "Comment" %}

+

{{ item.comment|linebreaks }}

+ {% endif %} {% endblock %}