mirror of
https://github.com/Kunsi/pretalx-plugin-broadcast-tools
synced 2025-06-07 01:12:22 +00:00
add option to include additional custom content on pdf export
This commit is contained in:
parent
280458f6aa
commit
a272f21498
5 changed files with 51 additions and 16 deletions
|
@ -1,4 +1,4 @@
|
|||
from django.forms import BooleanField, CharField
|
||||
from django.forms import BooleanField, CharField, Textarea
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
from hierarkey.forms import HierarkeyForm
|
||||
from i18nfield.forms import I18nFormField, I18nFormMixin, I18nTextInput
|
||||
|
@ -14,7 +14,10 @@ class BroadcastToolsSettingsForm(I18nFormMixin, HierarkeyForm):
|
|||
required=True,
|
||||
)
|
||||
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. You may use "
|
||||
"the place holders mentioned below."
|
||||
),
|
||||
label=_("info line"),
|
||||
required=False,
|
||||
widget=I18nTextInput,
|
||||
|
@ -43,3 +46,13 @@ class BroadcastToolsSettingsForm(I18nFormMixin, HierarkeyForm):
|
|||
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."
|
||||
),
|
||||
label=_("Additional Text"),
|
||||
required=False,
|
||||
widget=Textarea,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue