shop.balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

cheque.twig (1107B)


      1 <h2>{{ text_instruction }}</h2>
      2 <div class="well well-sm">
      3   <p><b>{{ text_payable }}</b></p>
      4   <p>{{ payable }}</p>
      5   <b>{{ text_address }}</b><br />
      6   <p>{{ address }}</p>
      7   <p>{{ text_payment }}</p>
      8 </div>
      9 <div class="buttons">
     10   <div class="pull-right">
     11     <input type="button" value="{{ button_confirm }}" id="button-confirm" data-loading-text="{{ text_loading }}" class="btn btn-primary" />
     12   </div>
     13 </div>
     14 <script type="text/javascript"><!--
     15 $('#button-confirm').on('click', function() {
     16 	$.ajax({
     17 		url: 'index.php?route=extension/payment/cheque/confirm',
     18 		dataType: 'json',
     19 		beforeSend: function() {
     20 			$('#button-confirm').button('loading');
     21 		},
     22 		complete: function() {
     23 			$('#button-confirm').button('reset');
     24 		},
     25 		success: function(json) {
     26 			if (json['redirect']) {
     27 				location = json['redirect'];	
     28 			}
     29 		},
     30 		error: function(xhr, ajaxOptions, thrownError) {
     31 			console.log(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
     32 			alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
     33 		}
     34 	});
     35 
     36 });
     37 //--></script>