Enable adding voucher from the review screen
This commit is contained in:
parent
c0f839c0dd
commit
ec71df90c8
1 changed files with 15 additions and 0 deletions
|
@ -9,7 +9,22 @@
|
||||||
t-shirts and social event tickets.
|
t-shirts and social event tickets.
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block scripts_extra %}
|
||||||
|
{{ voucher_form.media.js }}
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
function showVoucherForm() {
|
||||||
|
$("#voucher-form").show();
|
||||||
|
$("#voucher-form-button").hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<button id="voucher-form-button" class="btn" onclick="showVoucherForm()">Enter voucher code</button>
|
||||||
|
|
||||||
{% items_pending as pending %}
|
{% items_pending as pending %}
|
||||||
{% if pending %}
|
{% if pending %}
|
||||||
|
|
Loading…
Reference in a new issue