forked from CGM_Public/pretix_original
Added products that require a voucher to be bought/shown
This commit is contained in:
@@ -142,6 +142,8 @@ class ItemUpdateForm(I18nModelForm):
|
||||
'tax_rate',
|
||||
'available_from',
|
||||
'available_until',
|
||||
'require_voucher',
|
||||
'hide_without_voucher',
|
||||
]
|
||||
|
||||
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
<legend>{% trans "Availability" %}</legend>
|
||||
{% bootstrap_field form.available_from layout="horizontal" %}
|
||||
{% bootstrap_field form.available_until layout="horizontal" %}
|
||||
{% bootstrap_field form.require_voucher layout="horizontal" %}
|
||||
{% bootstrap_field form.hide_without_voucher layout="horizontal" %}
|
||||
</fieldset>
|
||||
<div class="form-group submit-group">
|
||||
<button type="submit" class="btn btn-primary btn-save">
|
||||
|
||||
Reference in New Issue
Block a user