Rename config option to show meta box below title on projector.

This commit is contained in:
Emanuel Schütze 2019-12-09 16:03:06 +01:00
parent 431dc2b758
commit 9e81e6145f
3 changed files with 14 additions and 14 deletions

View File

@ -113,9 +113,9 @@ _('The maximum number of characters per line. Relevant when line numbering is en
_('Reason required for creating new motion'); _('Reason required for creating new motion');
_('Hide motion text on projector'); _('Hide motion text on projector');
_('Hide reason on projector'); _('Hide reason on projector');
_('Hide meta information box on projector');
_('Hide recommendation on projector'); _('Hide recommendation on projector');
_('Hide referring motions'); _('Hide referring motions');
_('Show meta information box below the title on projector');
_('Show the sequential number for a motion'); _('Show the sequential number for a motion');
_('In motion list, motion detail and PDF.'); _('In motion list, motion detail and PDF.');
_('Stop submitting new motions by non-staff users'); _('Stop submitting new motions by non-staff users');

View File

@ -107,21 +107,12 @@ def get_config_variables():
group="Motions", group="Motions",
) )
yield ConfigVariable(
name="motions_disable_sidebox_on_projector",
default_value=False,
input_type="boolean",
label="Hide meta information box on projector",
weight=327,
group="Motions",
)
yield ConfigVariable( yield ConfigVariable(
name="motions_disable_recommendation_on_projector", name="motions_disable_recommendation_on_projector",
default_value=False, default_value=False,
input_type="boolean", input_type="boolean",
label="Hide recommendation on projector", label="Hide recommendation on projector",
weight=328, weight=327,
group="Motions", group="Motions",
) )
@ -130,6 +121,15 @@ def get_config_variables():
default_value=False, default_value=False,
input_type="boolean", input_type="boolean",
label="Hide referring motions", label="Hide referring motions",
weight=328,
group="Motions",
)
yield ConfigVariable(
name="motions_disable_sidebox_on_projector",
default_value=True,
input_type="boolean",
label="Show meta information box below the title on projector",
weight=329, weight=329,
group="Motions", group="Motions",
) )

View File

@ -292,7 +292,7 @@ async def test_motion_slide(all_data):
"base_motion": None, "base_motion": None,
"base_statute": None, "base_statute": None,
"is_child": False, "is_child": False,
"show_meta_box": True, "show_meta_box": False,
"show_referring_motions": True, "show_referring_motions": True,
"reason": "", "reason": "",
"submitters": ["Administrator"], "submitters": ["Administrator"],
@ -319,7 +319,7 @@ async def test_amendment_slide(all_data):
"base_motion": {"identifier": "4", "text": "motion text", "title": "12345"}, "base_motion": {"identifier": "4", "text": "motion text", "title": "12345"},
"base_statute": None, "base_statute": None,
"is_child": True, "is_child": True,
"show_meta_box": True, "show_meta_box": False,
"show_referring_motions": True, "show_referring_motions": True,
"reason": "", "reason": "",
"submitters": ["Administrator"], "submitters": ["Administrator"],
@ -346,7 +346,7 @@ async def test_statute_amendment_slide(all_data):
"base_motion": None, "base_motion": None,
"base_statute": {"title": "§1 Preamble", "text": "<p>Some preamble text</p>"}, "base_statute": {"title": "§1 Preamble", "text": "<p>Some preamble text</p>"},
"is_child": False, "is_child": False,
"show_meta_box": True, "show_meta_box": False,
"show_referring_motions": True, "show_referring_motions": True,
"reason": "", "reason": "",
"submitters": ["Administrator"], "submitters": ["Administrator"],