mirror of
https://github.com/pretix/pretix.git
synced 2026-04-23 23:22:32 +00:00
New event series selection field
This commit is contained in:
@@ -47,11 +47,6 @@ class EventWizardFoundationForm(forms.Form):
|
||||
)
|
||||
has_subevents = forms.BooleanField(
|
||||
label=_("This is an event series"),
|
||||
help_text=_('Only recommended for advanced users. If this feature is enabled, this will not only be a '
|
||||
'single event but a series of very similar events that are handled within a single shop. '
|
||||
'The single events inside the series can only differ in date, time, location, prices and '
|
||||
'quotas, but not in other settings, and buying tickets across multiple of these events at '
|
||||
'the same time is possible. You cannot change this setting for this event later.'),
|
||||
required=False,
|
||||
)
|
||||
|
||||
|
||||
@@ -3,8 +3,51 @@
|
||||
{% load bootstrap3 %}
|
||||
{% block form %}
|
||||
{% bootstrap_field form.organizer layout="horizontal" %}
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">Event type</label>
|
||||
<div class="col-md-9">
|
||||
<div class="big-radio radio">
|
||||
<label>
|
||||
<input type="radio" value="" name="{{ form.has_subevents.html_name }}">
|
||||
<span class="fa fa-calendar-o"></span>
|
||||
<strong>{% trans "Singular event or non-event shop" %}</strong><br>
|
||||
<div class="help-block">
|
||||
{% blocktrans trimmed %}
|
||||
An event with individual configuration. If you create more events later, you can copy
|
||||
the event to save yourself some work.
|
||||
{% endblocktrans %}
|
||||
</div>
|
||||
<div class="help-block">
|
||||
{% blocktrans trimmed %}
|
||||
Examples: Conferences, workshops, trade fairs, one-off concerts, sale of digital content,
|
||||
multi-day events with combination tickets.
|
||||
{% endblocktrans %}
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<div class="big-radio radio">
|
||||
<label>
|
||||
<input type="radio" value="on" name="{{ form.has_subevents.html_name }}">
|
||||
<span class="fa fa-calendar"></span>
|
||||
<strong>{% trans "Event series or time slot booking" %}</strong>
|
||||
<div class="help-block">
|
||||
{% blocktrans trimmed %}
|
||||
A series of events that share the same configuration. They can still be different in
|
||||
their dates, locations, prices, and capacities.
|
||||
{% endblocktrans %}
|
||||
</div>
|
||||
<div class="help-block">
|
||||
{% blocktrans trimmed %}
|
||||
Examples: Multiple presentations of the same show, same concert in multiple locations,
|
||||
museums, libraries, or swimming pools,
|
||||
events that need to be booked together in one cart.
|
||||
{% endblocktrans %}
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% bootstrap_field form.locales layout="horizontal" %}
|
||||
{% bootstrap_field form.has_subevents layout="horizontal" %}
|
||||
<p>
|
||||
<span class="fa fa-info-circle"></span>
|
||||
{% trans "Please note that you will only be able to delete your event until the first order has been created." %}
|
||||
|
||||
@@ -430,6 +430,21 @@ table td > .checkbox input[type="checkbox"] {
|
||||
}
|
||||
}
|
||||
}
|
||||
.form-horizontal .big-radio {
|
||||
border: 2px solid #ccc;
|
||||
padding: 0;
|
||||
border-radius: $border-radius-base;
|
||||
label {
|
||||
padding: 15px 15px 15px 30px;
|
||||
}
|
||||
|
||||
.help-block {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
.form-horizontal .big-radio:not(:last-child) {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
.accordion-radio {
|
||||
display: block;
|
||||
margin: 0;
|
||||
|
||||
Reference in New Issue
Block a user