{{ 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 style="background: url(view/image/oc_loader_torgsoft.png) no-repeat;display:block;">&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_loader_torgsoft_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_loader_torgsoft_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_loader_torgsoft_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_loader_torgsoft_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="module_oc_loader_torgsoft_status">{{ oc_loader_torgsoft_text_status }}</label>
                                <div class="col-sm-8">
                                    <select class="form-control" name="module_oc_loader_torgsoft_status">
                                    {% if oc_loader_torgsoft_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>
                            
                            <div class="form-group">
                            {% if oc_loader_torgsoft_enabled %}
                         			<center><label class="col-sm-4 control-label" style="float:none; width:auto; color:green;">{{ oc_loader_torgsoft_licese_msg }}</label></center>
                         	{% endif %}
                         	</div>
                        </div>

					{% if oc_loader_torgsoft_enabled %}
                        <div id="tab-product" class="tab-pane">
                        	<div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_trs_dir"><span data-toggle="tooltip" title="{{ oc_loader_torgsoft_help_text_trs_file }}">{{ oc_loader_torgsoft_text_trs_file }}</span></label>
                                <div class="col-sm-8"><input class="form-control" name="oc_loader_torgsoft_trs_file" type="text" value="{{ oc_loader_torgsoft_trs_file }}" /></div>
                            </div>

							{% if oc_loader_torgsoft_file_exist == false %}
							<div class="form-group">
								<center>
									<font color="red" weight="bold">{{ oc_loader_torgsoft_attention }}</font>
									<br /><br />
							 		<button type="submit" form="form" name="return" value="test_file">{{ oc_loader_torgsoft_save_trs_file }}</button>
							 	</center>
							 </div>
							{% else %}
                            <hr />
                            
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_file_code">{{ oc_loader_torgsoft_text_file_code }}</label>
                                <div class="col-sm-8">
                                    <select class="form-control" name="oc_loader_torgsoft_file_code">
                                    {% if oc_loader_torgsoft_file_code == 'windows' %}
                                    <option value="windows" selected="selected">windows</option>
                                    <option value="utf-8">utf-8</option>
                                    {% else %}
                                    <option value="windows">windows</option>
                                    <option value="utf-8" selected="selected">utf-8</option>
                                    {% endif %}
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                            	{{ two_strings }}
                            </div>
                            <div class="form-group">
								<center>
							 		<button type="submit" form="form" name="return" value="test_file">{{ oc_loader_torgsoft_save_file_code }}</button>
							 	</center>
							 </div>
							 <hr />
							 <div class="form-group" style="overflow-x:scroll;">
								<center>
							 		{{ table12 }}
							 	</center>
							 </div>
							 
							<hr />
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_loader_torgsoft_text_add_new_products }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_loader_torgsoft_add_new_products">
                                {% for value in oc_loader_torgsoft_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_loader_torgsoft_text_add_new_products_zero }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_loader_torgsoft_add_new_products_zero">
                                {% for value in oc_loader_torgsoft_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_loader_torgsoft_text_parameters }}</label>
                                <div class="col-sm-8">{{ oc_loader_torgsoft_text_column_title }}</div>
                            </div>
                            
                            {% for index, main in oc_loader_torgsoft_main %}
                            <div class="form-group {% if main.star !='' %}required{% endif %}">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_{{ index }}">{{ main.title }}<br/>{{ main.comment }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_loader_torgsoft_{{ index }}">
                                {% for value in main.option %}
                                	<option value="{{ value.name }}" {% if value.selected == 1 %}selected{% endif %}>{{ value.name }}</option>
                                {% endfor %}
                                </select>
                                	{% if index != 'GoodID' %}
                                	<div class="col-sm-10">
                                    <label class="checkbox-inline">
                   						<input type="checkbox" name="oc_loader_torgsoft_update_{{ index }}" value="1" {{ main.checked }} /> {{ oc_loader_torgsoft_text_update }}
                   	                 </label>
                                 	</div>
                                 	{% endif %}
                                 	{% if index == 'name' %}
                                 		<div class="col-sm-10">
                                   		<label class="checkbox-inline">
                   							<input type="checkbox" name="oc_loader_torgsoft_strip_name" value="1" {{ main.strip_name }} /> {{ oc_loader_torgsoft_text_strip }}
                   	                 	</label>
                                 	</div>
                                 	{% endif %}
                                 	{% for key in keys %}
	                                 	{% if index == key %}
		                                 	<div class="col-sm-10">
		                 					<label class="radio-inline">
		                                    <input type="radio" name="oc_loader_torgsoft_key" value="{{ index }}" {{ main.key_checked }} /> {{ oc_loader_torgsoft_text_keys }}
		                                    </label>
		                                    </div>
	                                    {% endif %}
                                    {% endfor %}
                                </div>
                            </div>
                            {% endfor %}
                            	
                            <hr />
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_loader_torgsoft_text_attributes_title }}</label>
                                <div class="col-sm-8"></div>
                            </div>
                            
                             <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_attributes_group">{{ oc_loader_torgsoft_text_attributes_group_title }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_loader_torgsoft_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">
								<center>
							 		<button type="submit" form="form" name="return" value="test_file">{{ oc_loader_torgsoft_save_attributes_group }}</button>
							 	</center>
							 </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_loader_torgsoft_text_attributes_title2 }}</label>
                                <div class="col-sm-8">{{ oc_loader_torgsoft_text_column_title }}</div>
                            </div>
                            
                            {% for index, attribute in oc_loader_torgsoft_attributes %}
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_{{ index }}">{{ attribute.star }}{{ attribute.title }}<br/>{{ attribute.comment }}</label>
                                <div class="col-sm-8">
                                {% if attribute.alert %}
                                	{{ oc_loader_torgsoft_text_attributes_alert }}
                                {% else %}
	                                <select class="form-control" name="oc_loader_torgsoft_{{ index }}">
	                                {% for value in attribute.option %}
	                            	<option value="{{ value.name }}" {% if value.selected == 1 %}selected{% endif %}>{{ value.name }}</option>
	                                 {% endfor %}
	                                </select>
                                	<div class="col-sm-10">
                                     <label class="checkbox-inline">
                   						<input type="checkbox" name="oc_loader_torgsoft_update_{{ index }}" value="1" {{ attribute.checked }} /> {{ oc_loader_torgsoft_text_update }}
                   	                 </label>
                                 	</div>
                                {% endif %}
                                </div>
                            </div>
                            {% endfor %}
                            
                            <hr />
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_loader_torgsoft_text_options_title }}</label>
                                <div class="col-sm-8">
	                                <div class="col-sm-10">
	                   	                 <label class="checkbox-inline">
	                   						<input type="checkbox" name="oc_loader_torgsoft_update_options" value="1" {{ oc_loader_torgsoft_update_options }} /> {{ oc_loader_torgsoft_text_update }}
	                   	                 </label>
	                                </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_options_variant">{{ oc_loader_torgsoft_text_variant_title }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_loader_torgsoft_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">{{ oc_loader_torgsoft_text_options_title2 }}</label>
                                <div class="col-sm-8">{{ oc_loader_torgsoft_text_column_title }}</div>
                            </div>
                            
                             {% for index, option in oc_loader_torgsoft_options %}
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_{{ index }}">{{ optionstar }}{{ option.title }}<br/>{{ option.comment }}</label>
                                <div class="col-sm-8">
                                {% if option.alert %}
                                	{{ oc_loader_torgsoft_text_options_alert }}
                                {% else %}
	                                <select class="form-control" name="oc_loader_torgsoft_option_{{ index }}">
	                                {% for value in option.option %}
	                                	<option value="{{ value.name }}" {% if value.selected == 1 %}selected{% endif %}>{{ value.name }}</option>
	                                 {% endfor %}
	                                </select>
                                {% endif %}
                                </div>
                            </div>
                            {% endfor %}
                            
         					<hr />
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_loader_torgsoft_text_filter_title }}</label>
                                <div class="col-sm-8">
	                                <div class="col-sm-10">
	                   	                 <label class="checkbox-inline">
	                   						<input type="checkbox" name="oc_loader_torgsoft_update_filters" value="1" {{ oc_loader_torgsoft_update_filters }} /> {{ oc_loader_torgsoft_text_update }}
	                   	                 </label>
	                                </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_loader_torgsoft_text_filter_title2 }}</label>
                                <div class="col-sm-8">{{ oc_loader_torgsoft_text_column_title }}</div>
                            </div>
                            
                            {% for index, filter in oc_loader_torgsoft_filters %}
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_{{ index }}">{{ filter.star }}{{ filter.title }}<br/>{{ filter.comment }}</label>
                                <div class="col-sm-8">
                                {% if filter.alert %}
                                	{{ oc_loader_torgsoft_text_options_alert }}
                                {% else %}
	                                <select class="form-control" name="oc_loader_torgsoft_filter_{{ index }}">
	                                {% for value in filter.filter %}
	                                	<option value="{{ value.name }}" {% if value.selected == 1 %}selected{% endif %}>{{ value.name }}</option>
	                                 {% endfor %}
	                                </select>
                                {% endif %}
                                </div>
                            </div>
                            {% endfor %}
                            
                            <hr />
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_loader_torgsoft_text_parameters_title }}</label>
                                <div class="col-sm-8"></div>
                            </div>
                            
                            {% for index, default in oc_loader_torgsoft_defailt_values %}
                            	{% if default.option %}
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_{{ index }}">{{ default.title }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_loader_torgsoft_{{ index }}">
                                {% 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_loader_torgsoft_{{ index }}">{{ default.title }}</label>
                            	<div class="col-sm-8">
                            	<input class="form-control" name="oc_loader_torgsoft_{{ index }}" type="text" value="{{ default.value }}" />
                            	</div>
                            </div>
                            	{% endif %}
                            {% endfor %}
                            
                            <hr />
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_loader_torgsoft_text_formulas_category }}</label>
                                <div class="col-sm-8">{{ oc_loader_torgsoft_text_formulas_category_comment }}</div>
                            </div>
                            <div class="form-group required">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_meta_title_category">{{ oc_loader_torgsoft_text_meta_title_category }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_loader_torgsoft_meta_title_category" type="text" value="{{ oc_loader_torgsoft_meta_title_category }}" /></div>
                            </div>
							<div class="form-group required">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_meta_h1_category">{{ oc_loader_torgsoft_text_meta_h1_category }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_loader_torgsoft_meta_h1_category" type="text" value="{{ oc_loader_torgsoft_meta_h1_category }}" /></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_meta_description_category">{{ oc_loader_torgsoft_text_meta_description_category }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_loader_torgsoft_meta_description_category" type="text" value="{{ oc_loader_torgsoft_meta_description_category }}" /></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_meta_keywords_category">{{ oc_loader_torgsoft_text_meta_keywords_category }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_loader_torgsoft_meta_keywords_category" type="text" value="{{ oc_loader_torgsoft_meta_keywords_category }}" /></div>
                            </div>
                            
                            <hr />
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_loader_torgsoft_text_formulas_product }}</label>
                                <div class="col-sm-8">{{ oc_loader_torgsoft_text_formulas_product_comment }}</div>
                            </div>
                            <div class="form-group required">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_meta_title">{{ oc_loader_torgsoft_text_meta_title }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_loader_torgsoft_meta_title" type="text" value="{{ oc_loader_torgsoft_meta_title }}" />
                            	<div class="col-sm-10">
                                  <label class="checkbox-inline">
                   					<input type="checkbox" name="oc_loader_torgsoft_update_meta_title" value="1" {{ oc_loader_torgsoft_update_meta_title }} /> {{ oc_loader_torgsoft_text_update }}
                   	              </label>
                                 </div>
                                 </div>
                            </div>
							<div class="form-group required">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_meta_h1">{{ oc_loader_torgsoft_text_meta_h1 }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_loader_torgsoft_meta_h1" type="text" value="{{ oc_loader_torgsoft_meta_h1 }}" />
                            	<div class="col-sm-10">
                                  <label class="checkbox-inline">
                   					<input type="checkbox" name="oc_loader_torgsoft_update_meta_h1" value="1" {{ oc_loader_torgsoft_update_meta_h1 }} /> {{ oc_loader_torgsoft_text_update }}
                   	              </label>
                                 </div>
                                 </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_meta_description">{{ oc_loader_torgsoft_text_meta_description }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_loader_torgsoft_meta_description" type="text" value="{{ oc_loader_torgsoft_meta_description }}" />
                                <div class="col-sm-10">
                                  <label class="checkbox-inline">
                   					<input type="checkbox" name="oc_loader_torgsoft_update_meta_description" value="1" {{ oc_loader_torgsoft_update_meta_description }} /> {{ oc_loader_torgsoft_text_update }}
                   	              </label>
                                 </div>
                                 </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_meta_keywords">{{ oc_loader_torgsoft_text_meta_keywords }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_loader_torgsoft_meta_keywords" type="text" value="{{ oc_loader_torgsoft_meta_keywords }}" />
                                <div class="col-sm-10">
                                  <label class="checkbox-inline">
                   					<input type="checkbox" name="oc_loader_torgsoft_update_meta_keywords" value="1" {{ oc_loader_torgsoft_update_meta_keywords }} /> {{ oc_loader_torgsoft_text_update }}
                   	              </label>
                                 </div>
                                 </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_seourl">{{ oc_loader_torgsoft_text_seourl }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_loader_torgsoft_seourl" type="text" value="{{ oc_loader_torgsoft_seourl }}" />
                                <div class="col-sm-10">
                                  <label class="checkbox-inline">
                   					<input type="checkbox" name="oc_loader_torgsoft_update_seourl" value="1" {{ oc_loader_torgsoft_update_seourl }} /> {{ oc_loader_torgsoft_text_update }}
                   	              </label>
                                 </div>
                                 </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_words_deleted_from_tag">{{ oc_loader_torgsoft_text_words_deleted_from_tag }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_loader_torgsoft_words_deleted_from_tag" type="text" value="{{ oc_loader_torgsoft_words_deleted_from_tag }}" />
                                <div class="col-sm-10">
                                  <label class="checkbox-inline">
                   					<input type="checkbox" name="oc_loader_torgsoft_update_words_deleted_from_tag" value="1" {{ oc_loader_torgsoft_update_words_deleted_from_tag }} /> {{ oc_loader_torgsoft_text_update_tag }}
                   	              </label>
                                 </div>
                                 </div>
                            </div>
                            
                            <hr />
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_loader_torgsoft_text_images }}</label>
                                <div class="col-sm-8"></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_image_ext">{{ oc_loader_torgsoft_text_image_ext }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_loader_torgsoft_image_ext" type="text" value="{{ oc_loader_torgsoft_image_ext }}" /></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_image_output">{{ oc_loader_torgsoft_text_image_output }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_loader_torgsoft_image_output" type="text" value="{{ oc_loader_torgsoft_image_output }}" /></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_image_width">{{ oc_loader_torgsoft_text_image_width }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_loader_torgsoft_image_width" type="text" value="{{ oc_loader_torgsoft_image_width }}" /></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_image_height">{{ oc_loader_torgsoft_text_image_height }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_loader_torgsoft_image_height" type="text" value="{{ oc_loader_torgsoft_image_height }}" /></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_image_quality">{{ oc_loader_torgsoft_text_image_quality }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_loader_torgsoft_image_quality" type="text" value="{{ oc_loader_torgsoft_image_quality }}" /></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_image_dir">{{ oc_loader_torgsoft_text_image_dir }}</label>
                                <div class="col-sm-8"><input class="form-control" name="oc_loader_torgsoft_image_dir" type="text" value="{{ oc_loader_torgsoft_image_dir }}" /></div>
                            </div>
                            
                            <hr />
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_loader_torgsoft_text_special }}</label>
                                <div class="col-sm-8"></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label">{{ oc_loader_torgsoft_text_hide_missing_products }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_loader_torgsoft_hide_missing_products">
                                {% for value in oc_loader_torgsoft_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_loader_torgsoft_text_hide_products_with_zero_quantity }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_loader_torgsoft_hide_products_with_zero_quantity">
                                {% for value in oc_loader_torgsoft_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_loader_torgsoft_text_show_not_changed }}</label>
                                <div class="col-sm-8">
                                <select class="form-control" name="oc_loader_torgsoft_show_not_changed">
                                {% for value in oc_loader_torgsoft_show_not_changed %}
                                	<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_loader_torgsoft_cache"><span data-toggle="tooltip" title="{{ oc_loader_torgsoft_text_help_cache }}">{{ oc_loader_torgsoft_text_cache }}</span></label>
                                <div class="col-sm-8"><input class="form-control" name="oc_loader_torgsoft_cache" type="text" value="{{ oc_loader_torgsoft_cache }}" /></div>
                            </div>
                            
                        {% endif %}
                        </div>

						{% if oc_loader_torgsoft_file_exist %}
                        <div id="tab-order" class="tab-pane">
                            <div class="form-group">
                                <label class="col-sm-4 control-label" for="oc_loader_torgsoft_order_status_to_exchange">{{ oc_loader_torgsoft_text_entry_order_status_to_exchange }}</label>
                                <div class="col-sm-8"><select class="form-control" name="oc_loader_torgsoft_order_status_to_exchange">
                                            {% for order_status in order_statuses %}
                                            <option value="{{ order_status.order_status_id }}" {% if oc_loader_torgsoft_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_loader_torgsoft_order_status">{{ oc_loader_torgsoft_text_entry_order_status }}</label>
                                <div class="col-sm-8">
                                        <select class="form-control" name="oc_loader_torgsoft_order_status">
                                            {% for order_status in order_statuses %}
                                            <option value="{{ order_status.order_status_id }}" {% if oc_loader_torgsoft_order_status == order_status.order_status_id %}selected{% endif %}>{{ order_status.name }}</option>
                                            {% endfor %}
                                        </select>
                                </div>
                            </div>
						{% endif %}
                        </div>
                    {% endif %}
                </div>
                
            <hr />
            <div style="text-align:center; opacity: .5">
                <p>{{ oc_loader_torgsoft_version_text }} | <a target="_blank" href="{{ LS }}">{{ oc_loader_torgsoft_text_homepage }}</a> | <a target="_blank" href="http://torgsoft.ua">Торгсофт</a> {% if LS == 'http://localhost' %} | <input type="submit" name="Сохранить" value="Save"/>{% endif %}</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 }}