shop.balmet.com

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

dashboard.twig (2109B)


      1 {{ header }}{{ column_left }}
      2 <div id="content">
      3   <div class="page-header">
      4     <div class="container-fluid">
      5       <div class="pull-right">
      6         <button type="button" id="button-setting" title="{{ button_setting }}" data-loading-text="{{ text_loading }}" class="btn btn-info"><i class="fa fa-cog"></i></button>
      7       </div>
      8       <h1>{{ heading_title }}</h1>
      9       <ul class="breadcrumb">
     10         {% for breadcrumb in breadcrumbs %}
     11         <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
     12         {% endfor %}
     13       </ul>
     14     </div>
     15   </div>
     16   <div class="container-fluid">{% if error_install %}
     17     <div class="alert alert-danger alert-dismissible">
     18       <button type="button" class="close pull-right" data-dismiss="alert">&times;</button>
     19       <i class="fa fa-exclamation-circle"></i> {{ error_install }}</div>
     20     {% endif %}
     21     {% for row in rows %}
     22     <div class="row">{% for dashboard_1 in row %}
     23       {% set class = 'col-lg-%s %s'|format(dashboard_1.width, 'col-md-3 col-sm-6') %}
     24       {% for dashboard_2 in row %}
     25       {% if dashboard_2.width > 3 %}
     26       {% set class = 'col-lg-%s %s'|format(dashboard_1.width, 'col-md-12 col-sm-12') %}
     27       {% endif %}
     28       {% endfor %}
     29       <div class="{{ class }}">{{ dashboard_1.output }}</div>
     30       {% endfor %}</div>
     31     {% endfor %}</div>
     32     {{ security }}
     33   <script type="text/javascript"><!--
     34 $('#button-setting').on('click', function() {
     35 	$.ajax({
     36 		url: 'index.php?route=common/developer&user_token={{ user_token }}',
     37 		dataType: 'html',
     38 		beforeSend: function() {
     39 			$('#button-setting').button('loading');
     40 		},
     41 		complete: function() {
     42 			$('#button-setting').button('reset');
     43 		},
     44 		success: function(html) {
     45 			$('#modal-developer').remove();
     46 			
     47 			$('body').prepend('<div id="modal-developer" class="modal">' + html + '</div>');
     48 			
     49 			$('#modal-developer').modal('show');
     50 		},
     51 		error: function(xhr, ajaxOptions, thrownError) {
     52 			alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
     53 		}
     54 	});	
     55 });	
     56 //--></script> 
     57 </div>
     58 {{ footer }}