mirror of
https://github.com/Kunsi/pretalx-plugin-broadcast-tools
synced 2025-06-07 01:22:23 +00:00
add option to be able to choose which questions to include in pdf export
This commit is contained in:
parent
5930907aa1
commit
bfbce9e98b
3 changed files with 26 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
from django.forms import BooleanField
|
||||
from django.forms import BooleanField, CharField
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
from hierarkey.forms import HierarkeyForm
|
||||
from i18nfield.forms import I18nFormField, I18nFormMixin, I18nTextInput
|
||||
|
@ -35,3 +35,11 @@ class BroadcastToolsSettingsForm(I18nFormMixin, HierarkeyForm):
|
|||
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,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue