From 0a04ee0716891a41fb76c1a1522cc3e0ab41ac02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emanuel=20Sch=C3=BCtze?= Date: Thu, 5 Oct 2017 10:09:37 +0200 Subject: [PATCH] Added new motion configs to hide reason/recommendation on projector. --- CHANGELOG | 1 + openslides/motions/config_variables.py | 24 ++++++++++++++++--- openslides/motions/static/js/motions/site.js | 2 ++ .../templates/motions/slide_motion.html | 8 ++++--- 4 files changed, 29 insertions(+), 6 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 920e812cb..7968b55ba 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -42,6 +42,7 @@ Motions: - Added multiselect filter for motion comments [#3372]. - Added support for pinning personal notes to the window [#3360]. - Clear identifier on state reset [#3356]. +- New config options to hide reason and recommendation on projector [#3432]. Elections: - Added pagination for list view [#3393]. diff --git a/openslides/motions/config_variables.py b/openslides/motions/config_variables.py index ea34327b7..a26721265 100644 --- a/openslides/motions/config_variables.py +++ b/openslides/motions/config_variables.py @@ -80,20 +80,38 @@ def get_config_variables(): validators=(MinValueValidator(40),)) yield ConfigVariable( - name='motions_stop_submitting', + name='motions_disable_reason_on_projector', default_value=False, input_type='boolean', - label='Stop submitting new motions by non-staff users', + label='Hide reason on projector', weight=325, group='Motions', subgroup='General') + yield ConfigVariable( + name='motions_disable_recommendation_on_projector', + default_value=False, + input_type='boolean', + label='Hide recommendation on projector', + weight=327, + group='Motions', + subgroup='General') + yield ConfigVariable( name='motions_allow_disable_versioning', default_value=False, input_type='boolean', label='Allow to disable versioning', - weight=330, + weight=329, + group='Motions', + subgroup='General') + + yield ConfigVariable( + name='motions_stop_submitting', + default_value=False, + input_type='boolean', + label='Stop submitting new motions by non-staff users', + weight=331, group='Motions', subgroup='General') diff --git a/openslides/motions/static/js/motions/site.js b/openslides/motions/static/js/motions/site.js index 947c4bcb1..84d08384c 100644 --- a/openslides/motions/static/js/motions/site.js +++ b/openslides/motions/static/js/motions/site.js @@ -2300,6 +2300,8 @@ angular.module('OpenSlidesApp.motions.site', [ gettext('None'); gettext('Line length'); gettext('The maximum number of characters per line. Relevant when line numbering is enabled. Min: 40'); + gettext('Hide reason on projector'); + gettext('Hide recommendation on projector'); gettext('Stop submitting new motions by non-staff users'); gettext('Allow to disable versioning'); gettext('Name of recommender'); diff --git a/openslides/motions/static/templates/motions/slide_motion.html b/openslides/motions/static/templates/motions/slide_motion.html index 338f333b5..1ed176738 100644 --- a/openslides/motions/static/templates/motions/slide_motion.html +++ b/openslides/motions/static/templates/motions/slide_motion.html @@ -6,7 +6,7 @@ {{ motion.getStateName() }} -
+

{{ config('motions_recommendations_by') }}

{{ motion.getRecommendationName() }}
@@ -119,6 +119,8 @@
-

Reason

-
+
+

Reason

+
+