shop.balmet.com

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

store_list.twig (3281B)


      1 {{ header }}{{ column_left }}
      2 <div id="content">
      3   <div class="page-header">
      4     <div class="container-fluid">
      5       <div class="pull-right"><a href="{{ add }}" data-toggle="tooltip" title="{{ button_add }}" class="btn btn-primary"><i class="fa fa-plus"></i></a>
      6         <button type="button" data-toggle="tooltip" title="{{ button_delete }}" class="btn btn-danger" onclick="confirm('{{ text_confirm }}') ? $('#form-store').submit() : false;"><i class="fa fa-trash-o"></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">
     17     {% if error_warning %}
     18     <div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ error_warning }}
     19       <button type="button" class="close" data-dismiss="alert">&times;</button>
     20     </div>
     21     {% endif %}
     22     {% if success %}
     23     <div class="alert alert-success alert-dismissible"><i class="fa fa-check-circle"></i> {{ success }}
     24       <button type="button" class="close" data-dismiss="alert">&times;</button>
     25     </div>
     26     {% endif %}
     27     <div class="panel panel-default">
     28       <div class="panel-heading">
     29         <h3 class="panel-title"><i class="fa fa-list"></i> {{ text_list }}</h3>
     30       </div>
     31       <div class="panel-body">
     32         <form action="{{ delete }}" method="post" enctype="multipart/form-data" id="form-store">
     33           <div class="table-responsive">
     34             <table class="table table-bordered table-hover">
     35               <thead>
     36                 <tr>
     37                   <td style="width: 1px;" class="text-center"><input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);" /></td>
     38                   <td class="text-left">{{ column_name }}</td>
     39                   <td class="text-left">{{ column_url }}</td>
     40                   <td class="text-right">{{ column_action }}</td>
     41                 </tr>
     42               </thead>
     43               <tbody>
     44                 {% if stores %}
     45                 {% for store in stores %}
     46                 <tr>
     47                   <td class="text-center">{% if store.store_id in selected %}
     48                     <input type="checkbox" name="selected[]" value="{{ store.store_id }}" checked="checked" />
     49                     {% else %}
     50                     <input type="checkbox" name="selected[]" value="{{ store.store_id }}" />
     51                     {% endif %}</td>
     52                   <td class="text-left">{{ store.name }}</td>
     53                   <td class="text-left">{{ store.url }}</td>
     54                   <td class="text-right"><a href="{{ store.edit }}" data-toggle="tooltip" title="{{ button_edit }}" class="btn btn-primary"><i class="fa fa-pencil"></i></a></td>
     55                 </tr>
     56                 {% endfor %}
     57                 {% else %}
     58                 <tr>
     59                   <td class="text-center" colspan="4">{{ text_no_results }}</td>
     60                 </tr>
     61                 {% endif %}
     62               </tbody>
     63             </table>
     64           </div>
     65         </form>
     66       </div>
     67     </div>
     68   </div>
     69 </div>
     70 {{ footer }}