Enable adding voucher from the review screen

This commit is contained in:
James Polley 2017-10-02 00:43:11 +11:00
parent c0f839c0dd
commit ec71df90c8

View file

@ -9,7 +9,22 @@
t-shirts and social event tickets.
{% 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 %}
<button id="voucher-form-button" class="btn" onclick="showVoucherForm()">Enter voucher code</button>
{% items_pending as pending %}
{% if pending %}