forked from CGM_Public/pretix_original
* adds safeguard to prevent empty giftcard transactions on giftcards of value 0.00 * implement giftcard payment via order create * styling * let create_transactions() handle all the mailing * docs * provide more context for failed transactions * documentation lectoring * reject duplicate gift card secrets * make payment_provider and use_gift_cards exclusive * handle unknown gift cards * Apply suggestion from @pajowu Co-authored-by: pajowu <engelhardt@pretix.eu> * Update src/pretix/control/templates/pretixcontrol/giftcards/payment.html Co-authored-by: pajowu <engelhardt@pretix.eu> --------- Co-authored-by: pajowu <engelhardt@pretix.eu>
29 lines
820 B
HTML
29 lines
820 B
HTML
{% load i18n %}
|
|
|
|
<dl class="dl-horizontal">
|
|
<dt>{% trans "Gift card code" %}</dt>
|
|
<dd>
|
|
{% if gc %}
|
|
<a href="{% url "control:organizer.giftcard" organizer=gc.issuer.slug giftcard=gc.pk %}">
|
|
{{ gc.secret }}
|
|
</a>
|
|
{% if gc.issuer.slug != request.organizer %}
|
|
<span class="text-muted">
|
|
<br>
|
|
<span class="fa fa-group"></span> {{ gc.issuer }}
|
|
</span>
|
|
{% endif %}
|
|
{% elif gift_card_secret %}
|
|
{{ gift_card_secret }}
|
|
{% endif %}
|
|
</dd>
|
|
{% if gc %}
|
|
<dt>{% trans "Issuer" %}</dt>
|
|
<dd>{{ gc.issuer }}</dd>
|
|
{% endif %}
|
|
{% if error %}
|
|
<dt>{% trans "Error" %}</dt>
|
|
<dd>{{ error }}</dd>
|
|
{% endif %}
|
|
</dl>
|