shop.balmet.com

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

seo_url_list.twig (9664B)


      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" data-toggle="tooltip" title="{{ button_filter }}" onclick="$('#filter-seo').toggleClass('hidden-sm hidden-xs');" class="btn btn-default hidden-md hidden-lg"><i class="fa fa-filter"></i></button>
      7         <a href="{{ add }}" data-toggle="tooltip" title="{{ button_add }}" class="btn btn-primary"><i class="fa fa-plus"></i></a>
      8         <button type="button" data-toggle="tooltip" title="{{ button_delete }}" class="btn btn-danger" onclick="confirm('{{ text_confirm }}') ? $('#form-url-alias').submit() : false;"><i class="fa fa-trash-o"></i></button>
      9       </div>
     10       <h1>{{ heading_title }}</h1>
     11       <ul class="breadcrumb">
     12         {% for breadcrumb in breadcrumbs %}
     13         <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
     14         {% endfor %}
     15       </ul>
     16     </div>
     17   </div>
     18   <div class="container-fluid">{% 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="row">
     29       <div id="filter-seo" class="col-md-3 col-md-push-9 col-sm-12 hidden-sm hidden-xs">
     30         <div class="panel panel-default">
     31           <div class="panel-heading">
     32             <h3 class="panel-title"><i class="fa fa-filter"></i> {{ text_filter }}</h3>
     33           </div>
     34           <div class="panel-body">
     35             <div class="form-group">
     36               <label class="control-label" for="input-query">{{ entry_query }}</label>
     37               <input type="text" name="filter_query" value="{{ filter_query }}" placeholder="{{ entry_query }}" id="input-query" class="form-control" />
     38             </div>
     39             <div class="form-group">
     40               <label class="control-label" for="input-keyword">{{ entry_keyword }}</label>
     41               <input type="text" name="filter_keyword" value="{{ filter_keyword }}" placeholder="{{ entry_keyword }}" id="input-keyword" class="form-control" />
     42             </div>
     43             <div class="form-group">
     44               <label class="control-label" for="input-store">{{ entry_store }}</label>
     45               <select name="filter_store_id" id="input-store" class="form-control">
     46                 <option value=""></option>
     47                 {% if filter_store_id == '0' %}
     48                 <option value="0" selected="selected">{{ text_default }}</option>
     49                 {% else %}
     50                 <option value="0">{{ text_default }}</option>
     51                 {% endif %}                  
     52                 {% for store in stores %}
     53                 {% if store.store_id == filter_store_id %}
     54                 <option value="{{ store.store_id }}" selected="selected">{{ store.name }}</option>
     55                 {% else %}
     56                 <option value="{{ store.store_id }}">{{ store.name }}</option>
     57                 {% endif %}
     58                 {% endfor %}
     59               </select>
     60             </div>
     61             <div class="form-group">
     62               <label class="control-label" for="input-language">{{ entry_language }}</label>
     63               <select name="filter_language_id" id="input-language" class="form-control">
     64                 <option value=""></option>
     65                 
     66                 
     67                   
     68                 
     69               
     70               
     71               
     72               
     73               
     74                   
     75                   {% for language in languages %}
     76                   {% if language.language_id == filter_language_id %}
     77                   
     78                   
     79               
     80               
     81               
     82               
     83               
     84                 
     85                   
     86                 
     87                 <option value="{{ language.language_id }}" selected="selected">{{ language.name }}</option>
     88                 
     89                 
     90                   
     91                 
     92               
     93               
     94               
     95               
     96               
     97                   
     98                   {% else %}
     99                   
    100                   
    101               
    102               
    103               
    104               
    105               
    106                 
    107                   
    108                 
    109                 <option value="{{ language.language_id }}">{{ language.name }}</option>
    110                 
    111                 
    112                   
    113                 
    114               
    115               
    116               
    117               
    118               
    119                   
    120                   {% endif %}
    121                   {% endfor %}
    122                 
    123                 
    124             
    125             
    126             
    127             
    128             
    129               
    130                 
    131               
    132               </select>
    133             </div>
    134             <div class="text-right">
    135               <button type="button" id="button-filter" class="btn btn-default"><i class="fa fa-filter"></i> {{ button_filter }}</button>
    136             </div>
    137           </div>
    138         </div>
    139       </div>
    140       <div class="col-md-9 col-md-pull-3 col-sm-12">
    141         <div class="panel panel-default">
    142           <div class="panel-heading">
    143             <h3 class="panel-title"><i class="fa fa-list"></i> {{ text_list }}</h3>
    144           </div>
    145           <div class="panel-body">
    146             <form action="{{ delete }}" method="post" enctype="multipart/form-data" id="form-url-alias">
    147               <div class="table-responsive">
    148                 <table class="table table-bordered table-hover">
    149                   <thead>
    150                     <tr>
    151                       <td style="width: 1px;" class="text-center"><input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);" /></td>
    152                       <td class="text-left">{% if sort == 'query' %}<a href="{{ sort_query }}" class="{{ order|lower }}">{{ column_query }}</a>{% else %}<a href="{{ sort_query }}">{{ column_query }}</a>{% endif %}</td>
    153                       <td class="text-left">{% if sort == 'keyword' %}<a href="{{ sort_keyword }}" class="{{ order|lower }}">{{ column_keyword }}</a> {% else %}<a href="{{ sort_keyword }}">{{ column_keyword }}</a>{% endif %}</td>
    154                       <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>
    155                       <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>
    156                       <td class="text-right">{{ column_action }}</td>
    157                     </tr>
    158                   </thead>
    159                   <tbody>
    160                   
    161                   {% if seo_urls %}
    162                   {% for seo_url in seo_urls %}
    163                   <tr>
    164                     <td class="text-center">{% if seo_url.seo_url_id in selected %}
    165                       <input type="checkbox" name="selected[]" value="{{ seo_url.seo_url_id }}" checked="checked" />
    166                       {% else %}
    167                       <input type="checkbox" name="selected[]" value="{{ seo_url.seo_url_id }}" />
    168                       {% endif %}</td>
    169                     <td class="text-left">{{ seo_url.query }}</td>
    170                     <td class="text-left">{{ seo_url.keyword }}</td>
    171                     <td class="text-left">{{ seo_url.store }}</td>
    172                     <td class="text-left">{{ seo_url.language }}</td>
    173                     <td class="text-right"><a href="{{ seo_url.edit }}" data-toggle="tooltip" title="{{ button_edit }}" class="btn btn-primary"><i class="fa fa-pencil"></i></a></td>
    174                   </tr>
    175                   {% endfor %}
    176                   {% else %}
    177                   <tr>
    178                     <td class="text-center" colspan="6">{{ text_no_results }}</td>
    179                   </tr>
    180                   {% endif %}
    181                     </tbody>
    182                   
    183                 </table>
    184               </div>
    185             </form>
    186             <div class="row">
    187               <div class="col-sm-6 text-left">{{ pagination }}</div>
    188               <div class="col-sm-6 text-right">{{ results }}</div>
    189             </div>
    190           </div>
    191         </div>
    192       </div>
    193     </div>
    194   </div>
    195   <script type="text/javascript"><!--
    196 $('#button-filter').on('click', function() {
    197 	var url = 'index.php?route=design/seo_url&user_token={{ user_token }}';
    198 
    199 	var filter_query = $('input[name=\'filter_query\']').val();
    200 
    201 	if (filter_query) {
    202 		url += '&filter_query=' + encodeURIComponent(filter_query);
    203 	}
    204 
    205 	var filter_keyword = $('input[name=\'filter_keyword\']').val();
    206 
    207 	if (filter_keyword) {
    208 		url += '&filter_keyword=' + encodeURIComponent(filter_keyword);
    209 	}
    210 
    211 	var filter_store_id = $('select[name=\'filter_store_id\']').val();
    212 
    213 	if (filter_store_id) {
    214 		url += '&filter_store_id=' + encodeURIComponent(filter_store_id);
    215 	}
    216 	
    217 	var filter_language_id = $('select[name=\'filter_language_id\']').val();
    218 
    219 	if (filter_language_id) {
    220 		url += '&filter_language_id=' + encodeURIComponent(filter_language_id);
    221 	}
    222 
    223 	location = url;
    224 });
    225 //--></script> 
    226 </div>
    227 {{ footer }}