shop.balmet.com

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

recurring_list.twig (4199B)


      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="submit" form="form-recurring" formaction="{{ copy }}" data-toggle="tooltip" title="{{ button_copy }}" class="btn btn-default"><i class="fa fa-copy"></i></button>
      7         <button type="button" data-toggle="tooltip" title="{{ button_delete }}" class="btn btn-danger" onclick="confirm('{{ text_confirm }}') ? $('#form-recurring').submit() : false;"><i class="fa fa-trash-o"></i></button>
      8       </div>
      9       <h1>{{ heading_title }}</h1>
     10       <ul class="breadcrumb">
     11         {% for breadcrumb in breadcrumbs %}
     12         <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
     13         {% endfor %}
     14       </ul>
     15     </div>
     16   </div>
     17   <div class="container-fluid">
     18     {% if error_warning %}
     19     <div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ error_warning }}
     20       <button type="button" class="close" data-dismiss="alert">&times;</button>
     21     </div>
     22     {% endif %}
     23     {% if success %}
     24     <div class="alert alert-success alert-dismissible"><i class="fa fa-check-circle"></i> {{ success }}
     25       <button type="button" class="close" data-dismiss="alert">&times;</button>
     26     </div>
     27     {% endif %}
     28     <div class="panel panel-default">
     29       <div class="panel-heading">
     30         <h3 class="panel-title"><i class="fa fa-list"></i> {{ text_list }}</h3>
     31       </div>
     32       <div class="panel-body">
     33         <form action="{{ delete }}" method="post" enctype="multipart/form-data" id="form-recurring">
     34           <div class="table-responsive">
     35             <table class="table table-bordered table-hover">
     36               <thead>
     37                 <tr>
     38                   <td class="text-center" width="1"><input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);" /></td>
     39                   <td class="text-left">{% if sort == 'pd.name' %}
     40                     <a href="{{ sort_name }}" class="{{ order|lower }}">{{ column_name }}</a>
     41                     {% else %}
     42                     <a href="{{ sort_name }}">{{ column_name }}</a>
     43                     {% endif %}</td>
     44                   <td class="text-right">{% if sort == 'p.sort_order' %}
     45                     <a href="{{ sort_sort_order }}" class="{{ order|lower }}">{{ column_sort_order }}</a>
     46                     {% else %}
     47                     <a href="{{ sort_sort_order }}">{{ column_sort_order }}</a>
     48                     {% endif %}</td>
     49                   <td class="text-right">{{ column_action }}</td>
     50                 </tr>
     51               </thead>
     52               <tbody>
     53                 {% if recurrings %}
     54                 {% for recurring in recurrings %}
     55                 <tr>
     56                   <td class="text-center">{% if recurring.recurring_id in selected %}
     57                     <input type="checkbox" name="selected[]" value="{{ recurring.recurring_id }}" checked="checked" />
     58                     {% else %}
     59                     <input type="checkbox" name="selected[]" value="{{ recurring.recurring_id }}" />
     60                     {% endif %}</td>
     61                   <td class="text-left">{{ recurring.name }}</td>
     62                   <td class="text-right">{{ recurring.sort_order }}</td>
     63                   <td class="text-right"><a href="{{ recurring.edit }}" data-toggle="tooltip" title="{{ button_edit }}" class="btn btn-primary"><i class="fa fa-pencil"></i></a></td>
     64                 </tr>
     65                 {% endfor %}
     66                 {% else %}
     67                 <tr>
     68                   <td class="text-center" colspan="4">{{ text_no_results }}</td>
     69                 </tr>
     70                 {% endif %}
     71               </tbody>
     72             </table>
     73           </div>
     74         </form>
     75         <div class="row">
     76           <div class="col-sm-6 text-left">{{ pagination }}</div>
     77           <div class="col-sm-6 text-right">{{ results }}</div>
     78         </div>
     79       </div>
     80     </div>
     81   </div>
     82 </div>
     83 {{ footer }}