Change "Apply voucher" button into a link

I can't find the form that should be displayed here, so the simplest
thing I can do at 11pm is to make this a link. That's unsatisfying but
hopefully works.
This commit is contained in:
James Polley 2017-12-23 23:05:56 +11:00
parent 98fe425867
commit cabad1c7d5

View file

@ -11,6 +11,7 @@
{% block scripts_extra %} {% block scripts_extra %}
{{ voucher_form.media.js }} {{ voucher_form.media.js }}
{{ form.media.js }}
<script type="text/javascript"> <script type="text/javascript">
function showVoucherForm() { function showVoucherForm() {
@ -24,7 +25,7 @@
{% block content %} {% block content %}
<button id="voucher-form-button" class="btn" onclick="showVoucherForm()">Enter voucher code</button> <a id="voucher-form-button" class="btn btn-info" href="{% url "voucher_code" %}">Enter voucher code</a>
{% items_pending as pending %} {% items_pending as pending %}
{% if pending %} {% if pending %}