2021-12-25 02:23:34 +00:00
|
|
|
from django.forms import ChoiceField, RadioSelect
|
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):
|
2021-12-25 02:23:34 +00:00
|
|
|
lower_thirds_theme = ChoiceField(
|
2021-12-25 02:27:20 +00:00
|
|
|
choices=(("default", "default"), ("rc3-2021", "rc3-2021")),
|
|
|
|
label=_("Theme"),
|
2021-12-25 02:23:34 +00:00
|
|
|
widget=RadioSelect,
|
|
|
|
)
|
2021-11-21 12:07:19 +00:00
|
|
|
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
|
|
|
),
|
|
|
|
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,
|
|
|
|
)
|
2021-11-21 12:07:19 +00:00
|
|
|
lower_thirds_info_string = I18nFormField(
|
|
|
|
help_text=_("Will only be shown if there's a talk running."),
|
2021-11-21 07:06:35 +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
|
|
|
)
|