shop.balmet.com

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

translation_list.twig (4654B)


      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-translation').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">{% if error_warning %}
     17     <div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ error_warning }}
     18       <button type="button" class="close" data-dismiss="alert">&times;</button>
     19     </div>
     20     {% endif %}
     21     {% if success %}
     22     <div class="alert alert-success alert-dismissible"><i class="fa fa-check-circle"></i> {{ success }}
     23       <button type="button" class="close" data-dismiss="alert">&times;</button>
     24     </div>
     25     {% endif %}
     26     <div class="panel panel-default">
     27       <div class="panel-heading">
     28         <h3 class="panel-title"><i class="fa fa-list"></i> {{ text_list }}</h3>
     29       </div>
     30       <div class="panel-body">
     31         <form action="{{ delete }}" method="post" enctype="multipart/form-data" id="form-translation">
     32           <div class="table-responsive">
     33             <table class="table table-bordered">
     34               <thead>
     35                 <tr>
     36                   <td style="width: 1px;" class="text-center"><input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);" /></td>
     37                   <td class="text-left">{% if sort == 'store' %}<a href="{{ sort_store }}" class="{{ order|lower }}">{{ column_store }}</a> {% else %}<a href="{{ sort_store }}">{{ column_store }}</a>{% endif %}</td>
     38                   <td class="text-left">{% if sort == 'language' %}<a href="{{ sort_language }}" class="{{ order|lower }}">{{ column_language }}</a>{% else %}<a href="{{ sort_language }}">{{ column_language }}</a>{% endif %}</td>
     39                   <td class="text-left">{% if sort == 'route' %}<a href="{{ sort_route }}" class="{{ order|lower }}">{{ column_route }}</a> {% else %}<a href="{{ sort_route }}">{{ column_route }}</a>{% endif %}</td>
     40                   <td class="text-left">{% if sort == 'key' %}<a href="{{ sort_key }}" class="{{ order|lower }}">{{ column_key }}</a>{% else %}<a href="{{ sort_key }}">{{ column_key }}</a>{% endif %}</td>
     41                   <td class="text-left">{% if sort == 'value' %}<a href="{{ sort_value }}" class="{{ order|lower }}">{{ column_value }}</a>{% else %}<a href="{{ sort_value }}">{{ column_value }}</a>{% endif %}</td>
     42                   <td class="text-right">{{ column_action }}</td>
     43                 </tr>
     44               </thead>
     45               <tbody>
     46               {% if translations %}
     47               {% for translation in translations %}
     48               <tr>
     49                 <td class="text-center">{% if translation.translation_id in selected %}
     50                   <input type="checkbox" name="selected[]" value="{{ translation.translation_id }}" checked="checked" />
     51                   {% else %}
     52                   <input type="checkbox" name="selected[]" value="{{ translation.translation_id }}" />
     53                   {% endif %}</td>
     54                 <td class="text-left">{{ translation.store }}</td>
     55                 <td class="text-left">{{ translation.language }}</td>
     56                 <td class="text-left">{{ translation.route }}</td>
     57                 <td class="text-left">{{ translation.key }}</td>
     58                 <td class="text-left">{{ translation.value }}</td>
     59                 <td class="text-right"><a href="{{ translation.edit }}" data-toggle="tooltip" title="{{ button_edit }}" class="btn btn-primary"><i class="fa fa-pencil"></i></a></td>
     60               </tr>
     61               {% endfor %}
     62               {% else %}
     63               <tr>
     64                 <td class="text-center" colspan="7">{{ text_no_results }}</td>
     65               </tr>
     66               {% endif %}
     67               </tbody>
     68             </table>
     69           </div>
     70         </form>
     71         <div class="row">
     72           <div class="col-sm-6 text-left">{{ pagination }}</div>
     73           <div class="col-sm-6 text-right">{{ results }}</div>
     74         </div>
     75       </div>
     76     </div>
     77   </div>
     78 </div>
     79 {{ footer }}