shop.balmet.com

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

openbay.twig (8485B)


      1 {{ header }}{{ column_left }}
      2 <div id="content">
      3   <div class="page-header">
      4     <div class="container-fluid">
      5       <h1>{{ heading_title }}</h1>
      6       <ul class="breadcrumb">
      7         {% for breadcrumb in breadcrumbs %}
      8         <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
      9         {% endfor %}
     10       </ul>
     11     </div>
     12   </div>
     13   <div class="container-fluid"> {% if success %}
     14     <div class="alert alert-success alert-dismissible"><i class="fa fa-check-circle"></i> {{ success }}
     15       <button type="button" class="close" data-dismiss="alert">&times;</button>
     16     </div>
     17     {% endif %}
     18     {% if error %}
     19     {% for error_message in error %}
     20     <div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ error_message }}</div>
     21     {% endfor %}
     22     {% endif %}
     23     <div class="panel panel-default">
     24       <div class="panel-heading">
     25         <h3 class="panel-title"><i class="fa fa-puzzle-piece"></i> {{ text_dashboard }}</h3>
     26       </div>
     27       <div class="panel-body">
     28         <div class="row">
     29           <div class="col-md-6">
     30             <div class="row">
     31               <div class="col-md-12">
     32                 <table class="table table-bordered table-hover">
     33                   <thead>
     34                     <tr>
     35                       <td class="text-left" width="60%">{{ column_name }}</td>
     36                       <td class="text-center" width="20%">{{ column_status }}</td>
     37                       <td class="text-right" width="20%">{{ column_action }}</td>
     38                     </tr>
     39                   </thead>
     40                   <tbody>
     41 
     42                   {% for extension in extensions %}
     43                   <tr>
     44                     <td class="text-left">{{ extension.name }}</td>
     45                     <td class="text-center">{{ extension.status }}</td>
     46                     <td class="text-right"> {% if not extension.installed %} <a href="{{ extension.install }}" data-toggle="tooltip" title="{{ button_install }}" class="btn btn-success" id="button-install-{{ extension.code }}"><i class="fa fa-plus-circle"></i></a> {% else %} <a href="{{ extension.edit }}" data-toggle="tooltip" title="{{ button_edit }}" class="btn btn-primary" id="button-edit-{{ extension.code }}"><i class="fa fa-pencil"></i></a> <a onclick="confirm('{{ text_confirm }}') ? location.href='{{ extension.uninstall }}' : false;" data-toggle="tooltip" title="{{ button_uninstall }}" class="btn btn-danger" id="button-uninstall-{{ extension.code }}"><i class="fa fa-minus-circle"></i></a> {% endif %}</td>
     47                   </tr>
     48                   {% endfor %}
     49                     </tbody>
     50 
     51                 </table>
     52               </div>
     53             </div>
     54             <div class="row">
     55               <div class="col-md-12 text-center">
     56                 <div class="row">
     57                   <div class="col-md-4 text-center">
     58                     <div class="well"> <a href="{{ product_link }}"> <span class="fa-stack fa-2x"> <i class="fa fa-square-o fa-stack-2x"></i> <i class="fa fa-tags fa-stack-1x"></i> </span>
     59                       <h4>{{ text_products }}</h4>
     60                       </a> </div>
     61                   </div>
     62                   <div class="col-md-4 text-center">
     63                     <div class="well"> <a href="{{ order_link }}"> <span class="fa-stack fa-2x"> <i class="fa fa-square-o fa-stack-2x"></i> <i class="fa fa-shopping-cart fa-stack-1x"></i> </span>
     64                       <h4>{{ text_orders }}</h4>
     65                       </a> </div>
     66                   </div>
     67                   <div class="col-md-4 text-center">
     68                     <div class="well"> <a href="{{ manage_link }}"> <span class="fa-stack fa-2x"> <i class="fa fa-square-o fa-stack-2x"></i> <i class="fa fa-wrench fa-stack-1x"></i> </span>
     69                       <h4>{{ text_manage }}</h4>
     70                       </a> </div>
     71                   </div>
     72                   <div class="col-md-4 text-center">
     73                     <div class="well"> <a href="http://www.openbaypro.com/help" target="_BLANK"> <span class="fa-stack fa-2x"> <i class="fa fa-square-o fa-stack-2x"></i> <i class="fa fa-comments-o fa-stack-1x"></i> </span>
     74                       <h4>{{ text_help }}</h4>
     75                       </a> </div>
     76                   </div>
     77                   <div class="col-md-4 text-center">
     78                     <div class="well"> <a href="http://www.openbaypro.com/tutorials" target="_BLANK"> <span class="fa-stack fa-2x"> <i class="fa fa-square-o fa-stack-2x"></i> <i class="fa fa-youtube-play fa-stack-1x"></i> </span>
     79                       <h4>{{ text_tutorials }}</h4>
     80                       </a> </div>
     81                   </div>
     82                   <div class="col-md-4 text-center">
     83                     <div class="well"> <a href="http://www.openbaypro.com/suggestions" target="_BLANK"> <span class="fa-stack fa-2x"> <i class="fa fa-square-o fa-stack-2x"></i> <i class="fa fa-bullhorn fa-stack-1x"></i> </span>
     84                       <h4>{{ text_suggestions }}</h4>
     85                       </a> </div>
     86                   </div>
     87                 </div>
     88               </div>
     89             </div>
     90           </div>
     91           <div class="col-md-6" style="padding-left:10px;">
     92             <div id="openbay-version" class="alert alert-info text-left">
     93               <div id="openbay-version-loading"> <i class="fa fa-cog fa-lg fa-spin"></i> {{ text_version_check }} </div>
     94             </div>
     95             <div id="openbay-notification" class="alert alert-info text-left">
     96               <div id="openbay-loading"> <i class="fa fa-cog fa-lg fa-spin"></i> {{ text_getting_messages }} </div>
     97             </div>
     98           </div>
     99         </div>
    100       </div>
    101     </div>
    102   </div>
    103   <script type="text/javascript"><!--
    104   function version() {
    105     var version = '{{ feed_openbaypro_version }}';
    106 
    107     $('#openbay-version').empty().html('<div id="openbay-version-loading"><i class="fa fa-cog fa-lg fa-spin"></i> {{ text_version_check }}</div>');
    108 
    109     setTimeout(function () {
    110       $.ajax({
    111         type: 'GET',
    112         url: 'index.php?route=marketplace/openbay/version&user_token={{ user_token }}',
    113         dataType: 'json',
    114         success: function (json) {
    115           $('#openbay-version-loading').hide();
    116 
    117           if (json.error) {
    118             $('#openbay-version').removeClass('attention').addClass('alert-warning').append(json.msg);
    119           } else {
    120             if (version < json.version) {
    121               $('#openbay-version').removeClass('attention').addClass('alert-warning').append('<i class="fa fa-warning"></i> {{ text_version_current }} v.' + version + ', {{ text_version_available }} v.' + json.version);
    122             } else {
    123               $('#openbay-version').removeClass('attention').addClass('alert-success').append('<i class="fa fa-check"></i> {{ text_version_latest }} (v.' + version + ')');
    124             }
    125           }
    126         },
    127         failure: function () {
    128           $('#openbay-version').html('{{ error_failed }}<strong><span onclick="version();">{{ button_retry }}</span></strong>');
    129         },
    130         error: function (xhr, ajaxOptions, thrownError) {
    131           if (xhr.status != 0) {
    132             alert(xhr.status + "\r\n" + thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
    133           }
    134         }
    135       });
    136     }, 500);
    137   }
    138 
    139   function getNotifications() {
    140     $('#openbay-notification').empty().html('<div id="openbay-loading"><i class="fa fa-cog fa-lg fa-spin"></i> {{ text_getting_messages }}</div>');
    141 
    142     setTimeout(function () {
    143       $.ajax({
    144         type: 'GET',
    145         url: 'index.php?route=marketplace/openbay/notifications&user_token={{ user_token }}',
    146         dataType: 'json',
    147         success: function (json) {
    148           html = '<h4><i class="fa fa-info-circle"></i>  {{ text_title_messages }}</h4>';
    149           html += '<ul>';
    150           $.each(json, function (key, val) {
    151             html += '<li>' + val + '</li>';
    152           });
    153           html += '</ul>';
    154 
    155           $('#openbay-notification').html(html);
    156         },
    157         error: function (xhr, ajaxOptions, thrownError) {
    158           if (xhr.status != 0) {
    159             alert(xhr.status + "\r\n" +thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
    160           }
    161         }
    162       });
    163     }, 500);
    164   }
    165 
    166   $(document).ready(function () {
    167     version();
    168     getNotifications();
    169   });
    170 //--></script></div>
    171 {{ footer }}