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
...
 
@@ -2,38 +2,39 @@
 
{% load registrasion_tags %}
 
{% load lca2018_tags %}
 

	
 
{% block header_title %}Review your selection{% endblock %}
 
{% block header_inset_image %}{% illustration "wineglass.svg" %}{% endblock %}
 
{% block header_paragraph %}
 
  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();
 
    }
 

	
 
  </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>
 

	
 
  <p>You've selected the following items, which will be in your invoice when
 
    you check out:<p>
 
  {% include "registrasion/_items_list.html" with items=pending %}
 

	
 
  {% items_purchased as purchased %}
 
  {% if purchased %}
0 comments (0 inline, 0 general)