{{ header }}{{ column_left }}
<div id="content">
    <div class="page-header">
        <div class="container-fluid">
            <div class="pull-right">
                <button type="submit" form="form-ms_integration" data-toggle="tooltip" title="{{ button_save }}" class="btn btn-primary"><i class="fa fa-save"></i></button>
                <a href="{{ cancel }}" data-toggle="tooltip" title="{{ button_cancel }}" class="btn btn-default"><i class="fa fa-reply"></i></a></div>
            <h1>{{ heading_title }}</h1>
            <ul class="breadcrumb">
                {% for breadcrumb in breadcrumbs %}
                <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
                {% endfor %}
            </ul>
        </div>
    </div>
    <div class="container-fluid">
        {% if error_warning %}
        <div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> {{ error_warning }}
            <button type="button" class="close" data-dismiss="alert">&times;</button>
        </div>
        {% endif %}
        {% if success %}
        <div class="alert alert-success"><i class="fa fa-check-circle"></i> {{ success }}
            <button type="button" class="close" data-dismiss="alert">&times;</button>
        </div>
        {% endif %}
        <div class="panel panel-default">
            <div class="panel-body">
                <ul class="nav nav-tabs">
                    <li class="active"><a href="#tab-setting" data-toggle="tab">{{ tab_setting }}</a></li>
                    {% if ms %}
                    <li><a href="#tab-products" data-toggle="tab">{{ tab_products }}</a></li>
                    <li><a href="#tab-orders" data-toggle="tab">{{ tab_orders }}</a></li>
                    <li><a href="#tab-import" data-toggle="tab">{{ tab_import }}</a></li>
                    {% endif %}
                    <li><a href="#tab-info" data-toggle="tab">Информация</a></li>
                </ul>
                <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-ms_integration" class="form-horizontal">
                    <div class="tab-content">
                        <div class="tab-pane active" id="tab-setting">
                            {% if checkTrial %}
                            <div class="panel panel-warning">
                                <div class="panel-heading" style="color: #f3a638; background-color: #fce7c8; border-color: #f9d5a2;"><h3 class="panel-title"><i class="fa fa-exclamation-triangle"></i> Вы используете триал версию модуля</h3></div>
                                <div class="panel-body">
                                    <div class="form-group">
                                        <div class="col-sm-12" style="font-weight: bold">
                                            Лицензия действительна до {{ checkTrial }}.
                                        </div>
                                        <div class="col-sm-12" style="font-weight: bold">
                                            Вы можете приобрести расщиренную версию модуля по <a href="http://ciframe.ru/moysklad-opencart-connector/" target="_blank">ссылке</a>.
                                        </div>
                                    </div>
                                </div>
                            </div>
                            {% endif %}
                            {% if check_licence!='' %}
                            <div class="panel panel-danger">
                                <div class="panel-heading" style="background-color: #f5c1bb;border-color: #f3b5ad;"><h3 class="panel-title"><i class="fa fa-exclamation-triangle"></i> Ошибка</h3></div>
                                <div class="panel-body">
                                    <div class="form-group">
                                        <div class="col-sm-12">
                                            <h4>{{ check_licence }}</h4>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            {% endif %}
                            <div class="panel panel-default">
                                <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-link"></i> Основные параметры</h3></div>
                                <div class="panel-body">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-status">{{ entry_status }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_status" id="input-status" class="form-control">
                                                {% if settings.ms_integration_status %}
                                                    <option value="1" selected="selected">{{ text_enabled }}</option>
                                                    <option value="0">{{ text_disabled }}</option>
                                                {% else %}
                                                    <option value="1">{{ text_enabled }}</option>
                                                    <option value="0" selected="selected">{{ text_disabled }}</option>
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_status }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-ms-login">{{ entry_ms_login }}</label>
                                        <div class="col-sm-4">
                                            <input type="text" name="ms_integration_ms_login" id="input-ms-login" class="form-control" value="{{ settings.ms_integration_ms_login }}">
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_ms_login }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-ms-password">{{ entry_ms_password }}</label>
                                        <div class="col-sm-4">
                                            <input type="password" name="ms_integration_ms_password" id="input-ms-password" class="form-control" value="{{ settings.ms_integration_ms_password }}">
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_ms_password }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-license">{{ entry_licence }}</label>
                                        <div class="col-sm-10">
                                            <input type="text" name="ms_integration_licence" id="input-license" class="form-control" value="{{ settings.ms_integration_licence }}">
                                        </div>
                                    </div>
                                    {% if ms %}
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label" for="input-cron-time">{{ entry_cron_time }}</label>
                                            <div class="col-sm-4">
                                                <input type="number" name="ms_integration_cron_time" id="input-cron-time" class="form-control" value="{{ settings.ms_integration_cron_time }}">
                                            </div>
                                            <div class="col-sm-6">
                                                {{ help_cron_time }}
                                            </div>
                                        </div>
                                    {% endif %}
                                </div>
                            </div>
                        </div>
                        {% if ms %}
                        <div class="tab-pane" id="tab-products">
                            <div class="panel panel-default">
                                <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-link"></i> Настройки связки</h3></div>
                                <div class="panel-body">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-ms-id">{{ entry_ms_id }}</label>
                                        <div class="col-sm-4">
                                            <select  name="ms_integration_ms_id" id="input-ms-id" class="form-control">
                                                {% for key, name in setting_ms_select %}
                                                    {% if key==settings.ms_integration_ms_id %}
                                                        <option value="{{ key }}" selected="selected">{{ name }}</option>
                                                    {% else %}
                                                        <option value="{{ key }}">{{ name }}</option>
                                                    {% endif %}
                                                {% endfor %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_ms_id }}
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-oc-id">{{ entry_oc_id }}</label>
                                        <div class="col-sm-4">
                                            <select  name="ms_integration_oc_id" id="input-oc-id" class="form-control">
                                                {% for key, name in setting_oc_select %}
                                                    {% if key==settings.ms_integration_oc_id %}
                                                        <option value="{{ key }}" selected="selected">{{ name }}</option>
                                                    {% else %}
                                                        <option value="{{ key }}">{{ name }}</option>
                                                    {% endif %}
                                                {% endfor %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_oc_id }}
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-language">{{ entry_language }}</label>
                                        <div class="col-sm-4">
                                            <select  name="ms_integration_language" id="input-language" class="form-control">
                                                {% for key, name in setting_language_select %}
                                                    {% if key==settings.ms_integration_language %}
                                                        <option value="{{ key }}" selected="selected">{{ name }}</option>
                                                    {% else %}
                                                        <option value="{{ key }}">{{ name }}</option>
                                                    {% endif %}
                                                {% endfor %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_language }}
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="panel panel-default">
                                <div class="panel-heading" style="cursor: pointer" data-toggle="collapse" data-target="#product-create-panel"><h3 class="panel-title"><i class="fa fa-plus"></i>Настройки создания товаров</h3></div>
                                <div id="product-create-panel" class="panel-body collapse in">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-create-product">{{ entry_create_product }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_create_product" id="input-create-product" class="form-control">
                                                {% if settings.ms_integration_create_product %}
                                                    <option value="1" selected="selected">{{ text_enabled }}</option>
                                                    <option value="0">{{ text_disabled }}</option>
                                                {% else %}
                                                    <option value="1">{{ text_enabled }}</option>
                                                    <option value="0" selected="selected">{{ text_disabled }}</option>
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_create_product }}
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-subtract_create">{{ entry_subtract_create }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_subtract_create" id="input-subtract_create" class="form-control">
                                                {% if settings.ms_integration_subtract_create %}
                                                    <option value="1" selected="selected">{{ text_enabled }}</option>
                                                    <option value="0">{{ text_disabled }}</option>
                                                {% else %}
                                                    <option value="1">{{ text_enabled }}</option>
                                                    <option value="0" selected="selected">{{ text_disabled }}</option>
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_subtract_create }}
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-shipping_create">{{ entry_shipping_create }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_shipping_create" id="input-shipping_create" class="form-control">
                                                {% if settings.ms_integration_shipping_create %}
                                                    <option value="1" selected="selected">{{ text_enabled }}</option>
                                                    <option value="0">{{ text_disabled }}</option>
                                                {% else %}
                                                    <option value="1">{{ text_enabled }}</option>
                                                    <option value="0" selected="selected">{{ text_disabled }}</option>
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_shipping_create }}
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-status_create">{{ entry_status_create }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_status_create" id="input-status_create" class="form-control">
                                                {% if settings.ms_integration_status_create %}
                                                    <option value="1" selected="selected">{{ text_enabled }}</option>
                                                    <option value="0">{{ text_disabled }}</option>
                                                {% else %}
                                                    <option value="1">{{ text_enabled }}</option>
                                                    <option value="0" selected="selected">{{ text_disabled }}</option>
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_status_create }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-stock_status_create">{{ entry_stock_status_create }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_stock_status_create" id="input-stock_status_create" class="form-control">
                                                <option value=""></option>
                                                {% for key, name in setting_stock_status_select %}
                                                    {% if key==settings.ms_integration_stock_status_create %}
                                                        <option value="{{ key }}" selected="selected">{{ name }}</option>
                                                    {% else %}
                                                        <option value="{{ key }}">{{ name }}</option>
                                                    {% endif %}
                                                {% endfor %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_stock_status_create }}
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="panel panel-default">
                                <div class="panel-heading" style="cursor: pointer" data-toggle="collapse" data-target="#product-update-panel"><h3 class="panel-title"><i class="fa fa-repeat"></i> Настройки обновления товаров</h3></div>
                                <div id="product-update-panel" class="panel-body collapse in">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-stock">{{ entry_stock }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_stock" id="input-stock" class="form-control">
                                                {% if settings.ms_integration_stock %}
                                                    <option value="1" selected="selected">{{ text_enabled }}</option>
                                                    <option value="0">{{ text_disabled }}</option>
                                                {% else %}
                                                    <option value="1">{{ text_enabled }}</option>
                                                    <option value="0" selected="selected">{{ text_disabled }}</option>
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_stock }}
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-stock_out_status">{{ entry_stock_out_status }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_stock_out_status" id="input-stock_out_status" class="form-control">
                                                {% if settings.ms_integration_stock_out_status==1 %}
                                                    <option value="1" selected="selected">{{ text_enabled }}</option>
                                                    <option value="0">{{ text_disabled }}</option>
                                                    <option value="2">Оставлять без изменений</option>
                                                {% else %}
                                                    {% if settings.ms_integration_stock_out_status==0 %}
                                                        <option value="1">{{ text_enabled }}</option>
                                                        <option value="0" selected="selected">{{ text_disabled }}</option>
                                                        <option value="2">Оставлять без изменений</option>
                                                    {% else %}
                                                        <option value="1">{{ text_enabled }}</option>
                                                        <option value="0">{{ text_disabled }}</option>
                                                        <option value="2" selected="selected">Оставлять без изменений</option>
                                                    {% endif %}
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_stock_out_status }}
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-in_stock_status">{{ entry_in_stock_status }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_in_stock_status" id="input-in_stock_status" class="form-control">
                                                {% if settings.ms_integration_in_stock_status==1 %}
                                                    <option value="1" selected="selected">{{ text_enabled }}</option>
                                                    <option value="0">{{ text_disabled }}</option>
                                                    <option value="2">Оставлять без изменений</option>
                                                {% else %}
                                                    {% if settings.ms_integration_in_stock_status==0 %}
                                                        <option value="1">{{ text_enabled }}</option>
                                                        <option value="0" selected="selected">{{ text_disabled }}</option>
                                                        <option value="2">Оставлять без изменений</option>
                                                    {% else %}
                                                        <option value="1">{{ text_enabled }}</option>
                                                        <option value="0">{{ text_disabled }}</option>
                                                        <option value="2" selected="selected">Оставлять без изменений</option>
                                                    {% endif %}
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_in_stock_status }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">{{ entry_stock_store }}</label>
                                        <div class="col-sm-4">
                                            <div class="well well-sm" style="height: 150px; overflow: auto;">
                                                {% for key, store in setting_store_select %}
                                                    <div class="checkbox">
                                                        <label> {% if key in settings.ms_integration_stock_store %}
                                                                <input type="checkbox" name="ms_integration_stock_store[]" value="{{ key }}" checked="checked" />
                                                                {{ store }}
                                                            {% else %}
                                                                <input type="checkbox" name="ms_integration_stock_store[]" value="{{ key }}" />
                                                                {{ store }}
                                                            {% endif %} </label>
                                                    </div>
                                                {% endfor %}
                                            </div>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_stock_store }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-name_update">{{ entry_name_update }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_name_update" id="input-name_update" class="form-control">
                                                {% if settings.ms_integration_name_update %}
                                                    <option value="1" selected="selected">{{ text_enabled }}</option>
                                                    <option value="0">{{ text_disabled }}</option>
                                                {% else %}
                                                    <option value="1">{{ text_enabled }}</option>
                                                    <option value="0" selected="selected">{{ text_disabled }}</option>
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_name_update }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-description_update">{{ entry_description_update }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_description_update" id="input-description_update" class="form-control">
                                                {% if settings.ms_integration_description_update %}
                                                    <option value="1" selected="selected">{{ text_enabled }}</option>
                                                    <option value="0">{{ text_disabled }}</option>
                                                {% else %}
                                                    <option value="1">{{ text_enabled }}</option>
                                                    <option value="0" selected="selected">{{ text_disabled }}</option>
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_description_update }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-price_update">{{ entry_price_update }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_price_update" id="input-price_update" class="form-control">
                                                {% if settings.ms_integration_price_update %}
                                                    <option value="1" selected="selected">{{ text_enabled }}</option>
                                                    <option value="0">{{ text_disabled }}</option>
                                                {% else %}
                                                    <option value="1">{{ text_enabled }}</option>
                                                    <option value="0" selected="selected">{{ text_disabled }}</option>
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_price_update }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-ms_price_type">{{ entry_ms_price_type }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_ms_price_type" id="input-ms_price_type" class="form-control">
                                                <option value=""></option>
                                                {% for key, name in setting_price_select %}
                                                    {% if key==settings.ms_integration_ms_price_type %}
                                                        <option value="{{ key }}" selected="selected">{{ name }}</option>
                                                    {% else %}
                                                        <option value="{{ key }}">{{ name }}</option>
                                                    {% endif %}
                                                {% endfor %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_ms_price_type }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-weight_update">{{ entry_weight_update }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_weight_update" id="input-weight_update" class="form-control">
                                                {% if settings.ms_integration_weight_update %}
                                                    <option value="1" selected="selected">{{ text_enabled }}</option>
                                                    <option value="0">{{ text_disabled }}</option>
                                                {% else %}
                                                    <option value="1">{{ text_enabled }}</option>
                                                    <option value="0" selected="selected">{{ text_disabled }}</option>
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_weight_update }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-ean_update">{{ entry_ean_update }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_ean_update" id="input-ean_update" class="form-control">
                                                {% if settings.ms_integration_ean_update %}
                                                    <option value="1" selected="selected">{{ text_enabled }}</option>
                                                    <option value="0">{{ text_disabled }}</option>
                                                {% else %}
                                                    <option value="1">{{ text_enabled }}</option>
                                                    <option value="0" selected="selected">{{ text_disabled }}</option>
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_ean_update }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-image_update">{{ entry_image_update }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_image_update" id="input-image_update" class="form-control">
                                                {% if settings.ms_integration_image_update %}
                                                    <option value="1" selected="selected">{{ text_enabled }}</option>
                                                    <option value="0">{{ text_disabled }}</option>
                                                {% else %}
                                                    <option value="1">{{ text_enabled }}</option>
                                                    <option value="0" selected="selected">{{ text_disabled }}</option>
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_image_update }}
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="panel panel-default">
                                <div class="panel-heading" style="cursor: pointer" data-toggle="collapse" data-target="#product-modification-panel"><h3 class="panel-title"><i class="fa fa-check-circle"></i> Настройки работы с модификациями/опциями</h3></div>
                                <div id="product-modification-panel" class="panel-body collapse in">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-modifications">{{ entry_modifications }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_modifications" id="input-modifications" class="form-control">
                                                {% if settings.ms_integration_modifications %}
                                                    <option value="1" selected="selected">{{ text_enabled }}</option>
                                                    <option value="0">{{ text_disabled }}</option>
                                                {% else %}
                                                    <option value="1">{{ text_enabled }}</option>
                                                    <option value="0" selected="selected">{{ text_disabled }}</option>
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_modifications }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-create_product_option">{{ entry_create_product_option }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_create_product_option" id="input-create_product_option" class="form-control">
                                                {% if settings.ms_integration_create_product_option %}
                                                    <option value="1" selected="selected">{{ text_enabled }}</option>
                                                    <option value="0">{{ text_disabled }}</option>
                                                {% else %}
                                                    <option value="1">{{ text_enabled }}</option>
                                                    <option value="0" selected="selected">{{ text_disabled }}</option>
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_create_product_option }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-create_option">{{ entry_create_option }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_create_option" id="input-create_option" class="form-control">
                                                {% if settings.ms_integration_create_option %}
                                                    <option value="1" selected="selected">{{ text_enabled }}</option>
                                                    <option value="0">{{ text_disabled }}</option>
                                                {% else %}
                                                    <option value="1">{{ text_enabled }}</option>
                                                    <option value="0" selected="selected">{{ text_disabled }}</option>
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_create_option }}
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="panel panel-default">
                                <div class="panel-heading" style="cursor: pointer" data-toggle="collapse" data-target="#product-category-panel"><h3 class="panel-title"><i class="fa fa-object-group"></i> Настройки работы с категориями товаров</h3></div>
                                <div id="product-category-panel" class="panel-body collapse in">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-categories">{{ entry_categories }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_categories" id="input-categories" class="form-control">
                                                {% if settings.ms_integration_categories %}
                                                    <option value="1" selected="selected">{{ text_enabled }}</option>
                                                    <option value="0">{{ text_disabled }}</option>
                                                {% else %}
                                                    <option value="1">{{ text_enabled }}</option>
                                                    <option value="0" selected="selected">{{ text_disabled }}</option>
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_categories }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-category_link">{{ entry_category_link }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_category_link" id="input-category_link" class="form-control">
                                                <option value=""></option>
                                                {% for key, name in setting_category_link %}
                                                    {% if key==settings.ms_integration_category_link %}
                                                        <option value="{{ key }}" selected="selected">{{ name }}</option>
                                                    {% else %}
                                                        <option value="{{ key }}">{{ name }}</option>
                                                    {% endif %}
                                                {% endfor %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_category_link }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-create_category">{{ entry_create_category }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_create_category" id="input-create_category" class="form-control">
                                                {% if settings.ms_integration_create_category %}
                                                    <option value="1" selected="selected">{{ text_enabled }}</option>
                                                    <option value="0">{{ text_disabled }}</option>
                                                {% else %}
                                                    <option value="1">{{ text_enabled }}</option>
                                                    <option value="0" selected="selected">{{ text_disabled }}</option>
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_create_category }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-category_name_update">{{ entry_category_name_update }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_category_name_update" id="input-category_name_update" class="form-control">
                                                {% if settings.ms_integration_category_name_update %}
                                                    <option value="1" selected="selected">{{ text_enabled }}</option>
                                                    <option value="0">{{ text_disabled }}</option>
                                                {% else %}
                                                    <option value="1">{{ text_enabled }}</option>
                                                    <option value="0" selected="selected">{{ text_disabled }}</option>
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_category_name_update }}
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="tab-pane" id="tab-orders">
                            <div class="panel panel-default">
                                <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-link"></i> Основные параметры</h3></div>
                                <div class="panel-body">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-ms-organization">{{ entry_ms_organization }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_ms_organization" id="input-ms-organization" class="form-control">
                                                <option value=""></option>
                                                {% for key, name in setting_organization_select %}
                                                    {% if key==settings.ms_integration_ms_organization %}
                                                        <option value="{{ key }}" selected="selected">{{ name }}</option>
                                                    {% else %}
                                                        <option value="{{ key }}">{{ name }}</option>
                                                    {% endif %}
                                                {% endfor %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_ms_organization }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-ms-agent">{{ entry_ms_agent }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_ms_agent" id="input-ms-agent" class="form-control">
                                                <option value=""></option>
                                                {% for key, name in setting_agent_select %}
                                                    {% if key==settings.ms_integration_ms_agent %}
                                                        <option value="{{ key }}" selected="selected">{{ name }}</option>
                                                    {% else %}
                                                        <option value="{{ key }}">{{ name }}</option>
                                                    {% endif %}
                                                {% endfor %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_ms_agent }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-agent-search">{{ entry_agent_search }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_agent_search" id="input-agent-search" class="form-control">
                                                <option value=""></option>
                                                {% for key, name in setting_agent_search_select %}
                                                    {% if key==settings.ms_integration_agent_search %}
                                                        <option value="{{ key }}" selected="selected">{{ name }}</option>
                                                    {% else %}
                                                        <option value="{{ key }}">{{ name }}</option>
                                                    {% endif %}
                                                {% endfor %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_agent_search }}
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="panel panel-default">
                                <div class="panel-heading" style="cursor: pointer" data-toggle="collapse" data-target="#order-secondary-panel"><h3 class="panel-title"><i class="fa fa-link"></i> Дополнительные параметры</h3></div>
                                <div id="order-secondary-panel" class="panel-body collapse in">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-ms-store">{{ entry_ms_store }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_ms_store" id="input-ms-store" class="form-control">
                                                <option value=""></option>
                                                {% for key, name in setting_store_select %}
                                                    {% if key==settings.ms_integration_ms_store %}
                                                        <option value="{{ key }}" selected="selected">{{ name }}</option>
                                                    {% else %}
                                                        <option value="{{ key }}">{{ name }}</option>
                                                    {% endif %}
                                                {% endfor %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_ms_store }}
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-ms-state">{{ entry_ms_state }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_ms_state" id="input-ms-state" class="form-control">
                                                <option value=""></option>
                                                {% for key, name in setting_state_select %}
                                                    {% if key==settings.ms_integration_ms_state %}
                                                        <option value="{{ key }}" selected="selected">{{ name }}</option>
                                                    {% else %}
                                                        <option value="{{ key }}">{{ name }}</option>
                                                    {% endif %}
                                                {% endfor %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_ms_state }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-status_sync_type">В какую сторону синхронизировать статусы</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_status_sync_type" id="input-status_sync_type" class="form-control">
                                                {%  if settings.ms_integration_status_sync_type=='2'  %}>
                                                <option value="1">Из МойСклад в Магазин</option>
                                                <option value="2" selected="selected">Из Магазина в МойСклад</option>
                                                {% else %}
                                                <option value="1" selected="selected">Из МойСклад в Магазин</option>
                                                <option value="2">Из Магазина в МойСклад</option>
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            Для синхронизации с МойСклад в Магазин используйте отдельный крон. Синхронизация из магазина в МойСклад происходит с кроном обновления заказов
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-reserve">{{ entry_reserve }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_reserve" id="input-reserve" class="form-control">
                                                {% if settings.ms_integration_reserve %}
                                                    <option value="1" selected="selected">{{ text_enabled }}</option>
                                                    <option value="0">{{ text_disabled }}</option>
                                                {% else %}
                                                    <option value="1">{{ text_enabled }}</option>
                                                    <option value="0" selected="selected">{{ text_disabled }}</option>
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_reserve }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-vatE">{{ entry_ms_vatE }}</label>
                                        <div class="col-sm-4">
                                            <input type="number" name="ms_integration_ms_vatE" id="input-vatE" class="form-control" value="{{ settings.ms_integration_ms_vatE }}">
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_ms_vatE }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-vatI">{{ entry_ms_vatI }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_ms_vatI" id="input-vatI" class="form-control">
                                                {% if settings.ms_integration_ms_vatI %}
                                                    <option value="1" selected="selected">{{ text_enabled }}</option>
                                                    <option value="0">{{ text_disabled }}</option>
                                                {% else %}
                                                    <option value="1">{{ text_enabled }}</option>
                                                    <option value="0" selected="selected">{{ text_disabled }}</option>
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_ms_vatI }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-applicable">{{ entry_ms_applicable }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_ms_applicable" id="input-applicable" class="form-control">
                                                {% if settings.ms_integration_ms_applicable %}
                                                    <option value="1" selected="selected">{{ text_enabled }}</option>
                                                    <option value="0">{{ text_disabled }}</option>
                                                {% else %}
                                                    <option value="1">{{ text_enabled }}</option>
                                                    <option value="0" selected="selected">{{ text_disabled }}</option>
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_ms_applicable }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-order_name">{{ entry_order_name }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_order_name" id="input-order_name" class="form-control">
                                                {% if settings.ms_integration_order_name %}  ?>
                                                <option value="1" selected="selected">Использовать нумерацию Моего склада</option>
                                                <option value="0">Использовать нумерацию магазина</option>
                                                {% else %}
                                                <option value="1">Использовать нумерацию Моего склада</option>
                                                <option value="0" selected="selected">Использовать нумерацию магазина</option>
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_order_name }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-order-prefix">{{ entry_order_prefix }}</label>
                                        <div class="col-sm-4">
                                            <input type="text" name="ms_integration_order_prefix" id="input-order-prefix" class="form-control" value="{{ settings.ms_integration_order_prefix }}">
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_order_prefix }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-order-suffix">{{ entry_order_suffix }}</label>
                                        <div class="col-sm-4">
                                            <input type="text" name="ms_integration_order_suffix" id="input-order-suffix" class="form-control" value="{{ settings.ms_integration_order_suffix }}">
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_order_suffix }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-ms_shipping">{{ entry_ms_shipping }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_ms_shipping" id="input-ms_shipping" class="form-control">
                                                <option value=""></option>
                                                {% for key, name in setting_shipping_select %}
                                                    {% if key==settings.ms_integration_ms_shipping %}
                                                        <option value="{{ key }}" selected="selected">{{ name }}</option>
                                                    {% else %}
                                                        <option value="{{ key }}">{{ name }}</option>
                                                    {% endif %}
                                                {% endfor %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_ms_shipping }}
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="panel panel-default">
                                <div class="panel-heading" style="cursor: pointer" data-toggle="collapse" data-target="#order-old-panel"><h3 class="panel-title"><i class="fa fa-link"></i> Параметры создания старых заказов</h3></div>
                                <div id="order-old-panel" class="panel-body collapse in">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-old_order_create">{{ entry_old_order_create }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_old_order_create" id="input-old_order_create" class="form-control">
                                                {% if settings.ms_integration_old_order_create %}
                                                    <option value="1" selected="selected">{{ text_enabled }}</option>
                                                    <option value="0">{{ text_disabled }}</option>
                                                {% else %}
                                                    <option value="1">{{ text_enabled }}</option>
                                                    <option value="0" selected="selected">{{ text_disabled }}</option>
                                                {% endif %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_old_order_create }}
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-order_link">{{ entry_order_link }}</label>
                                        <div class="col-sm-4">
                                            <select name="ms_integration_order_link" id="input-order_link" class="form-control">
                                                <option value=""></option>
                                                {% for key, name in setting_order_link %}
                                                    {% if key==settings.ms_integration_order_link %}
                                                        <option value="{{ key }}" selected="selected">{{ name }}</option>
                                                    {% else %}
                                                        <option value="{{ key }}">{{ name }}</option>
                                                    {% endif %}
                                                {% endfor %}
                                            </select>
                                        </div>
                                        <div class="col-sm-6">
                                            {{ help_order_link }}
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="input-old_order_count">Количество заказов</label>
                                        <div class="col-sm-4">
                                            <div class="col-sm-4">
                                                <input type="number" name="ms_integration_old_order_count" id="input-old_order_count" class="form-control" value="{{ settings.ms_integration_old_order_count }}">
                                            </div>
                                        </div>
                                        <div class="col-sm-6">
                                            Количество последних заказов которые будут выгружены. Не более чем за последние три месяца.
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="tab-pane" id="tab-import">
                            <div class="form-group">
                                <h3 class="col-sm-12">
                                    {{ help_save_setting }}
                                </h3>
                            </div>
                            {% if integrationOn %}
                            <div class="panel panel-default">
                                <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-link"></i> Работа с категориями</h3></div>
                                <div class="panel-body">
                                    <div class="form-group">
                                        <div class="col-sm-3">
                                            <a href="{{ link_categories }}" style="width: 100%" id="category-link-btn" class="btn btn-primary" type="submit">{{ category_text }}</a>
                                        </div>
                                        <div class="col-sm-9">
                                            <label class="control-label" style="text-align: left">Связать группы Моего склада с категрими магазина. Требуется для обновления категорий у товаров. <br>
                                                Функция не обновляет имена категорий. При включенном параметре "Создание категорий", создадутся недостающие.</label><br>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-3">
                                            <a href="{{ update_categories }}" style="width: 100%" id="category-update-btn" class="btn btn-primary" type="submit">Обновить категоии</a>
                                        </div>
                                        <div class="col-sm-9">
                                            <label class="control-label" style="text-align: left">Обновление уже связанных категорий. Функция не создает недостающие категории.</label><br>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-3">
                                            <a href="{{ delete_categories }}" style="width: 100%" id="category-delete-btn" class="btn btn-danger" onclick="if (confirm('Удалить?')) return true; else return false">{{ delete_text }}</a>
                                        </div>
                                        <div class="col-sm-9">
                                            <label class="control-label" style="text-align: left">Удаление существующих связей категорий.</label><br>
                                        </div>
                                    </div>
                                </div>
                                <div class="panel-footer">
                                    {{ category_count }}
                                </div>
                            </div>

                            <div class="panel panel-default">
                                <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-link"></i> Работа с товарами</h3></div>
                                <div class="panel-body">
                                    <div class="form-group">
                                        <div class="col-sm-3">
                                            <a href="{{ link_products }}" style="width: 100%" id="product-link-btn" class="btn btn-primary" type="submit" >{{ import_text }}</a>
                                        </div>
                                        <div class="col-sm-9">
                                            <label class="control-label" style="text-align: left">Связать товары Моего склада с товарами магазина. Требуется для работы остальных функций модуля. <br>
                                                Функция не обновляет товары. При включенном параметре "Создание товаров", создадутся недостающие.</label>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-3">
                                            <a href="{{ update_products }}" style="width: 100%" id="product-update-btn" class="btn btn-primary" type="submit">Обновить товары</a>
                                        </div>
                                        <div class="col-sm-9">
                                            <label class="control-label" style="text-align: left">Обновление уже связанных товаров. Функция не создает недостающие товары.</label><br>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-3">
                                            <a href="{{ update_stock }}" style="width: 100%" id="product-stock-btn" class="btn btn-primary" type="submit">Обновить остатки</a>
                                        </div>
                                        <div class="col-sm-9">
                                            <label class="control-label" style="text-align: left">Остатки обновятся только у связанных товаров.</label><br>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-3">
                                            <a href="{{ delete_products }}" style="width: 100%" id="product-delete-btn" class="btn btn-danger" onclick="if (confirm('Удалить?')) return true; else return false">{{ delete_text }}</a>
                                        </div>
                                        <div class="col-sm-9">
                                            <label class="control-label" style="text-align: left">Удаление существующих связей товаров.</label><br>
                                        </div>
                                    </div>
                                </div>
                                <div class="panel-footer">
                                    {{ products_count }}<br>
                                    {{ bundles_count }}
                                </div>
                            </div>

                            <div class="panel panel-default">
                                <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-link"></i> Работа с модификациями</h3></div>
                                <div class="panel-body">
                                    <div class="form-group">
                                        <div class="col-sm-3">
                                            <a href="{{ link_variants }}" style="width: 100%" id="variants-link-btn" class="btn btn-primary" type="submit">{{ variant_text }}</a>
                                        </div>
                                        <div class="col-sm-9">
                                            <label class="control-label" style="text-align: left">Связать модификации Моего склада с опциями магазина. Свяжутся опции только у уже связанных товаров.<br>
                                                Функция не обновляет опции. При включенном параметров "Создание опций" и "Создание опций товаров", создадутся недостающие.</label><br>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-3">
                                            <a href="{{ update_variants }}" style="width: 100%" id="variants-update-btn" class="btn btn-primary" type="submit">Обновить опции</a>
                                        </div>
                                        <div class="col-sm-9">
                                            <label class="control-label" style="text-align: left">Обновление уже связанных опций. Функция не создает недостающие опции.</label><br>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-3">
                                            <a href="{{ delete_variants }}" style="width: 100%" id="variants-delete-btn" class="btn btn-danger" onclick="if (confirm('Удалить?')) return true; else return false">{{ delete_text }}</a>
                                        </div>
                                        <div class="col-sm-9">
                                            <label class="control-label" style="text-align: left">Удаление существующих связей опций.</label><br>
                                        </div>
                                    </div>
                                </div>
                            <div class="panel-footer">
                                {{ modifications_count }}
                            </div>
                        </div>

                            <div class="panel panel-default">
                                <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-link"></i> Работа с заказами</h3></div>
                                <div class="panel-body">
                                    <div class="form-group">
                                        <div class="col-sm-3">
                                            <a href="{{ link_orders }}" style="width: 100%" id="order-link-btn" class="btn btn-primary" type="submit">{{ orders_text }}</a>
                                        </div>
                                        <div class="col-sm-9">
                                            <label class="control-label" style="text-align: left">Связать заказы магазина с заказами Моего склада. Связывает заказы только за последние 3 месяца<br>
                                                Функция не обновляет заказы. При включенном параметре "Создание старых заказов", создадутся недостающие.</label>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-3">
                                            <a href="{{ delete_orders }}" style="width: 100%" id="order-delete-btn" class="btn btn-danger" onclick="if (confirm('Удалить?')) return true; else return false">{{ delete_text }}</a>
                                        </div>
                                        <div class="col-sm-9">
                                            <label class="control-label" style="text-align: left">Удаление существующих связей заказов.</label><br>
                                        </div>
                                    </div>
                                </div>
                                <div class="panel-footer">
                                    {{ orders_count }}
                                </div>
                            </div>

                            <div class="panel panel-default">
                                <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-link"></i> Работа с кронами</h3></div>
                                <div class="panel-body">
                                    <div class="form-group">
                                        <div class="col-sm-12">
                                            <h4>{{ help_cron }}</h4>
                                            {{ cron_link }}
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-12">
                                            <h4>{{ help_cron_2 }}</h4>
                                            {{ cron_link_2 }}
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-sm-3">
                                    <a href="{{ link_repair_db }}" style="width: 100%" id="repair-btn" class="btn btn-primary" onclick="if (confirm('Уверены?')) return true; else return false">{{ repair_text }}</a>
                                </div>
                                <div class="col-sm-9">
                                    <label class="control-label" style="text-align: left">{{ help_repair_db }}</label>
                                </div>
                            </div>

                                <div class="form-group">
                                    <div class="col-sm-3">
                                        <a href="{{ link_repair_events }}" style="width: 100%" id="repair-btn-e" class="btn btn-primary" onclick="if (confirm('Уверены?')) return true; else return false">Исправить события</a>
                                    </div>
                                    <div class="col-sm-9">
                                        <label class="control-label" style="text-align: left">Пересоздание событий для создания заказов</label>
                                    </div>
                                </div>

                            {% endif %}
                        </div>
                        {% endif %}
                        <div class="tab-pane" id="tab-info">
                            <div class="form-group">
                                <div class="col-sm-6 col-md-3">
                                    <label>Видео по настройке модуля</label>
                                </div>
                                <div class="col-sm-6 col-md-9">
                                    <iframe width="560" height="315" src="https://www.youtube.com/embed/pdZkyHQgokQ" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-12">
                                    Если у вас возникли проблемы с работой модуля, можете ознакомится с <a href="https://{{ ciframeDomain }}/faq/46/" target="_blank">ответами на часто задаваемые вопросы</a>. Если проблема не решена или вы не нашли нужный вам вопрос - обратится к нам в поддержку, написав на почту <a href="mailto:info@ciframe.com?subject=Вопросы по работе модуля">info@ciframe.com</a>.<br>
                                    Ознакомится с регламентом поддержки можете по <a href="https://{{ ciframeDomain }}/support/" target="_blank">ссылке</a>.
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-12">
                                    <h4>Также можете ознакомится с другими нашими решения по <a href="https://{{ ciframeDomain }}/products/opencart/" target="_blank">OpenCart</a>, <a href="https://{{ ciframeDomain }}/products/moysklad/" target="_blank">Мой Склад</a> и <a href="https://{{ ciframeDomain }}/ecommerce-integration/" target="_blank">другим продуктам</a>.</h4>
                                </div>
                            </div>


                            <div class="form-group">
                                <div class="col-sm-3">
                                    <a href="{{ download_log }}" style="width: 100%" id="download-btn" class="btn btn-primary">Скачать лог файл</a>
                                </div>
                                <div class="col-sm-9">
                                    <label class="control-label" style="text-align: left"></label>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
                <h4 class="col-sm-12" style="text-align: center">
                    {{ version }}
                </h4>
            </div>
        </div>
    </div>
</div>
{{ footer }}