2019-07-29 15:19:59 +02:00
|
|
|
import uuid
|
|
|
|
|
2016-06-02 12:47:01 +02:00
|
|
|
from django.core.validators import MaxLengthValidator
|
2016-09-17 22:26:23 +02:00
|
|
|
|
2016-06-02 12:47:01 +02:00
|
|
|
from openslides.core.config import ConfigVariable
|
|
|
|
|
|
|
|
|
|
|
|
def get_config_variables():
|
|
|
|
"""
|
|
|
|
Generator which yields all config variables of this app.
|
|
|
|
|
|
|
|
There are two main groups: 'General' and 'Projector'. The group 'General'
|
|
|
|
has subgroups. The generator has to be evaluated during app loading
|
|
|
|
(see apps.py).
|
|
|
|
"""
|
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="general_event_name",
|
|
|
|
default_value="OpenSlides",
|
|
|
|
label="Event name",
|
2016-06-02 12:47:01 +02:00
|
|
|
weight=110,
|
2019-01-06 16:22:33 +01:00
|
|
|
subgroup="Event",
|
|
|
|
validators=(MaxLengthValidator(100),),
|
|
|
|
)
|
2016-06-02 12:47:01 +02:00
|
|
|
|
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="general_event_description",
|
|
|
|
default_value="Presentation and assembly system",
|
|
|
|
label="Short description of event",
|
2016-06-02 12:47:01 +02:00
|
|
|
weight=115,
|
2019-01-06 16:22:33 +01:00
|
|
|
subgroup="Event",
|
|
|
|
validators=(MaxLengthValidator(100),),
|
|
|
|
)
|
2016-06-02 12:47:01 +02:00
|
|
|
|
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="general_event_date",
|
|
|
|
default_value="",
|
|
|
|
label="Event date",
|
2016-06-02 12:47:01 +02:00
|
|
|
weight=120,
|
2019-01-06 16:22:33 +01:00
|
|
|
subgroup="Event",
|
|
|
|
)
|
2016-06-02 12:47:01 +02:00
|
|
|
|
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="general_event_location",
|
|
|
|
default_value="",
|
|
|
|
label="Event location",
|
2016-06-02 12:47:01 +02:00
|
|
|
weight=125,
|
2019-01-06 16:22:33 +01:00
|
|
|
subgroup="Event",
|
|
|
|
)
|
2016-06-02 12:47:01 +02:00
|
|
|
|
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="general_event_legal_notice",
|
2016-06-09 16:12:13 +02:00
|
|
|
default_value='<a href="http://www.openslides.org">OpenSlides</a> is a '
|
2019-01-06 16:22:33 +01:00
|
|
|
"free web based presentation and assembly system for "
|
|
|
|
"visualizing and controlling agenda, motions and "
|
|
|
|
"elections of an assembly.",
|
|
|
|
input_type="markupText",
|
|
|
|
label="Legal notice",
|
2020-06-11 17:23:42 +02:00
|
|
|
weight=131,
|
2019-01-06 16:22:33 +01:00
|
|
|
subgroup="Event",
|
2020-06-11 17:23:42 +02:00
|
|
|
hidden=True,
|
2019-01-06 16:22:33 +01:00
|
|
|
)
|
2018-05-22 13:10:01 +02:00
|
|
|
|
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="general_event_privacy_policy",
|
|
|
|
default_value="",
|
|
|
|
input_type="markupText",
|
|
|
|
label="Privacy policy",
|
2018-05-22 13:10:01 +02:00
|
|
|
weight=132,
|
2019-01-06 16:22:33 +01:00
|
|
|
subgroup="Event",
|
2020-06-11 17:23:42 +02:00
|
|
|
hidden=True,
|
2019-01-06 16:22:33 +01:00
|
|
|
)
|
2016-06-02 12:47:01 +02:00
|
|
|
|
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="general_event_welcome_title",
|
|
|
|
default_value="Welcome to OpenSlides",
|
|
|
|
label="Front page title",
|
2020-06-11 17:23:42 +02:00
|
|
|
weight=133,
|
2019-01-06 16:22:33 +01:00
|
|
|
subgroup="Event",
|
2020-06-11 17:23:42 +02:00
|
|
|
hidden=True,
|
2019-01-06 16:22:33 +01:00
|
|
|
)
|
2016-06-02 12:47:01 +02:00
|
|
|
|
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="general_event_welcome_text",
|
|
|
|
default_value="[Space for your welcome text.]",
|
|
|
|
input_type="markupText",
|
|
|
|
label="Front page text",
|
2020-06-11 17:23:42 +02:00
|
|
|
weight=134,
|
2019-01-06 16:22:33 +01:00
|
|
|
subgroup="Event",
|
2020-06-11 17:23:42 +02:00
|
|
|
hidden=True,
|
2019-01-06 16:22:33 +01:00
|
|
|
)
|
2016-06-02 12:47:01 +02:00
|
|
|
|
2020-06-11 17:23:42 +02:00
|
|
|
# Live conference
|
2016-06-02 12:47:01 +02:00
|
|
|
|
2020-04-30 17:39:21 +02:00
|
|
|
yield ConfigVariable(
|
2020-06-11 11:20:00 +02:00
|
|
|
name="general_system_conference_show",
|
2020-04-30 17:39:21 +02:00
|
|
|
default_value=False,
|
|
|
|
input_type="boolean",
|
2020-06-11 11:20:00 +02:00
|
|
|
label="Show live conference window",
|
2020-04-30 17:39:21 +02:00
|
|
|
help_text="Server settings required to activate Jitsi Meet integration.",
|
|
|
|
weight=140,
|
2020-06-11 17:23:42 +02:00
|
|
|
subgroup="Live conference",
|
2020-04-30 17:39:21 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
yield ConfigVariable(
|
2020-11-18 10:25:26 +01:00
|
|
|
name="general_system_conference_los_restriction",
|
2020-06-11 11:20:00 +02:00
|
|
|
default_value=False,
|
|
|
|
input_type="boolean",
|
2020-11-18 10:25:26 +01:00
|
|
|
label="Allow only current speakers and list of speakers managers to enter the live conference",
|
2020-06-11 11:20:00 +02:00
|
|
|
help_text="Server settings required to activate Jitsi Meet integration.",
|
|
|
|
weight=141,
|
2020-06-11 17:23:42 +02:00
|
|
|
subgroup="Live conference",
|
2020-06-11 11:20:00 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
yield ConfigVariable(
|
2020-11-18 10:25:26 +01:00
|
|
|
name="general_system_conference_auto_connect",
|
2020-04-30 17:39:21 +02:00
|
|
|
default_value=False,
|
|
|
|
input_type="boolean",
|
2020-11-18 10:25:26 +01:00
|
|
|
label="Connect all users to live conference automatically",
|
2020-04-30 17:39:21 +02:00
|
|
|
help_text="Server settings required to activate Jitsi Meet integration.",
|
|
|
|
weight=142,
|
2020-06-11 17:23:42 +02:00
|
|
|
subgroup="Live conference",
|
2020-04-30 17:39:21 +02:00
|
|
|
)
|
|
|
|
|
2020-11-10 15:25:52 +01:00
|
|
|
yield ConfigVariable(
|
|
|
|
name="general_system_conference_open_microphone",
|
|
|
|
default_value=False,
|
|
|
|
input_type="boolean",
|
|
|
|
label="Automatically open the microphone for new conference speakers",
|
2020-11-26 12:20:21 +01:00
|
|
|
help_text="Server settings required to activate Jitsi Meet integration.",
|
2020-11-10 15:25:52 +01:00
|
|
|
weight=143,
|
|
|
|
subgroup="Live conference",
|
|
|
|
)
|
|
|
|
|
|
|
|
yield ConfigVariable(
|
|
|
|
name="general_system_conference_open_video",
|
|
|
|
default_value=False,
|
|
|
|
input_type="boolean",
|
|
|
|
label="Automatically open the web cam for new conference speakers",
|
2020-11-26 12:20:21 +01:00
|
|
|
help_text="Server settings required to activate Jitsi Meet integration.",
|
2020-11-10 15:25:52 +01:00
|
|
|
weight=144,
|
|
|
|
subgroup="Live conference",
|
|
|
|
)
|
|
|
|
|
2020-11-18 10:25:26 +01:00
|
|
|
yield ConfigVariable(
|
|
|
|
name="general_system_conference_auto_connect_next_speakers",
|
|
|
|
default_value=0,
|
|
|
|
input_type="integer",
|
|
|
|
label="Number of next speakers automatically connecting to the live conference",
|
|
|
|
help_text="Live conference has to be active. Choose 0 to disable auto connect.",
|
2020-11-10 15:25:52 +01:00
|
|
|
weight=145,
|
2020-11-18 10:25:26 +01:00
|
|
|
subgroup="Live conference",
|
|
|
|
)
|
|
|
|
|
2020-06-11 11:20:00 +02:00
|
|
|
yield ConfigVariable(
|
|
|
|
name="general_system_stream_url",
|
|
|
|
default_value="",
|
2020-06-11 17:23:42 +02:00
|
|
|
label="Livestream url",
|
|
|
|
help_text="Remove URL to deactivate livestream. Check extra group permission to see livestream.",
|
2020-11-18 10:25:26 +01:00
|
|
|
weight=146,
|
2020-06-11 17:23:42 +02:00
|
|
|
subgroup="Live conference",
|
|
|
|
)
|
|
|
|
|
2020-09-18 17:29:32 +02:00
|
|
|
yield ConfigVariable(
|
|
|
|
name="general_system_stream_poster",
|
|
|
|
default_value="",
|
|
|
|
label="Livestream poster image url",
|
2021-10-22 10:43:59 +02:00
|
|
|
help_text="Shows if livestream is not started. Recommended image format: 500x200px, PNG or JPG",
|
2020-11-18 10:25:26 +01:00
|
|
|
weight=147,
|
2020-09-18 17:29:32 +02:00
|
|
|
subgroup="Live conference",
|
|
|
|
)
|
|
|
|
|
2021-01-28 15:30:49 +01:00
|
|
|
yield ConfigVariable(
|
|
|
|
name="general_system_conference_enable_helpdesk",
|
|
|
|
default_value=False,
|
|
|
|
input_type="boolean",
|
2021-02-08 17:07:32 +01:00
|
|
|
label="Enable virtual help desk room",
|
2021-01-28 15:30:49 +01:00
|
|
|
help_text="""
|
2021-02-08 17:07:32 +01:00
|
|
|
Shows a button with help icon to connect to an extra Jitsi conference room for technical audio/video tests.
|
2021-01-28 15:30:49 +01:00
|
|
|
""",
|
|
|
|
weight=148,
|
|
|
|
subgroup="Live conference",
|
|
|
|
)
|
|
|
|
|
2021-01-15 11:29:26 +01:00
|
|
|
# Applause
|
|
|
|
|
|
|
|
yield ConfigVariable(
|
|
|
|
name="general_system_applause_enable",
|
|
|
|
default_value=False,
|
|
|
|
input_type="boolean",
|
|
|
|
label="Enable virtual applause",
|
2021-02-08 17:07:32 +01:00
|
|
|
weight=150,
|
2021-01-15 11:29:26 +01:00
|
|
|
subgroup="Virtual applause",
|
|
|
|
)
|
|
|
|
|
|
|
|
yield ConfigVariable(
|
|
|
|
name="general_system_applause_type",
|
|
|
|
default_value="applause-type-bar",
|
|
|
|
input_type="choice",
|
|
|
|
choices=(
|
|
|
|
{
|
|
|
|
"value": "applause-type-bar",
|
2021-02-08 17:07:32 +01:00
|
|
|
"display_name": "Level indicator",
|
2021-01-15 11:29:26 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"value": "applause-type-particles",
|
|
|
|
"display_name": "Particles",
|
|
|
|
},
|
|
|
|
),
|
2021-02-08 17:07:32 +01:00
|
|
|
label="Applause visualization",
|
|
|
|
weight=151,
|
2021-01-15 11:29:26 +01:00
|
|
|
subgroup="Virtual applause",
|
|
|
|
)
|
|
|
|
|
|
|
|
yield ConfigVariable(
|
|
|
|
name="general_system_applause_show_level",
|
|
|
|
default_value=False,
|
|
|
|
input_type="boolean",
|
|
|
|
label="Show applause amount",
|
2021-02-08 17:07:32 +01:00
|
|
|
weight=152,
|
2021-01-15 11:29:26 +01:00
|
|
|
subgroup="Virtual applause",
|
|
|
|
)
|
|
|
|
|
|
|
|
yield ConfigVariable(
|
|
|
|
name="general_system_applause_min_amount",
|
|
|
|
default_value=1,
|
|
|
|
input_type="integer",
|
|
|
|
label="Lowest applause amount",
|
2021-02-08 17:07:32 +01:00
|
|
|
help_text="Defines the minimum deflection which is required to recognize applause.",
|
|
|
|
weight=153,
|
2021-01-15 11:29:26 +01:00
|
|
|
subgroup="Virtual applause",
|
|
|
|
)
|
|
|
|
|
|
|
|
yield ConfigVariable(
|
|
|
|
name="general_system_applause_max_amount",
|
|
|
|
default_value=0,
|
|
|
|
input_type="integer",
|
|
|
|
label="Highest applause amount",
|
2021-02-08 17:07:32 +01:00
|
|
|
help_text="Defines the maximum deflection. Entering zero will use the amount of present participants instead.",
|
|
|
|
weight=154,
|
2021-01-15 11:29:26 +01:00
|
|
|
subgroup="Virtual applause",
|
|
|
|
)
|
|
|
|
|
|
|
|
yield ConfigVariable(
|
|
|
|
name="general_system_stream_applause_timeout",
|
|
|
|
default_value=5,
|
|
|
|
input_type="integer",
|
2021-02-08 17:07:32 +01:00
|
|
|
label="Applause interval in seconds",
|
|
|
|
help_text="Defines the time in which applause amounts are add up.",
|
|
|
|
weight=155,
|
2021-01-15 11:29:26 +01:00
|
|
|
subgroup="Virtual applause",
|
|
|
|
)
|
|
|
|
|
|
|
|
yield ConfigVariable(
|
|
|
|
name="general_system_applause_particle_image",
|
|
|
|
default_value="",
|
2021-02-08 17:07:32 +01:00
|
|
|
label="Applause particle image URL",
|
2021-01-15 11:29:26 +01:00
|
|
|
help_text="Shows the given image as applause particle. Recommended image format: 24x24px, PNG, JPG or SVG",
|
2021-02-08 17:07:32 +01:00
|
|
|
weight=156,
|
2021-01-15 11:29:26 +01:00
|
|
|
subgroup="Virtual applause",
|
|
|
|
)
|
|
|
|
|
2020-06-11 17:23:42 +02:00
|
|
|
# General System
|
|
|
|
|
|
|
|
yield ConfigVariable(
|
|
|
|
name="general_system_enable_anonymous",
|
|
|
|
default_value=False,
|
|
|
|
input_type="boolean",
|
|
|
|
label="Allow access for anonymous guest users",
|
2021-02-08 17:07:32 +01:00
|
|
|
weight=160,
|
2020-06-11 11:20:00 +02:00
|
|
|
subgroup="System",
|
|
|
|
)
|
|
|
|
|
2016-06-02 12:47:01 +02:00
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="general_login_info_text",
|
|
|
|
default_value="",
|
|
|
|
label="Show this text on the login page",
|
2021-02-08 17:07:32 +01:00
|
|
|
weight=162,
|
2019-01-06 16:22:33 +01:00
|
|
|
subgroup="System",
|
|
|
|
)
|
2016-06-02 12:47:01 +02:00
|
|
|
|
2019-01-29 15:20:00 +01:00
|
|
|
yield ConfigVariable(
|
|
|
|
name="openslides_theme",
|
2020-07-02 23:47:26 +02:00
|
|
|
default_value="openslides-default-light-theme",
|
2019-01-29 15:20:00 +01:00
|
|
|
input_type="choice",
|
|
|
|
label="OpenSlides Theme",
|
|
|
|
choices=(
|
2019-04-08 10:57:43 +02:00
|
|
|
{
|
2020-06-12 12:37:54 +02:00
|
|
|
"value": "openslides-default-light-theme",
|
|
|
|
"display_name": "OpenSlides Default",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"value": "openslides-default-dark-theme",
|
|
|
|
"display_name": "OpenSlides Dark",
|
|
|
|
},
|
|
|
|
{"value": "openslides-red-light-theme", "display_name": "OpenSlides Red"},
|
|
|
|
{
|
|
|
|
"value": "openslides-red-dark-theme",
|
|
|
|
"display_name": "OpenSlides Red Dark",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"value": "openslides-green-light-theme",
|
|
|
|
"display_name": "OpenSlides Green",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"value": "openslides-green-dark-theme",
|
|
|
|
"display_name": "OpenSlides Green Dark",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"value": "openslides-solarized-dark-theme",
|
|
|
|
"display_name": "OpenSlides Solarized",
|
2019-04-08 10:57:43 +02:00
|
|
|
},
|
2019-01-29 15:20:00 +01:00
|
|
|
),
|
2021-02-08 17:07:32 +01:00
|
|
|
weight=164,
|
2020-04-30 11:07:32 +02:00
|
|
|
subgroup="System",
|
|
|
|
)
|
|
|
|
|
2017-07-27 15:17:40 +02:00
|
|
|
# General export settings
|
2017-02-07 12:44:51 +01:00
|
|
|
|
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="general_csv_separator",
|
|
|
|
default_value=",",
|
|
|
|
label="Separator used for all csv exports and examples",
|
2021-02-08 17:07:32 +01:00
|
|
|
weight=170,
|
2019-01-06 16:22:33 +01:00
|
|
|
subgroup="Export",
|
|
|
|
)
|
2017-07-26 15:34:05 +02:00
|
|
|
|
2019-02-07 13:17:54 +01:00
|
|
|
yield ConfigVariable(
|
|
|
|
name="general_csv_encoding",
|
|
|
|
default_value="utf-8",
|
|
|
|
input_type="choice",
|
|
|
|
label="Default encoding for all csv exports",
|
|
|
|
choices=(
|
|
|
|
{"value": "utf-8", "display_name": "UTF-8"},
|
|
|
|
{"value": "iso-8859-15", "display_name": "ISO-8859-15"},
|
|
|
|
),
|
2021-02-08 17:07:32 +01:00
|
|
|
weight=172,
|
2019-02-07 13:17:54 +01:00
|
|
|
subgroup="Export",
|
|
|
|
)
|
|
|
|
|
2017-07-26 15:34:05 +02:00
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="general_export_pdf_pagenumber_alignment",
|
|
|
|
default_value="center",
|
|
|
|
input_type="choice",
|
|
|
|
label="Page number alignment in PDF",
|
2017-07-26 15:34:05 +02:00
|
|
|
choices=(
|
2019-01-06 16:22:33 +01:00
|
|
|
{"value": "left", "display_name": "Left"},
|
|
|
|
{"value": "center", "display_name": "Center"},
|
|
|
|
{"value": "right", "display_name": "Right"},
|
|
|
|
),
|
2021-02-08 17:07:32 +01:00
|
|
|
weight=174,
|
2019-01-06 16:22:33 +01:00
|
|
|
subgroup="Export",
|
|
|
|
)
|
2017-07-26 15:34:05 +02:00
|
|
|
|
2017-07-27 14:20:57 +02:00
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="general_export_pdf_fontsize",
|
|
|
|
default_value="10",
|
|
|
|
input_type="choice",
|
|
|
|
label="Standard font size in PDF",
|
2017-07-27 14:20:57 +02:00
|
|
|
choices=(
|
2019-01-06 16:22:33 +01:00
|
|
|
{"value": "10", "display_name": "10"},
|
|
|
|
{"value": "11", "display_name": "11"},
|
|
|
|
{"value": "12", "display_name": "12"},
|
|
|
|
),
|
2021-02-08 17:07:32 +01:00
|
|
|
weight=176,
|
2019-01-06 16:22:33 +01:00
|
|
|
subgroup="Export",
|
|
|
|
)
|
2017-07-27 14:20:57 +02:00
|
|
|
|
2019-05-20 16:52:36 +02:00
|
|
|
yield ConfigVariable(
|
|
|
|
name="general_export_pdf_pagesize",
|
|
|
|
default_value="A4",
|
|
|
|
input_type="choice",
|
|
|
|
label="Standard page size in PDF",
|
|
|
|
choices=(
|
2019-05-29 09:42:34 +02:00
|
|
|
{"value": "A4", "display_name": "DIN A4"},
|
|
|
|
{"value": "A5", "display_name": "DIN A5"},
|
2019-05-20 16:52:36 +02:00
|
|
|
),
|
2021-02-08 17:07:32 +01:00
|
|
|
weight=178,
|
2019-05-20 16:52:36 +02:00
|
|
|
subgroup="Export",
|
|
|
|
)
|
|
|
|
|
2019-07-10 12:57:48 +02:00
|
|
|
# Logos
|
2017-03-31 13:48:41 +02:00
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="logos_available",
|
2017-04-13 10:23:52 +02:00
|
|
|
default_value=[
|
2019-01-06 16:22:33 +01:00
|
|
|
"logo_projector_main",
|
|
|
|
"logo_projector_header",
|
|
|
|
"logo_web_header",
|
|
|
|
"logo_pdf_header_L",
|
|
|
|
"logo_pdf_header_R",
|
|
|
|
"logo_pdf_footer_L",
|
|
|
|
"logo_pdf_footer_R",
|
|
|
|
"logo_pdf_ballot_paper",
|
|
|
|
],
|
2017-03-31 13:48:41 +02:00
|
|
|
weight=300,
|
2019-01-06 16:22:33 +01:00
|
|
|
group="Logo",
|
|
|
|
hidden=True,
|
|
|
|
)
|
2017-03-31 13:48:41 +02:00
|
|
|
|
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="logo_projector_main",
|
|
|
|
default_value={"display_name": "Projector logo", "path": ""},
|
|
|
|
input_type="static",
|
2017-03-31 13:48:41 +02:00
|
|
|
weight=301,
|
2019-01-06 16:22:33 +01:00
|
|
|
group="Logo",
|
|
|
|
hidden=True,
|
|
|
|
)
|
2017-04-13 10:23:52 +02:00
|
|
|
|
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="logo_projector_header",
|
|
|
|
default_value={"display_name": "Projector header image", "path": ""},
|
|
|
|
input_type="static",
|
2017-04-13 10:23:52 +02:00
|
|
|
weight=302,
|
2019-01-06 16:22:33 +01:00
|
|
|
group="Logo",
|
|
|
|
hidden=True,
|
|
|
|
)
|
2017-04-19 14:56:15 +02:00
|
|
|
|
2017-06-22 08:44:59 +02:00
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="logo_web_header",
|
|
|
|
default_value={"display_name": "Web interface header logo", "path": ""},
|
|
|
|
input_type="static",
|
2017-06-22 08:44:59 +02:00
|
|
|
weight=303,
|
2019-01-06 16:22:33 +01:00
|
|
|
group="Logo",
|
|
|
|
hidden=True,
|
|
|
|
)
|
2017-06-22 08:44:59 +02:00
|
|
|
|
2017-04-26 16:09:27 +02:00
|
|
|
# PDF logos
|
2017-04-19 14:56:15 +02:00
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="logo_pdf_header_L",
|
|
|
|
default_value={"display_name": "PDF header logo (left)", "path": ""},
|
|
|
|
input_type="static",
|
2017-04-19 14:56:15 +02:00
|
|
|
weight=310,
|
2019-01-06 16:22:33 +01:00
|
|
|
group="Logo",
|
|
|
|
hidden=True,
|
|
|
|
)
|
2017-04-19 14:56:15 +02:00
|
|
|
|
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="logo_pdf_header_R",
|
|
|
|
default_value={"display_name": "PDF header logo (right)", "path": ""},
|
|
|
|
input_type="static",
|
2017-04-19 14:56:15 +02:00
|
|
|
weight=311,
|
2019-01-06 16:22:33 +01:00
|
|
|
group="Logo",
|
|
|
|
hidden=True,
|
|
|
|
)
|
2017-06-21 19:32:02 +02:00
|
|
|
|
2018-06-22 14:51:28 +02:00
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="logo_pdf_footer_L",
|
|
|
|
default_value={"display_name": "PDF footer logo (left)", "path": ""},
|
|
|
|
input_type="static",
|
2018-06-22 14:51:28 +02:00
|
|
|
weight=312,
|
2019-01-06 16:22:33 +01:00
|
|
|
group="Logo",
|
|
|
|
hidden=True,
|
|
|
|
)
|
2018-06-22 14:51:28 +02:00
|
|
|
|
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="logo_pdf_footer_R",
|
|
|
|
default_value={"display_name": "PDF footer logo (right)", "path": ""},
|
|
|
|
input_type="static",
|
2018-06-22 14:51:28 +02:00
|
|
|
weight=313,
|
2019-01-06 16:22:33 +01:00
|
|
|
group="Logo",
|
|
|
|
hidden=True,
|
|
|
|
)
|
2018-06-22 14:51:28 +02:00
|
|
|
|
2017-06-21 19:32:02 +02:00
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="logo_pdf_ballot_paper",
|
|
|
|
default_value={"display_name": "PDF ballot paper logo", "path": ""},
|
|
|
|
input_type="static",
|
2018-06-22 14:51:28 +02:00
|
|
|
weight=314,
|
2019-01-06 16:22:33 +01:00
|
|
|
group="Logo",
|
|
|
|
hidden=True,
|
|
|
|
)
|
2017-08-30 12:17:07 +02:00
|
|
|
|
2018-01-30 16:12:02 +01:00
|
|
|
# Fonts
|
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="fonts_available",
|
2020-05-19 13:14:37 +02:00
|
|
|
default_value=[
|
|
|
|
"font_regular",
|
|
|
|
"font_italic",
|
|
|
|
"font_bold",
|
|
|
|
"font_bold_italic",
|
|
|
|
"font_monospace",
|
2021-05-11 17:09:51 +02:00
|
|
|
"font_chyron_speaker_name",
|
2020-05-19 13:14:37 +02:00
|
|
|
],
|
2018-01-30 16:12:02 +01:00
|
|
|
weight=320,
|
2019-01-06 16:22:33 +01:00
|
|
|
group="Font",
|
|
|
|
hidden=True,
|
|
|
|
)
|
2018-01-30 16:12:02 +01:00
|
|
|
|
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="font_regular",
|
2018-01-30 16:12:02 +01:00
|
|
|
default_value={
|
2019-01-06 16:22:33 +01:00
|
|
|
"display_name": "Font regular",
|
2019-01-22 11:59:16 +01:00
|
|
|
"default": "assets/fonts/fira-sans-latin-400.woff",
|
2019-01-06 16:22:33 +01:00
|
|
|
"path": "",
|
|
|
|
},
|
|
|
|
input_type="static",
|
2018-01-30 16:12:02 +01:00
|
|
|
weight=321,
|
2019-01-06 16:22:33 +01:00
|
|
|
group="Font",
|
|
|
|
hidden=True,
|
|
|
|
)
|
2018-01-30 16:12:02 +01:00
|
|
|
|
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="font_italic",
|
2018-01-30 16:12:02 +01:00
|
|
|
default_value={
|
2019-01-06 16:22:33 +01:00
|
|
|
"display_name": "Font italic",
|
2019-01-22 11:59:16 +01:00
|
|
|
"default": "assets/fonts/fira-sans-latin-400italic.woff",
|
2019-01-06 16:22:33 +01:00
|
|
|
"path": "",
|
|
|
|
},
|
|
|
|
input_type="static",
|
2018-01-30 16:12:02 +01:00
|
|
|
weight=321,
|
2019-01-06 16:22:33 +01:00
|
|
|
group="Font",
|
|
|
|
hidden=True,
|
|
|
|
)
|
2018-01-30 16:12:02 +01:00
|
|
|
|
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="font_bold",
|
2018-01-30 16:12:02 +01:00
|
|
|
default_value={
|
2019-01-06 16:22:33 +01:00
|
|
|
"display_name": "Font bold",
|
2019-01-22 11:59:16 +01:00
|
|
|
"default": "assets/fonts/fira-sans-latin-500.woff",
|
2019-01-06 16:22:33 +01:00
|
|
|
"path": "",
|
|
|
|
},
|
|
|
|
input_type="static",
|
2018-01-30 16:12:02 +01:00
|
|
|
weight=321,
|
2019-01-06 16:22:33 +01:00
|
|
|
group="Font",
|
|
|
|
hidden=True,
|
|
|
|
)
|
2018-01-30 16:12:02 +01:00
|
|
|
|
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="font_bold_italic",
|
2018-01-30 16:12:02 +01:00
|
|
|
default_value={
|
2019-01-06 16:22:33 +01:00
|
|
|
"display_name": "Font bold italic",
|
2019-01-22 11:59:16 +01:00
|
|
|
"default": "assets/fonts/fira-sans-latin-500italic.woff",
|
2019-01-06 16:22:33 +01:00
|
|
|
"path": "",
|
|
|
|
},
|
|
|
|
input_type="static",
|
2018-01-30 16:12:02 +01:00
|
|
|
weight=321,
|
2019-01-06 16:22:33 +01:00
|
|
|
group="Font",
|
|
|
|
hidden=True,
|
|
|
|
)
|
2018-01-30 16:12:02 +01:00
|
|
|
|
2020-05-19 13:14:37 +02:00
|
|
|
yield ConfigVariable(
|
|
|
|
name="font_monospace",
|
|
|
|
default_value={
|
|
|
|
"display_name": "Font monospace",
|
2020-06-11 14:30:01 +02:00
|
|
|
"default": "assets/fonts/roboto-condensed-bold.woff",
|
2020-05-19 13:14:37 +02:00
|
|
|
"path": "",
|
|
|
|
},
|
|
|
|
input_type="static",
|
|
|
|
weight=321,
|
|
|
|
group="Font",
|
|
|
|
hidden=True,
|
|
|
|
)
|
|
|
|
|
2021-05-11 17:09:51 +02:00
|
|
|
yield ConfigVariable(
|
|
|
|
name="font_chyron_speaker_name",
|
|
|
|
default_value={
|
|
|
|
"display_name": "Font for speaker name (chyron)",
|
|
|
|
"default": "assets/fonts/fira-sans-latin-400.woff",
|
|
|
|
"path": "",
|
|
|
|
},
|
|
|
|
input_type="static",
|
|
|
|
weight=321,
|
|
|
|
group="Font",
|
|
|
|
hidden=True,
|
|
|
|
)
|
|
|
|
|
2017-08-30 12:17:07 +02:00
|
|
|
# Custom translations
|
|
|
|
yield ConfigVariable(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="translations",
|
|
|
|
label="Custom translations",
|
2017-08-30 12:17:07 +02:00
|
|
|
default_value=[],
|
2019-01-06 16:22:33 +01:00
|
|
|
input_type="translations",
|
2017-08-30 12:17:07 +02:00
|
|
|
weight=1000,
|
2019-01-06 16:22:33 +01:00
|
|
|
group="Custom translations",
|
|
|
|
)
|
2019-07-10 15:54:17 +02:00
|
|
|
|
2019-07-29 15:19:59 +02:00
|
|
|
# Config version and DB id
|
2019-07-10 15:54:17 +02:00
|
|
|
yield ConfigVariable(
|
|
|
|
name="config_version",
|
|
|
|
input_type="integer",
|
|
|
|
default_value=1,
|
|
|
|
group="Version",
|
|
|
|
hidden=True,
|
|
|
|
)
|
2019-07-29 15:19:59 +02:00
|
|
|
yield ConfigVariable(
|
|
|
|
name="db_id",
|
|
|
|
input_type="string",
|
|
|
|
default_value=uuid.uuid4().hex,
|
|
|
|
group="Version",
|
|
|
|
hidden=True,
|
|
|
|
)
|