Changeset - cabad1c7d5f1
[Not reviewed]
0 1 0
James Polley - 6 years ago 2017-12-23 12:05:56
jp@jamezpolley.com
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.
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
pinaxcon/templates/registrasion/review.html
Show inline comments
...
 
@@ -8,12 +8,13 @@
 
  Please ensure that you have selected all of the products you require, including
 
  t-shirts and social event tickets.
 
{% endblock %}
 

	
 
{% block scripts_extra %}
 
  {{ voucher_form.media.js }}
 
  {{ form.media.js }}
 

	
 
  <script type="text/javascript">
 
    function showVoucherForm() {
 
      $("#voucher-form").show();
 
      $("#voucher-form-button").hide();
 
    }
...
 
@@ -21,13 +22,13 @@
 
  </script>
 

	
 
{% endblock %}
 

	
 

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

	
 
  <h3>Current selection</h3>
 

	
0 comments (0 inline, 0 general)