Merge branch 'ticket-testing' into 'master'

Enable adding voucher from the review screen

See merge request LCA2018/symposion_app!52
This commit is contained in:
James Polley 2017-10-01 14:03:37 +00:00
commit 74a56d6bf3
2 changed files with 16 additions and 0 deletions

1
docs/registrasion Symbolic link
View file

@ -0,0 +1 @@
../vendor/registrasion/docs/

View file

@ -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 %}