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:
parent
98fe425867
commit
cabad1c7d5
1 changed files with 2 additions and 1 deletions
|
@ -11,6 +11,7 @@
|
|||
|
||||
{% block scripts_extra %}
|
||||
{{ voucher_form.media.js }}
|
||||
{{ form.media.js }}
|
||||
|
||||
<script type="text/javascript">
|
||||
function showVoucherForm() {
|
||||
|
@ -24,7 +25,7 @@
|
|||
|
||||
|
||||
{% 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 %}
|
||||
{% if pending %}
|
||||
|
|
Loading…
Reference in a new issue