1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2024-11-24 16:01:03 +00:00
pretalx-plugin-broadcast-tools/pretalx_broadcast_tools/forms.py

67 lines
2.4 KiB
Python
Raw Normal View History

from django.forms import BooleanField, CharField, Textarea
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
class BroadcastToolsSettingsForm(I18nFormMixin, HierarkeyForm):
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,
required=True,
)
broadcast_tools_lower_thirds_info_string = I18nFormField(
help_text=_(
"Will only be shown if there's a talk running. You may use "
"the place holders mentioned below."
),
2022-11-15 12:45:51 +00:00
label=_("Info line"),
required=False,
2021-11-21 12:07:19 +00:00
widget=I18nTextInput,
)
broadcast_tools_room_info_feedback_instead_of_public = BooleanField(
help_text=_(
"If checked, the qr code shown on the 'room info' page will "
"link to the feedback page instead of the talk detail page."
),
label=_("Show feedback QR code instead of talk detail QR code"),
required=False,
)
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,
)
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,
)
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"),
required=False,
widget=Textarea,
)