mirror of
https://github.com/Kunsi/pretalx-plugin-broadcast-tools
synced 2024-11-01 01:25:49 +00:00
rename 'lower_thirds_' fields to 'broadcast_tools_lower_thirds_'
This commit is contained in:
parent
31b6686279
commit
1de7bcc749
4 changed files with 8 additions and 8 deletions
|
@ -5,7 +5,7 @@ from i18nfield.forms import I18nFormField, I18nFormMixin, I18nTextInput
|
||||||
|
|
||||||
|
|
||||||
class BroadcastToolsSettingsForm(I18nFormMixin, HierarkeyForm):
|
class BroadcastToolsSettingsForm(I18nFormMixin, HierarkeyForm):
|
||||||
lower_thirds_no_talk_info = I18nFormField(
|
broadcast_tools_lower_thirds_no_talk_info = I18nFormField(
|
||||||
help_text=_(
|
help_text=_(
|
||||||
"Will be shown as talk title if there's currently no talk running."
|
"Will be shown as talk title if there's currently no talk running."
|
||||||
),
|
),
|
||||||
|
@ -13,7 +13,7 @@ class BroadcastToolsSettingsForm(I18nFormMixin, HierarkeyForm):
|
||||||
widget=I18nTextInput,
|
widget=I18nTextInput,
|
||||||
required=True,
|
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."),
|
help_text=_("Will only be shown if there's a talk running."),
|
||||||
label=_("info line"),
|
label=_("info line"),
|
||||||
required=False,
|
required=False,
|
||||||
|
|
|
@ -8,13 +8,13 @@ from pretalx.common.signals import register_data_exporters
|
||||||
from pretalx.orga.signals import nav_event_settings
|
from pretalx.orga.signals import nav_event_settings
|
||||||
|
|
||||||
hierarkey.add_default(
|
hierarkey.add_default(
|
||||||
"lower_thirds_no_talk_info",
|
"broadcast_tools_lower_thirds_no_talk_info",
|
||||||
LazyI18nString.from_gettext(
|
LazyI18nString.from_gettext(
|
||||||
gettext_noop("Sorry, there's currently no talk running")
|
gettext_noop("Sorry, there's currently no talk running")
|
||||||
),
|
),
|
||||||
LazyI18nString,
|
LazyI18nString,
|
||||||
)
|
)
|
||||||
hierarkey.add_default("lower_thirds_info_string", "", LazyI18nString)
|
hierarkey.add_default("broadcast_tools_lower_thirds_info_string", "", LazyI18nString)
|
||||||
|
|
||||||
|
|
||||||
@receiver(nav_event_settings)
|
@receiver(nav_event_settings)
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
<legend>
|
<legend>
|
||||||
{% translate "Set up lower thirds" %}
|
{% translate "Set up lower thirds" %}
|
||||||
</legend>
|
</legend>
|
||||||
{% bootstrap_field form.lower_thirds_no_talk_info layout='event' %}
|
{% bootstrap_field form.broadcast_tools_lower_thirds_no_talk_info layout='event' %}
|
||||||
{% bootstrap_field form.lower_thirds_info_string layout='event' %}
|
{% bootstrap_field form.broadcast_tools_lower_thirds_info_string layout='event' %}
|
||||||
<p>
|
<p>
|
||||||
The info line will be shown on the bottom right side of your
|
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
|
lower third. If you set it to an empty string, it will automatically
|
||||||
|
|
|
@ -47,7 +47,7 @@ class BroadcastToolsEventInfoView(TemplateView):
|
||||||
{
|
{
|
||||||
"slug": self.request.event.slug,
|
"slug": self.request.event.slug,
|
||||||
"name": str(self.request.event.name),
|
"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,
|
"color": color,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
@ -62,7 +62,7 @@ class BroadcastToolsScheduleView(EventPermissionRequired, ScheduleMixin, Templat
|
||||||
schedule=self.schedule,
|
schedule=self.schedule,
|
||||||
)
|
)
|
||||||
tz = pytz.timezone(schedule.event.timezone)
|
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(
|
return JsonResponse(
|
||||||
{
|
{
|
||||||
"rooms": sorted(
|
"rooms": sorted(
|
||||||
|
|
Loading…
Reference in a new issue