{{ header }}{{ column_left }}
<div id="content">

    <div class="page-header">
        <div class="container-fluid">
            <div class="pull-right">
                <button type="submit" form="form" 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>&nbsp;&nbsp;&nbsp;{{ 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 error %}
        {% for error_message in error %}
        <div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> {{ error_message }}
            <button type="button" class="close" data-dismiss="alert">&times;</button>
        </div>
        {% endfor %}
        {% endif %}
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title"><i class="fa fa-pencil"></i> {{ oc_exchange_1c_text_edit }}</h3>
            </div>
            <div class="panel-body">
                <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form" class="form-horizontal">
                    <ul id="tabs" class="nav nav-tabs tab-up">
                        <li class="active"><a href="#tab-general" data-target="#tab-general" class="media_node active span" id="general_tab" data-toggle="tabajax" rel="tooltip">{{ oc_exchange_1c_text_tab_general }}</a></li>
                        <li><a href="#tab-product" data-target="#tab-product" class="media_node span" id="product_tab" data-toggle="tabajax" rel="tooltip">{{ oc_exchange_1c_text_tab_product }}</a></li>
                        <li><a href="#tab-order" data-target="#tab-order" class="media_node span" id="order_tab" data-toggle="tabajax" rel="tooltip">{{ oc_exchange_1c_text_tab_order }}</a></li>
                    </ul>
                    <div class="tab-content">

                        <div id="tab-general" class="tab-pane active">
                        	<div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_status">{{ oc_exchange_1c_text_status }}</label>
                                <div class="col-sm-8">
                                    <select class="form-control" name="oc_exchange_1c_status">
                                    {% if oc_exchange_1c_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>
                            
                            {% if oc_exchange_1c_enabled %}
                            <hr/>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_login">{{ oc_exchange_1c_text_login }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_exchange_1c_login" type="text" value="{{ oc_exchange_1c_login }}" /></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_pass"><span data-toggle="tooltip" title="{{ oc_exchange_1c_text_help_pass }}">{{ oc_exchange_1c_text_pass }}</span></label>
                                <div class="col-sm-8"><input class="form-control" name="oc_exchange_1c_pass" type="text" value="{{ oc_exchange_1c_pass }}" /></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_IP">{{ oc_exchange_1c_text_IP }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_exchange_1c_IP" type="text" value="{{ oc_exchange_1c_IP }}" /></div>
                            </div>
                            
                            <hr/>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_log">{{ oc_exchange_1c_text_log }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_exchange_1c_log">
                                {% for value in oc_exchange_1c_log %}
                                	<option value="{{ value.value }}" {% if value.selected == 1 %}selected{% endif %}>{{ value.name }}</option>
                                {% endfor %}
                                </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_timeout"><span data-toggle="tooltip" title="{{ oc_exchange_1c_text_help_timeout }}">{{ oc_exchange_1c_text_timeout }}</span></label>
                                <div class="col-sm-8"><input class="form-control" name="oc_exchange_1c_timeout" type="text" value="{{ oc_exchange_1c_timeout }}" /></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_timelimit"><span data-toggle="tooltip" title="{{ oc_exchange_1c_text_help_timelimit }}">{{ oc_exchange_1c_text_timelimit }}</span></label>
                                <div class="col-sm-8"><input class="form-control" name="oc_exchange_1c_timelimit" type="text" value="{{ oc_exchange_1c_timelimit }}" /></div>
                            </div>
                            
                            <hr/>
                            <div class="form-group">
                       			<center><label class="col-sm-4 control-label" style="float:none; width:auto; color:green;">{{ oc_exchange_1c_licese_msg }}</label></center>
                         	</div>
                         	{% endif %}
                        </div>

					{% if oc_exchange_1c_enabled %}
                        <div id="tab-product" class="tab-pane">
                        
                        	<div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_exchange_1c_text_categories }}</label>
                                <div class="col-sm-8"></div>
                            </div>
                        
                        	 <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_exchange_1c_text_sinc_categories }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_exchange_1c_sinc_categories">
                                {% for value in oc_exchange_1c_sinc_categories %}
                                	<option value="{{ value.value }}" {% if value.selected == 1 %}selected{% endif %}>{{ value.name }}</option>
                                {% endfor %}
                                </select>
                                </div>
                            </div>
                            
                             <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_exchange_1c_text_show_1c_categories }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_exchange_1c_show_1c_categories">
                                {% for value in oc_exchange_1c_show_1c_categories %}
                                	<option value="{{ value.value }}" {% if value.selected == 1 %}selected{% endif %}>{{ value.name }}</option>
                                {% endfor %}
                                </select>
                                </div>
                            </div>
                            
                             <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_exchange_1c_text_show_site_categories }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_exchange_1c_show_site_categories">
                                {% for value in oc_exchange_1c_show_site_categories %}
                                	<option value="{{ value.value }}" {% if value.selected == 1 %}selected{% endif %}>{{ value.name }}</option>
                                {% endfor %}
                                </select>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_categories_corr">{{ oc_exchange_1c_text_categories_corr }}</label>
                                <div class="col-sm-8">
                                <textarea class="form-control" name="oc_exchange_1c_categories_corr" rows=10>{{ oc_exchange_1c_categories_corr }}</textarea>
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_default_category">{{ oc_exchange_1c_text_default_category }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_exchange_1c_default_category">
                                {% for value in oc_exchange_1c_default_category %}
                                	<option value="{{ value.value }}" {% if value.selected == 1 %}selected{% endif %}>{{ value.name }}</option>
                                {% endfor %}
                                </select>
                                </div>
                            </div>
                            
                            <hr/>
							<div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_exchange_1c_text_products }}</label>
                                <div class="col-sm-8"></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_exchange_1c_text_add_new_products }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_exchange_1c_add_new_products">
                                {% for value in oc_exchange_1c_add_new_products %}
                                	<option value="{{ value.value }}" {% if value.selected == 1 %}selected{% endif %}>{{ value.name }}</option>
                                {% endfor %}
                                </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_exchange_1c_text_add_new_products_zero }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_exchange_1c_add_new_products_zero">
                                {% for value in oc_exchange_1c_add_new_products_zero %}
                                	<option value="{{ value.value }}" {% if value.selected == 1 %}selected{% endif %}>{{ value.name }}</option>
                                {% endfor %}
                                </select>
                                </div>
                            </div>
							 
                            <hr />
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_exchange_1c_text_parameters }}</label>
                                <div class="col-sm-8"></div>
                            </div>
                            
                            {% for pole,main in oc_exchange_1c_main %}
                            <div class="form-group {% if main.star !='' %}required{% endif %}">
                                {% if pole == 'price' %}
                                	<label class="col-sm-4 control-label" for="oc_exchange_1c_{{ pole }}"><span data-toggle="tooltip" title="{{ oc_exchange_1c_text_help_price }}">{{ main.title }}</span></label>
                                {% else %}
                               		<label class="col-sm-4 control-label" for="oc_exchange_1c_{{ pole }}">{{ main.title }}<br/>{{ main.comment }}</label>
                                {% endif %}
                                <div class="col-sm-8">
                   	                 {% if pole == 'price' %}
                   	                 <input class="form-control" name="oc_exchange_1c_price" type="text" value="{{ oc_exchange_1c_price }}" />
                   	                 {% endif %}
                   	                 <div class="col-sm-10">
                   	                 <label class="checkbox-inline">
                   						<input type="checkbox" name="oc_exchange_1c_update_{{ pole }}" value="1" {{ main.checked }} /> {{ oc_exchange_1c_text_update }}
                   	                 </label>
                                 	</div>
                                 	{% if  pole in keys %}
	                                 	<div class="col-sm-10">
	                 					<label class="radio-inline">
	                                    <input type="radio" name="oc_exchange_1c_key" value="{{ pole }}" {{ main.key_checked }} /> {{ oc_exchange_1c_text_keys }}
	                                    </label>
	                                    </div>
                                    {% endif %}
                                </div>
                            </div>
                            {% endfor %}
                            	
                            <hr />
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_exchange_1c_text_attributes_title }}</label>
                                <div class="col-sm-8"></div>
                            </div>
                            
                             <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_attributes_group">{{ oc_exchange_1c_text_attributes_group_title }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_exchange_1c_attributes_group">
                                {% for value in attributes_groups %}
                                	<option value="{{ value.value }}" {% if value.selected == 1 %}selected{% endif %}>{{ value.name }}</option>
                                {% endfor %}
                                </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_attributes">{{ oc_exchange_1c_text_attributes }}</label>
                                <div class="col-sm-8"><textarea class="form-control" name="oc_exchange_1c_attributes" rows=6>{{ oc_exchange_1c_attributes }}</textarea>
                                <div class="col-sm-10">
                   	                 <label class="checkbox-inline">
                   						<input type="checkbox" name="oc_exchange_1c_update_attributes" value="1" {{ oc_exchange_1c_update_attributes }} /> {{ oc_exchange_1c_text_update }}
                   	                 </label>
                                 	</div>
                                </div>
                            </div>

                            <hr />
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_exchange_1c_text_options_title }}</label>
                                <div class="col-sm-8"></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_options_variant">{{ oc_exchange_1c_text_variant_title }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_exchange_1c_options_variant">
                                {% for value in options_variant %}
                                	<option value="{{ value.value }}" {% if value.selected == 1 %}selected{% endif %}>{{ value.name }}</option>
                                {% endfor %}
                                </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_options">{{ oc_exchange_1c_text_options }}</label>
                                <div class="col-sm-8"><textarea class="form-control" name="oc_exchange_1c_options" rows=6>{{ oc_exchange_1c_options }}</textarea>
                                <div class="col-sm-10">
                   	                 <label class="checkbox-inline">
                   						<input type="checkbox" name="oc_exchange_1c_update_options" value="1" {{ oc_exchange_1c_update_options }} /> {{ oc_exchange_1c_text_update }}
                   	                 </label>
                                 	</div>
                                </div>
                            </div>
                            
                            <hr />
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_exchange_1c_text_parameters_title }}</label>
                                <div class="col-sm-8"></div>
                            </div>
                            
                            {% for pole,default in oc_exchange_1c_default_values %}
                            	{% if default.option is not empty %}
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_{{ pole }}">{{ default.title }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_exchange_1c_{{ pole }}">
                                {% for value in default.option %}
                                	<option value="{{ value.value }}" {% if value.selected == 1 %}selected{% endif %}>{{ value.name }}</option>
                                {% endfor %}
                                </select>
                                </div>
                            </div>
                            	{% else %}
                            <div class="form-group">
                            	<label class="col-sm-4 control-label" for="oc_exchange_1c_{{ pole }}">{{ default.title }}</label>
                            	<div class="col-sm-8">
                            	<input class="form-control" name="oc_exchange_1c_{{ pole }}" type="text" value="{{ default.value }}" />
                            	</div>
                            </div>
                            	{% endif %}
                            {% endfor %}
                            
                            <hr />
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_exchange_1c_text_formulas_category }}</label>
                                <div class="col-sm-8">{{ oc_exchange_1c_text_formulas_category_comment }}</div>
                            </div>
                            <div class="form-group required">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_meta_title_category">{{ oc_exchange_1c_text_meta_title_category }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_exchange_1c_meta_title_category" type="text" value="{{ oc_exchange_1c_meta_title_category }}" /></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_meta_h1_category">{{ oc_exchange_1c_text_meta_h1_category }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_exchange_1c_meta_h1_category" type="text" value="{{ oc_exchange_1c_meta_h1_category }}" /></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_meta_description_category">{{ oc_exchange_1c_text_meta_description_category }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_exchange_1c_meta_description_category" type="text" value="{{ oc_exchange_1c_meta_description_category }}" /></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_meta_keywords_category">{{ oc_exchange_1c_text_meta_keywords_category }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_exchange_1c_meta_keywords_category" type="text" value="{{ oc_exchange_1c_meta_keywords_category }}" /></div>
                            </div>
                            
                            <hr />
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_exchange_1c_text_formulas_product }}</label>
                                <div class="col-sm-8">{{ oc_exchange_1c_text_formulas_product_comment }}</div>
                            </div>
                            <div class="form-group required">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_meta_title">{{ oc_exchange_1c_text_meta_title }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_exchange_1c_meta_title" type="text" value="{{ oc_exchange_1c_meta_title }}" />
                            	<div class="col-sm-10">
                                  <label class="checkbox-inline">
                   					<input type="checkbox" name="oc_exchange_1c_update_meta_title" value="1" {{ oc_exchange_1c_update_meta_title }} /> {{ oc_exchange_1c_text_update }}
                   	              </label>
                                 </div>
                                 </div>
                            </div>
                             <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_meta_h1">{{ oc_exchange_1c_text_meta_h1 }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_exchange_1c_meta_h1" type="text" value="{{ oc_exchange_1c_meta_h1 }}" />
                            	<div class="col-sm-10">
                                  <label class="checkbox-inline">
                   					<input type="checkbox" name="oc_exchange_1c_update_meta_h1" value="1" {{ oc_exchange_1c_update_meta_h1 }} /> {{ oc_exchange_1c_text_update }}
                   	              </label>
                                 </div>
                                 </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_meta_description">{{ oc_exchange_1c_text_meta_description }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_exchange_1c_meta_description" type="text" value="{{ oc_exchange_1c_meta_description }}" />
                                <div class="col-sm-10">
                                  <label class="checkbox-inline">
                   					<input type="checkbox" name="oc_exchange_1c_update_meta_description" value="1" {{ oc_exchange_1c_update_meta_description }} /> {{ oc_exchange_1c_text_update }}
                   	              </label>
                                 </div>
                                 </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_meta_keywords">{{ oc_exchange_1c_text_meta_keywords }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_exchange_1c_meta_keywords" type="text" value="{{ oc_exchange_1c_meta_keywords }}" />
                                <div class="col-sm-10">
                                  <label class="checkbox-inline">
                   					<input type="checkbox" name="oc_exchange_1c_update_meta_keywords" value="1" {{ oc_exchange_1c_update_meta_keywords }} /> {{ oc_exchange_1c_text_update }}
                   	              </label>
                                 </div>
                                 </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_seourl">{{ oc_exchange_1c_text_seourl }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_exchange_1c_seourl" type="text" value="{{ oc_exchange_1c_seourl }}" />
                                <div class="col-sm-10">
                                  <label class="checkbox-inline">
                   					<input type="checkbox" name="oc_exchange_1c_update_seourl" value="1" {{ oc_exchange_1c_update_seourl }} /> {{ oc_exchange_1c_text_update }}
                   	              </label>
                                 </div>
                                 </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_symbols_deleted_from_tag">{{ oc_exchange_1c_text_symbols_deleted_from_tag }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_exchange_1c_symbols_deleted_from_tag" type="text" value="{{ oc_exchange_1c_symbols_deleted_from_tag }}" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_words_deleted_from_tag">{{ oc_exchange_1c_text_words_deleted_from_tag }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_exchange_1c_words_deleted_from_tag" type="text" value="{{ oc_exchange_1c_words_deleted_from_tag }}" />
                                <div class="col-sm-10">
                                  <label class="checkbox-inline">
                   					<input type="checkbox" name="oc_exchange_1c_update_tag" value="1" {{ oc_exchange_1c_update_tag }} /> {{ oc_exchange_1c_text_update_tag }}
                   	              </label>
                                 </div>
                                 </div>
                            </div>
                            
                            <hr />
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_exchange_1c_text_images }}</label>
                                <div class="col-sm-8"></div>
                            </div>
                             <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_exchange_1c_text_image_load_from_1c }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_exchange_1c_image_load_from_1c">
                                {% for value in oc_exchange_1c_image_load_from_1c %}
                                	<option value="{{ value.value }}" {% if value.selected == 1 %}selected{% endif %}>{{ value.name }}</option>
                                {% endfor %}
                                </select>
                                </div>
                            </div>
                             <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_exchange_1c_text_image_test_main }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_exchange_1c_image_test_main">
                                {% for value in oc_exchange_1c_image_test_main %}
                                	<option value="{{ value.value }}" {% if value.selected == 1 %}selected{% endif %}>{{ value.name }}</option>
                                {% endfor %}
                                </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_image_ext">{{ oc_exchange_1c_text_image_ext }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_exchange_1c_image_ext" type="text" value="{{ oc_exchange_1c_image_ext }}" /></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_image_output">{{ oc_exchange_1c_text_image_output }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_exchange_1c_image_output" type="text" value="{{ oc_exchange_1c_image_output }}" /></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_image_width">{{ oc_exchange_1c_text_image_width }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_exchange_1c_image_width" type="text" value="{{ oc_exchange_1c_image_width }}" /></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_image_height">{{ oc_exchange_1c_text_image_height }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_exchange_1c_image_height" type="text" value="{{ oc_exchange_1c_image_height }}" /></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_image_quality">{{ oc_exchange_1c_text_image_quality }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_exchange_1c_image_quality" type="text" value="{{ oc_exchange_1c_image_quality }}" /></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_image_dir">{{ oc_exchange_1c_text_image_dir }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_exchange_1c_image_dir" type="text" value="{{ oc_exchange_1c_image_dir }}" /></div>
                            </div>
                            
                            <hr />
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_exchange_1c_text_special }}</label>
                                <div class="col-sm-8"></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_exchange_1c_text_hide_missing_products }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_exchange_1c_hide_missing_products">
                                {% for value in oc_exchange_1c_hide_missing_products %}
                                	<option value="{{ value.value }}" {% if value.selected == 1 %}selected{% endif %}>{{ value.name }}</option>
                                {% endfor %}
                                </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_exchange_1c_text_hide_products_with_zero_quantity }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_exchange_1c_hide_products_with_zero_quantity">
                                {% for value in oc_exchange_1c_hide_products_with_zero_quantity %}
                                	<option value="{{ value.value }}" {% if value.selected == 1 %}selected{% endif %}>{{ value.name }}</option>
                                {% endfor %}
                                </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_exchange_1c_text_show_not_changed }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_exchange_1c_show_not_changed">
                                {% for value in oc_exchange_1c_show_not_changed %}
                                	<option value="{{ value.value }}" {% if value.selected == 1 %}selected{% endif %}>{{ value.name }}</option>
                                {% endfor %}
                                </select>
                                </div>
                            </div>
                            
                            <hr />
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_cache"><span data-toggle="tooltip" title="{{ oc_exchange_1c_text_help_cache }}">{{ oc_exchange_1c_text_cache }}</span></label>
                                <div class="col-sm-8"><input class="form-control" name="oc_exchange_1c_cache" type="text" value="{{ oc_exchange_1c_cache }}" /></div>
                            </div>
                            

                        </div>

                        <div id="tab-order" class="tab-pane">
                        	<div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_exchange_1c_text_order_parameters }}</label>
                                <div class="col-sm-8"></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_order_status_to_exchange">{{ oc_exchange_1c_text_order_status_to_exchange }}</label>
                                <div class="col-sm-8"><select class="form-control" name="oc_exchange_1c_order_status_to_exchange">
                                            {% for order_status in order_statuses %}
                                            <option value="{{ order_status.order_status_id }}" {% if oc_exchange_1c_order_status_to_exchange == order_status.order_status_id %}selected{% endif %}>{{ order_status.name }}</option>
                                            {% endfor %}
                                        </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_exchange_1c_order_status">{{ oc_exchange_1c_text_order_status }}</label>
                                <div class="col-sm-8">
                                        <select class="form-control" name="oc_exchange_1c_order_status">
                                            {% for order_status in order_statuses %}
                                            <option value="{{ order_status.order_status_id }}" {% if oc_exchange_1c_order_status == order_status.order_status_id %}selected{% endif %}>{{ order_status.name }}</option>
                                            {% endfor %}
                                        </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_exchange_1c_text_order_charset }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_exchange_1c_order_charset">
                                {%for value in oc_exchange_1c_order_charset %}
                                	<option value="{{ value.value }}" {% if value.selected == 1 %}selected{% endif %}>{{ value.name }}</option>
                                {% endfor %}
                                </select>
                                </div>
                            </div>
                            <div class="form-group required">
                            	<label class="col-sm-4 control-label">{{ oc_exchange_1c_text_order_currency }}</label>
                            	<div class="col-sm-8"><input class="form-control" name="oc_exchange_1c_order_currency" type="text" value="{{ oc_exchange_1c_order_currency }}" /></div>
                            </div>
                            <div class="form-group required">
                            	<label class="col-sm-4 control-label">{{ oc_exchange_1c_text_order_scheme_version }}</label>
                            	<div class="col-sm-8"><input class="form-control" name="oc_exchange_1c_order_scheme_version" type="text" value="{{ oc_exchange_1c_order_scheme_version }}" /></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_exchange_1c_text_order_confirm }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_exchange_1c_order_confirm">
                                {% for value in oc_exchange_1c_order_confirm %}
                                	<option value="{{ value.value }}" {% if value.selected == 1 %}selected{% endif %}>{{ value.name }}</option>
                                {% endfor %}
                                </select>
                                </div>
                            </div>
                            
                        </div>
                    {% endif %}
                </div>
                
            <hr />
            <div style="text-align:center; opacity: .5">
                <p>{{ oc_exchange_1c_version_text }} | <a target="_blank" href="{{ LS }}">{{ oc_exchange_1c_text_homepage }}</a></p>
            </div>
            </form>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    //$('.panel-body #tabs a').click(function (e) {
    $('[data-toggle="tabajax"]').click(function (e){
        e.preventDefault();
        $(this).tab('show');
        return false;
    });
</script>

{{ footer }}