mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
* add form field for unpaid option of checkin lists in subevent detail view * change order of include_pending field * also change the order in new check in lists
This commit is contained in:
committed by
Raphael Michel
parent
675b853b29
commit
f763a8694b
@@ -150,6 +150,7 @@
|
||||
</div>
|
||||
<div class="panel-body form-horizontal">
|
||||
{% bootstrap_form_errors form %}
|
||||
{% bootstrap_field form.include_pending layout="control" %}
|
||||
{% bootstrap_field form.all_products layout="control" %}
|
||||
{% bootstrap_field form.limit_products layout="control" %}
|
||||
</div>
|
||||
@@ -177,6 +178,7 @@
|
||||
</h4>
|
||||
</div>
|
||||
<div class="panel-body form-horizontal">
|
||||
{% bootstrap_field cl_formset.empty_form.include_pending layout="control" %}
|
||||
{% bootstrap_field cl_formset.empty_form.all_products layout="control" %}
|
||||
{% bootstrap_field cl_formset.empty_form.limit_products layout="control" %}
|
||||
</div>
|
||||
|
||||
@@ -148,6 +148,7 @@ class SubEventEditorMixin(MetaDataEditorMixin):
|
||||
'name': cl.name,
|
||||
'all_products': cl.all_products,
|
||||
'limit_products': cl.limit_products.all(),
|
||||
'include_pending': cl.include_pending,
|
||||
} for cl in self.copy_from.checkinlist_set.prefetch_related('limit_products')
|
||||
]
|
||||
extra = len(kwargs['initial'])
|
||||
@@ -156,6 +157,7 @@ class SubEventEditorMixin(MetaDataEditorMixin):
|
||||
{
|
||||
'name': '',
|
||||
'all_products': True,
|
||||
'include_pending': False,
|
||||
}
|
||||
]
|
||||
extra = 1
|
||||
|
||||
Reference in New Issue
Block a user