mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Warn about variations without quota
This commit is contained in:
@@ -34,6 +34,14 @@
|
|||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body form-horizontal">
|
<div class="panel-body form-horizontal">
|
||||||
|
{% if form.instance.pk and not form.instance.quotas.exists %}
|
||||||
|
<div class="alert alert-warning">
|
||||||
|
{% blocktrans trimmed %}
|
||||||
|
Please note that your variation will <strong>not</strong> be available for sale
|
||||||
|
until you have added it to an existing or newly created quota.
|
||||||
|
{% endblocktrans %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% bootstrap_form_errors form %}
|
{% bootstrap_form_errors form %}
|
||||||
{% bootstrap_field form.active layout="control" %}
|
{% bootstrap_field form.active layout="control" %}
|
||||||
{% bootstrap_field form.default_price addon_after=request.event.currency layout="control" %}
|
{% bootstrap_field form.default_price addon_after=request.event.currency layout="control" %}
|
||||||
|
|||||||
Reference in New Issue
Block a user