forked from CGM_Public/pretix_original
Voucher redemption: Disable add-on-cart button if no products are
selected
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
action="{% eventurl request.event "presale:event.cart.add" cart_namespace=cart_namespace %}?next={{ cart_redirect|urlencode }}{% if "iframe" in request.GET and not new_tab %}&iframe={{ request.GET.iframe }}{% endif %}{% if "take_cart_id" in request.GET and new_tab %}&take_cart_id={{ request.GET.take_cart_id }}{% endif %}" {% if new_tab %}target="_blank"{% else %}
|
action="{% eventurl request.event "presale:event.cart.add" cart_namespace=cart_namespace %}?next={{ cart_redirect|urlencode }}{% if "iframe" in request.GET and not new_tab %}&iframe={{ request.GET.iframe }}{% endif %}{% if "take_cart_id" in request.GET and new_tab %}&take_cart_id={{ request.GET.take_cart_id }}{% endif %}" {% if new_tab %}target="_blank"{% else %}
|
||||||
data-asynctask
|
data-asynctask
|
||||||
data-asynctask-headline="{% trans "We're now trying to reserve this for you!" %}"
|
data-asynctask-headline="{% trans "We're now trying to reserve this for you!" %}"
|
||||||
|
class="{% if voucher.seating_available %}has-seating{% endif %}"
|
||||||
data-asynctask-text="{% blocktrans with time=event.settings.reservation_time %}Once the items are in your cart, you will have {{ time }} minutes to complete your purchase.{% endblocktrans %}"
|
data-asynctask-text="{% blocktrans with time=event.settings.reservation_time %}Once the items are in your cart, you will have {{ time }} minutes to complete your purchase.{% endblocktrans %}"
|
||||||
{% endif %}>
|
{% endif %}>
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
@@ -295,7 +296,7 @@
|
|||||||
{% if event.presale_is_running %}
|
{% if event.presale_is_running %}
|
||||||
<div class="row-fluid checkout-button-row">
|
<div class="row-fluid checkout-button-row">
|
||||||
<div class="col-md-4 col-md-offset-8 col-xs-12">
|
<div class="col-md-4 col-md-offset-8 col-xs-12">
|
||||||
<button class="btn btn-block btn-primary btn-lg" type="submit">
|
<button class="btn btn-block btn-primary btn-lg" id="btn-add-to-cart" type="submit">
|
||||||
<i class="fa fa-shopping-cart"></i> {% trans "Add to cart" %}
|
<i class="fa fa-shopping-cart"></i> {% trans "Add to cart" %}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user