diff --git a/src/pretix/base/settings.py b/src/pretix/base/settings.py index d60d3ae2f1..186e003d00 100644 --- a/src/pretix/base/settings.py +++ b/src/pretix/base/settings.py @@ -820,8 +820,8 @@ DEFAULTS = { 'serializer_class': serializers.BooleanField, 'form_class': forms.BooleanField, 'form_kwargs': dict( - label=_("Use feature"), - help_text=_("Use pretix to generate tickets for the user to download and print out."), + label=_("Allow users to download tickets"), + help_text=_("If this is off, nobody can download a ticket."), ) }, 'ticket_download_date': { @@ -842,7 +842,11 @@ DEFAULTS = { 'serializer_class': serializers.BooleanField, 'form_class': forms.BooleanField, 'form_kwargs': dict( - label=_("Offer to download tickets separately for add-on products"), + label=_("Generate tickets for add-on products"), + help_text=_('By default, tickets are only issued for products selected individually, not for add-on ' + 'products. With this option, a separate ticket is issued for every add-on product as well.'), + widget=forms.CheckboxInput(attrs={'data-checkbox-dependency': '#id_ticket_download', + 'data-checkbox-dependency-visual': 'on'}), ) }, 'ticket_download_nonadm': { @@ -851,7 +855,11 @@ DEFAULTS = { 'serializer_class': serializers.BooleanField, 'form_class': forms.BooleanField, 'form_kwargs': dict( - label=_("Generate tickets for non-admission products"), + label=_("Generate tickets for all products"), + help_text=_('If turned off, tickets are only issued for products that are marked as an "admission ticket"' + 'in the product settings. You can also turn off tickt issuing in every product separately.'), + widget=forms.CheckboxInput(attrs={'data-checkbox-dependency': '#id_ticket_download', + 'data-checkbox-dependency-visual': 'on'}), ) }, 'ticket_download_pending': { @@ -860,7 +868,10 @@ DEFAULTS = { 'serializer_class': serializers.BooleanField, 'form_class': forms.BooleanField, 'form_kwargs': dict( - label=_("Offer to download tickets even before an order is paid"), + label=_("Generate tickets for pending orders"), + help_text=_('If turned off, ticket downloads are only possible after an order has been marked as paid.'), + widget=forms.CheckboxInput(attrs={'data-checkbox-dependency': '#id_ticket_download', + 'data-checkbox-dependency-visual': 'on'}), ) }, 'event_list_availability': { diff --git a/src/pretix/base/ticketoutput.py b/src/pretix/base/ticketoutput.py index 96d00609d4..d2a6ea3955 100644 --- a/src/pretix/base/ticketoutput.py +++ b/src/pretix/base/ticketoutput.py @@ -142,7 +142,7 @@ class BaseTicketOutput: return OrderedDict([ ('_enabled', forms.BooleanField( - label=_('Enable output'), + label=_('Enable ticket format'), required=False, )), ]) diff --git a/src/pretix/control/templates/pretixcontrol/event/tickets.html b/src/pretix/control/templates/pretixcontrol/event/tickets.html index 65e8e4b216..158d706a0e 100644 --- a/src/pretix/control/templates/pretixcontrol/event/tickets.html +++ b/src/pretix/control/templates/pretixcontrol/event/tickets.html @@ -1,11 +1,12 @@ {% extends "pretixcontrol/event/settings_base.html" %} {% load i18n %} +{% load getitem %} {% load bootstrap3 %} {% block inside %}
{% csrf_token %}

{% trans "Ticket download" %}

-
+
{% trans "Download settings" %} {% if request.event.settings.ticket_download and not any_enabled %} @@ -17,11 +18,10 @@
{% endif %} {% bootstrap_form_errors form %} - {% bootstrap_field form.ticket_download layout="control" %} - {% bootstrap_field form.ticket_download_date layout="control" %} - {% bootstrap_field form.ticket_download_addons layout="control" %} - {% bootstrap_field form.ticket_download_nonadm layout="control" %} - {% bootstrap_field form.ticket_download_pending layout="control" %} + {% bootstrap_field form.ticket_download layout="control" horizontal_label_class='sr-only' horizontal_field_class='col-md-12' %} + {% bootstrap_field form.ticket_download_addons layout="control" horizontal_label_class='sr-only' horizontal_field_class='col-md-12' %} + {% bootstrap_field form.ticket_download_nonadm layout="control" horizontal_label_class='sr-only' horizontal_field_class='col-md-12' %} + {% bootstrap_field form.ticket_download_pending layout="control" horizontal_label_class='sr-only' horizontal_field_class='col-md-12' %}
{% trans "Download formats" %} @@ -33,11 +33,15 @@ target="_blank"> {% trans "Preview" %} -

{{ provider.verbose_name }}

+

+ {% with 'ticketoutput_'|add:provider.identifier|add:'__enabled' as field_name %} + {% bootstrap_field provider.form|getitem:field_name layout='inline' label=provider.verbose_name %} + {% endwith %} +

- {% bootstrap_form provider.form layout='horizontal' %} + {% bootstrap_form provider.form exclude='ticketoutput_'|add:provider.identifier|add:'__enabled' layout='horizontal' %} {% with c=provider.settings_content %} {% if c %}{{ c|safe }}{% endif %} {% endwith %} @@ -53,6 +57,10 @@
{% endfor %} +
+ {% trans "Download time" %} + {% bootstrap_field form.ticket_download_date layout="control" %} +