1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2024-12-22 14:19:11 +00:00

rename 'lower_thirds_' fields to 'broadcast_tools_lower_thirds_'

This commit is contained in:
Franzi 2022-11-07 04:21:53 +01:00
parent 31b6686279
commit 1de7bcc749
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 8 additions and 8 deletions

View file

@ -5,7 +5,7 @@ from i18nfield.forms import I18nFormField, I18nFormMixin, I18nTextInput
class BroadcastToolsSettingsForm(I18nFormMixin, HierarkeyForm):
lower_thirds_no_talk_info = I18nFormField(
broadcast_tools_lower_thirds_no_talk_info = I18nFormField(
help_text=_(
"Will be shown as talk title if there's currently no talk running."
),
@ -13,7 +13,7 @@ class BroadcastToolsSettingsForm(I18nFormMixin, HierarkeyForm):
widget=I18nTextInput,
required=True,
)
lower_thirds_info_string = I18nFormField(
broadcast_tools_lower_thirds_info_string = I18nFormField(
help_text=_("Will only be shown if there's a talk running."),
label=_("info line"),
required=False,

View file

@ -8,13 +8,13 @@ from pretalx.common.signals import register_data_exporters
from pretalx.orga.signals import nav_event_settings
hierarkey.add_default(
"lower_thirds_no_talk_info",
"broadcast_tools_lower_thirds_no_talk_info",
LazyI18nString.from_gettext(
gettext_noop("Sorry, there's currently no talk running")
),
LazyI18nString,
)
hierarkey.add_default("lower_thirds_info_string", "", LazyI18nString)
hierarkey.add_default("broadcast_tools_lower_thirds_info_string", "", LazyI18nString)
@receiver(nav_event_settings)

View file

@ -10,8 +10,8 @@
<legend>
{% translate "Set up lower thirds" %}
</legend>
{% bootstrap_field form.lower_thirds_no_talk_info layout='event' %}
{% bootstrap_field form.lower_thirds_info_string layout='event' %}
{% bootstrap_field form.broadcast_tools_lower_thirds_no_talk_info layout='event' %}
{% bootstrap_field form.broadcast_tools_lower_thirds_info_string layout='event' %}
<p>
The info line will be shown on the bottom right side of your
lower third. If you set it to an empty string, it will automatically

View file

@ -47,7 +47,7 @@ class BroadcastToolsEventInfoView(TemplateView):
{
"slug": self.request.event.slug,
"name": str(self.request.event.name),
"no_talk": str(self.request.event.settings.lower_thirds_no_talk_info),
"no_talk": str(self.request.event.settings.broadcast_tools_lower_thirds_no_talk_info),
"color": color,
},
)
@ -62,7 +62,7 @@ class BroadcastToolsScheduleView(EventPermissionRequired, ScheduleMixin, Templat
schedule=self.schedule,
)
tz = pytz.timezone(schedule.event.timezone)
infoline = str(schedule.event.settings.lower_thirds_info_string or "")
infoline = str(schedule.event.settings.broadcast_tools_lower_thirds_info_string or "")
return JsonResponse(
{
"rooms": sorted(