File: /home/temp/yarusvl.ru/adminx/tpls/html/stores.tpl
{* Title *}
{$meta_title=$btr->stores_stores scope=parent}
{*Название страницы*}
<div class="row">
<div class="col-lg-7 col-md-7">
<div class="wrap_heading">
<div class="box_heading heading_page">
{$btr->stores_stores|escape} - {$stores_count}
</div>
<div class="box_btn_heading">
<a class="btn btn_small btn-info" href="{url module=StoreAdmin return=$smarty.server.REQUEST_URI}">
{include file='svg_icon.tpl' svgId='plus'}
<span>{$btr->stores_add_store|escape}</span>
</a>
</div>
</div>
</div>
</div>
{*Главная форма страницы*}
<div class="boxed fn_toggle_wrap">
{if $stores}
<div class="row">
<div class="col-lg-12 col-md-12 ">
<div class="fn_toggle_wrap">
<div class="heading_box visible_md">
{$btr->general_filter|escape}
<div class="toggle_arrow_wrap fn_toggle_card text-primary">
<a class="btn-minimize" href="javascript:;" ><i class="fa fn_icon_arrow fa-angle-down"></i></a>
</div>
</div>
<div class="boxed_sorting toggle_body_wrap off fn_card">
<div class="row">
<div class="col-lg-3 col-md-3 col-sm 12">
<select onchange="location = this.value;" class="selectpicker">
<option value="{url limit=5}" {if $current_limit == 5}selected{/if}>{$btr->general_show_by|escape} 5</option>
<option value="{url limit=10}" {if $current_limit == 10}selected{/if}>{$btr->general_show_by|escape} 10</option>
<option value="{url limit=25}" {if $current_limit == 25}selected{/if}>{$btr->general_show_by|escape} 25</option>
<option value="{url limit=50}" {if $current_limit == 50}selected{/if}>{$btr->general_show_by|escape} 50</option>
<option value="{url limit=100}" {if $current_limit == 100}selected=""{/if}>{$btr->general_show_by|escape} 100</option>
</select>
</div>
</div>
</div>
</div>
</div>
</div>
<form method="post" class="fn_form_list">
<input type="hidden" name="session_id" value="{$smarty.session.id}" />
<div class="mgc_list products_list fn_sort_list">
{*Шапка таблицы*}
<div class="mgc_list_head">
<div class="mgc_list_boding mgc_list_drag"></div>
<div class="mgc_list_heading mgc_list_check">
<input class="hidden_check fn_check_all" type="checkbox" id="check_all_1" name="" value="" />
<label class="mgc_ckeckbox" for="check_all_1"></label>
</div>
<div class="mgc_list_heading mgc_list_photo">{$btr->general_photo|escape}</div>
<div class="mgc_list_heading mgc_list_stores_name">{$btr->general_name|escape}</div>
<div class="mgc_list_heading mgc_list_status">{$btr->general_enable|escape}</div>
<div class="mgc_list_heading mgc_list_setting">{$btr->general_activities|escape}</div>
<div class="mgc_list_heading mgc_list_close"></div>
</div>
{*Параметры элемента*}
<div class="mgc_list_body sortable">
{foreach $stores as $store}
<div class="fn_row mgc_list_body_item fn_sort_item">
<div class="mgc_list_row ">
<input type="hidden" name="positions[{$store->id}]" value="{$store->position}" />
<div class="mgc_list_boding mgc_list_drag move_zone">
{include file='svg_icon.tpl' svgId='drag_vertical'}
</div>
<div class="mgc_list_boding mgc_list_check">
<input class="hidden_check" type="checkbox" id="id_{$store->id}" name="check[]" value="{$store->id}" />
<label class="mgc_ckeckbox" for="id_{$store->id}"></label>
</div>
<div class="mgc_list_boding mgc_list_photo">
{if $store->image}
<a href="{url module=StoreAdmin id=$store->id return=$smarty.server.REQUEST_URI}">
<img src="{$store->image|resize:55:55:false:$config->resized_stores_dir}" alt="" /></a>
{else}
<img height="55" width="55" src="tpls/images/no_image.png"/>
{/if}
</div>
<div class="mgc_list_boding mgc_list_stores_name">
<a href="{url module=StoreAdmin id=$store->id return=$smarty.server.REQUEST_URI}">
{$store->name|escape}
</a>
</div>
<div class="mgc_list_boding mgc_list_status">
{*visible*}
<label class="switch switch-default ">
<input class="switch-input fn_ajax_action {if $store->visible}fn_active_class{/if}" data-module="stores" data-action="visible" data-id="{$store->id}" name="visible" value="1" type="checkbox" {if $store->visible}checked=""{/if}/>
<span class="switch-label"></span>
<span class="switch-handle"></span>
</label>
</div>
<div class="mgc_list_setting">
<a href="../{$lang_link}stores/{$store->url|escape}" target="_blank" data-hint="{$btr->general_view|escape}" class="setting_icon setting_icon_open hint-bottom-middle-t-info-s-small-mobile hint-anim">
{include file='svg_icon.tpl' svgId='icon_desktop'}
</a>
</div>
<div class="mgc_list_boding mgc_list_close">
{*delete*}
<button data-hint="{$btr->stores_delete_store|escape}" type="button" class="btn_close fn_remove hint-bottom-right-t-info-s-small-mobile hint-anim" data-toggle="modal" data-target="#fn_action_modal" onclick="success_action($(this));">
{include file='svg_icon.tpl' svgId='delete'}
</button>
</div>
</div>
</div>
{/foreach}
</div>
{*Блок массовых действий*}
<div class="mgc_list_footer fn_action_block">
<div class="mgc_list_foot_left">
<div class="mgc_list_boding mgc_list_drag"></div>
<div class="mgc_list_heading mgc_list_check">
<input class="hidden_check fn_check_all" type="checkbox" id="check_all_2" name="" value=""/>
<label class="mgc_ckeckbox" for="check_all_2"></label>
</div>
<div class="mgc_list_option">
<select name="action" class="selectpicker">
<option value="in_feed">{$btr->stores_in_xml|escape}</option>
<option value="out_feed">{$btr->stores_out_xml|escape}</option>
<option value="delete">{$btr->general_delete|escape}</option>
</select>
</div>
</div>
<button type="submit" class="btn btn_small btn_blue">
{include file='svg_icon.tpl' svgId='checked'}
<span>{$btr->general_apply|escape}</span>
</button>
</div>
</div>
</form>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm 12 txt_center">
{include file='pagination.tpl'}
</div>
</div>
{else}
<div class="heading_box mt-1">
<div class="text_grey">{$btr->stores_no|escape}</div>
</div>
{/if}
</div>