Enable adding voucher from the review screen
This commit is contained in:
		
							parent
							
								
									c0f839c0dd
								
							
						
					
					
						commit
						ec71df90c8
					
				
					 1 changed files with 15 additions and 0 deletions
				
			
		|  | @ -9,7 +9,22 @@ | |||
|   t-shirts and social event tickets. | ||||
| {% 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 %} | ||||
|   <button id="voucher-form-button" class="btn" onclick="showVoucherForm()">Enter voucher code</button> | ||||
| 
 | ||||
|   {% items_pending as pending %} | ||||
|   {% if pending %} | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 James Polley
						James Polley