2023-03-01 10:34:34 +00:00
|
|
|
from django.forms import BooleanField, CharField, ChoiceField, Textarea
|
2021-11-20 16:46:05 +00:00
|
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
from hierarkey.forms import HierarkeyForm
|
2021-11-21 12:07:19 +00:00
|
|
|
from i18nfield.forms import I18nFormField, I18nFormMixin, I18nTextInput
|
2021-11-20 16:46:05 +00:00
|
|
|
|
|
|
|
|
2021-11-22 11:09:01 +00:00
|
|
|
class BroadcastToolsSettingsForm(I18nFormMixin, HierarkeyForm):
|
2022-11-07 03:21:53 +00:00
|
|
|
broadcast_tools_lower_thirds_no_talk_info = I18nFormField(
|
2021-11-21 07:06:35 +00:00
|
|
|
help_text=_(
|
2021-11-21 12:30:31 +00:00
|
|
|
"Will be shown as talk title if there's currently no talk running."
|
2021-11-21 07:06:35 +00:00
|
|
|
),
|
2022-11-15 12:45:51 +00:00
|
|
|
label=_('"No talk running" information'),
|
2021-11-21 12:07:19 +00:00
|
|
|
widget=I18nTextInput,
|
2021-11-20 16:46:05 +00:00
|
|
|
required=True,
|
|
|
|
)
|
2022-11-07 03:21:53 +00:00
|
|
|
broadcast_tools_lower_thirds_info_string = I18nFormField(
|
2022-11-15 12:43:17 +00:00
|
|
|
help_text=_(
|
|
|
|
"Will only be shown if there's a talk running. You may use "
|
2024-11-03 12:46:47 +00:00
|
|
|
"the place holders mentioned below. The info line will be shown "
|
|
|
|
"on the bottom right side of the lower third. Setting this to an "
|
|
|
|
"empty string will hide the line entirely."
|
2022-11-15 12:43:17 +00:00
|
|
|
),
|
2022-11-15 12:45:51 +00:00
|
|
|
label=_("Info line"),
|
2021-11-20 16:46:05 +00:00
|
|
|
required=False,
|
2021-11-21 12:07:19 +00:00
|
|
|
widget=I18nTextInput,
|
2021-11-20 16:46:05 +00:00
|
|
|
)
|
2024-11-03 12:46:47 +00:00
|
|
|
broadcast_tools_lower_thirds_export_voctomix = BooleanField(
|
|
|
|
help_text=_(
|
|
|
|
"If checked, pretalx will periodically generate voctomix-compatible "
|
|
|
|
"lower thirds images and make them available as <code>.tar.gz</code>."
|
|
|
|
),
|
|
|
|
label=_("Generate voctomix lower thirds"),
|
|
|
|
required=False,
|
|
|
|
)
|
2023-03-01 10:29:56 +00:00
|
|
|
|
|
|
|
broadcast_tools_room_info_lower_content = ChoiceField(
|
|
|
|
choices=(
|
|
|
|
("", "No lower content"),
|
|
|
|
("public_qr", "QR code linking to the 'talk detail' page"),
|
|
|
|
(
|
|
|
|
"feedback_qr",
|
|
|
|
"QR code linking to the feedback page of the currently running talk",
|
|
|
|
),
|
|
|
|
("talk_image", "session image uploaded by the speaker(s)"),
|
|
|
|
),
|
2023-02-28 18:10:18 +00:00
|
|
|
help_text=_(
|
2023-03-01 10:29:56 +00:00
|
|
|
"If a talk is running, the room info page will always show "
|
|
|
|
"the talk title and the list of speakers. The content below "
|
|
|
|
"is configurable here."
|
2023-02-28 18:10:18 +00:00
|
|
|
),
|
2023-03-01 10:29:56 +00:00
|
|
|
label=_("lower content"),
|
2023-03-01 12:58:00 +00:00
|
|
|
required=False,
|
2023-02-28 18:10:18 +00:00
|
|
|
)
|
2023-03-01 12:55:54 +00:00
|
|
|
broadcast_tools_room_info_show_next_talk = BooleanField(
|
|
|
|
help_text=_(
|
|
|
|
"If no talk is running in the room, show the time and title "
|
|
|
|
"of the next talk in the room."
|
|
|
|
),
|
|
|
|
label=_("Show next talk"),
|
|
|
|
required=False,
|
|
|
|
)
|
2023-03-01 10:29:56 +00:00
|
|
|
|
2022-10-22 20:16:01 +00:00
|
|
|
broadcast_tools_pdf_show_internal_notes = BooleanField(
|
|
|
|
help_text=_(
|
|
|
|
"If checked, the value of the 'internal notes' field in a "
|
|
|
|
"submission will get added to the pdf export."
|
|
|
|
),
|
|
|
|
label=_("Show internal notes in pdf export"),
|
|
|
|
required=False,
|
|
|
|
)
|
|
|
|
broadcast_tools_pdf_ignore_do_not_record = BooleanField(
|
|
|
|
help_text=_(
|
|
|
|
"If checked, 'do not record' talks will not generate a page "
|
|
|
|
"in the pdf export."
|
|
|
|
),
|
|
|
|
label=_("Ignore 'do not record' talks when generating pdf"),
|
|
|
|
required=False,
|
|
|
|
)
|
2022-11-07 02:59:41 +00:00
|
|
|
broadcast_tools_pdf_questions_to_include = CharField(
|
|
|
|
help_text=_(
|
|
|
|
"Comma-Separated list of question ids to include in pdf export. "
|
|
|
|
"If empty, no questions will get added."
|
|
|
|
),
|
|
|
|
label=_("Questions to include"),
|
|
|
|
required=False,
|
|
|
|
)
|
2022-11-15 12:43:17 +00:00
|
|
|
broadcast_tools_pdf_additional_content = CharField(
|
|
|
|
help_text=_(
|
|
|
|
"Additional content to print onto the PDF export. "
|
|
|
|
"Will get printed as-is. You may use the place holders "
|
|
|
|
"mentioned below."
|
|
|
|
),
|
2022-11-15 12:45:51 +00:00
|
|
|
label=_("Additional text"),
|
2022-11-15 12:43:17 +00:00
|
|
|
required=False,
|
|
|
|
widget=Textarea,
|
|
|
|
)
|