shop.balmet.com

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

tracking.twig (2646B)


      1 {{ header }}
      2 <div id="account-tracking" class="container">
      3   <ul class="breadcrumb">
      4     {% for breadcrumb in breadcrumbs %}
      5     <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
      6     {% endfor %}
      7   </ul>
      8   <div class="row">{{ column_left }}
      9     {% if column_left and column_right %}
     10     {% set class = 'col-sm-6' %}
     11     {% elseif column_left or column_right %}
     12     {% set class = 'col-sm-9' %}
     13     {% else %}
     14     {% set class = 'col-sm-12' %}
     15     {% endif %}
     16     <div id="content" class="{{ class }}">{{ content_top }}
     17       <h1>{{ heading_title }}</h1>
     18       <p>{{ text_description }}</p>
     19       <form class="form-horizontal">
     20         <div class="form-group">
     21           <label class="col-sm-2 control-label" for="input-code">{{ entry_code }}</label>
     22           <div class="col-sm-10">
     23             <textarea cols="40" rows="5" placeholder="{{ entry_code }}" id="input-code" class="form-control">{{ code }}</textarea>
     24           </div>
     25         </div>
     26         <div class="form-group">
     27           <label class="col-sm-2 control-label" for="input-generator"><span data-toggle="tooltip" title="{{ help_generator }}">{{ entry_generator }}</span></label>
     28           <div class="col-sm-10">
     29             <input type="text" name="product" value="" placeholder="{{ entry_generator }}" id="input-generator" class="form-control" />
     30           </div>
     31         </div>
     32         <div class="form-group">
     33           <label class="col-sm-2 control-label" for="input-link">{{ entry_link }}</label>
     34           <div class="col-sm-10">
     35             <textarea name="link" cols="40" rows="5" placeholder="{{ entry_link }}" id="input-link" class="form-control"></textarea>
     36           </div>
     37         </div>
     38       </form>
     39       <div class="buttons clearfix">
     40         <div class="pull-right"><a href="{{ continue }}" class="btn btn-primary">{{ button_continue }}</a></div>
     41       </div>
     42       {{ content_bottom }}</div>
     43     {{ column_right }}</div>
     44 </div>
     45 <script type="text/javascript"><!--
     46 $('input[name=\'product\']').autocomplete({
     47 	'source': function(request, response) {
     48 		$.ajax({
     49 			url: 'index.php?route=account/tracking/autocomplete&filter_name=' +  encodeURIComponent(request) + '&tracking=' + encodeURIComponent($('#input-code').val()),
     50 			dataType: 'json',
     51 			success: function(json) {
     52 				response($.map(json, function(item) {
     53 					return {
     54 						label: item['name'],
     55 						value: item['link']
     56 					}
     57 				}));
     58 			}
     59 		});
     60 	},
     61 	'select': function(item) {
     62 		$('input[name=\'product\']').val(item['label']);
     63 		$('textarea[name=\'link\']').val(item['value']);
     64 	}
     65 });
     66 //--></script>
     67 {{ footer }}