<div class="modal-header">
  <button type="button" class="pull-right btn btn-danger btn-sm" data-dismiss="modal" aria-hidden="true"><i class="fa fa-close"></i></button>
  <h4 class="modal-title">{{ text_mass_edit }}</h4>
</div>
<div class="modal-body" id="body-product-setting-edit-mass">
  <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-product-setting-edit-mass" class="form-horizontal">	
	<div class="form-group">
	  <div class="alert alert-info"><i class="fa fa-info-circle"></i> {{ text_edit_mass_info }}</div>
	</div>
	<div class="table-responsive">
	  <table class="table table-striped table-hover table-bordered">
		<thead>
		  <tr>
			<td class="text-left">{{ text_setting_data }}</td>
			<td class="text-center" width="1%">{{ entry_status }}</td>
		  </tr>
		</thead>
	    <tbody>
  		  <tr>
			<td class="text-left">{{ entry_name }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_name"{% if admin_quick_edit_product_mass_name %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_name" />
				<label for="admin_quick_edit_product_mass_name"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ entry_description }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_description"{% if admin_quick_edit_product_mass_description %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_description" />
				<label for="admin_quick_edit_product_mass_description"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ entry_meta_title }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_meta_title"{% if admin_quick_edit_product_mass_meta_title %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_meta_title" />
				<label for="admin_quick_edit_product_mass_meta_title"></label>
			  </div>
			</td>
		  </tr>
		  {% if presence_column_meta_h1 != 'meta-tag-h1-not-in-opencart' %}
		  <tr>
			<td class="text-left">{{ entry_meta_h1 }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_meta_h1"{% if admin_quick_edit_product_mass_meta_h1 %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_meta_h1" />
				<label for="admin_quick_edit_product_mass_meta_h1"></label>
			  </div>
			</td>
		  </tr>
		  {% endif %}
		  <tr>
			<td class="text-left">{{ entry_meta_description }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_meta_description"{% if admin_quick_edit_product_mass_meta_description %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_meta_description" />
				<label for="admin_quick_edit_product_mass_meta_description"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ entry_meta_keyword }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_meta_keyword"{% if admin_quick_edit_product_mass_meta_keyword %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_meta_keyword" />
				<label for="admin_quick_edit_product_mass_meta_keyword"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ entry_tag }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_tag"{% if admin_quick_edit_product_mass_tag %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_tag" />
				<label for="admin_quick_edit_product_mass_tag"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ column_image }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_image"{% if admin_quick_edit_product_mass_image %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_image" />
				<label for="admin_quick_edit_product_mass_image"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ column_price }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_price"{% if admin_quick_edit_product_mass_price %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_price" />
				<label for="admin_quick_edit_product_mass_price"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ column_quantity }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_quantity"{% if admin_quick_edit_product_mass_quantity %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_quantity" />
				<label for="admin_quick_edit_product_mass_quantity"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ entry_minimum }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_minimum"{% if admin_quick_edit_product_mass_minimum %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_minimum" />
				<label for="admin_quick_edit_product_mass_minimum"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ text_model }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_model"{% if admin_quick_edit_product_mass_model %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_model" />
				<label for="admin_quick_edit_product_mass_model"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ text_seo }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_seo_url"{% if admin_quick_edit_product_mass_seo_url %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_seo_url" />
				<label for="admin_quick_edit_product_mass_seo_url"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ text_code }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_code"{% if admin_quick_edit_product_mass_code %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_code" />
				<label for="admin_quick_edit_product_mass_code"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ text_date_available }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_date_available"{% if admin_quick_edit_product_mass_date_available %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_date_available" />
				<label for="admin_quick_edit_product_mass_date_available"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ text_shipping }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_shipping"{% if admin_quick_edit_product_mass_shipping %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_shipping" />
				<label for="admin_quick_edit_product_mass_shipping"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ text_size }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_size"{% if admin_quick_edit_product_mass_size %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_size" />
				<label for="admin_quick_edit_product_mass_size"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ entry_sort_order }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_sort_order"{% if admin_quick_edit_product_mass_sort_order %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_sort_order" />
				<label for="admin_quick_edit_product_mass_sort_order"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ column_manufacturer }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_manufacturer"{% if admin_quick_edit_product_mass_manufacturer %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_manufacturer" />
				<label for="admin_quick_edit_product_mass_manufacturer"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ column_category }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_category"{% if admin_quick_edit_product_mass_category %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_category" />
				<label for="admin_quick_edit_product_mass_category"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ entry_filter }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_filter"{% if admin_quick_edit_product_mass_filter %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_filter" />
				<label for="admin_quick_edit_product_mass_filter"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ entry_store }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_store"{% if admin_quick_edit_product_mass_store %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_store" />
				<label for="admin_quick_edit_product_mass_store"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ entry_download }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_download"{% if admin_quick_edit_product_mass_download %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_download" />
				<label for="admin_quick_edit_product_mass_download"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ entry_related }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_related"{% if admin_quick_edit_product_mass_related %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_related" />
				<label for="admin_quick_edit_product_mass_related"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ text_add_discount }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_add_discount"{% if admin_quick_edit_product_mass_add_discount %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_add_discount" />
				<label for="admin_quick_edit_product_mass_add_discount"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ text_edit_discount }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_edit_discount"{% if admin_quick_edit_product_mass_edit_discount %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_edit_discount" />
				<label for="admin_quick_edit_product_mass_edit_discount"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ text_add_special }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_add_special"{% if admin_quick_edit_product_mass_add_special %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_add_special" />
				<label for="admin_quick_edit_product_mass_add_special"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ text_edit_special }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_edit_special"{% if admin_quick_edit_product_mass_edit_special %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_edit_special" />
				<label for="admin_quick_edit_product_mass_edit_special"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ tab_attribute }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_attribute"{% if admin_quick_edit_product_mass_attribute %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_attribute" />
				<label for="admin_quick_edit_product_mass_attribute"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ tab_option }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_option"{% if admin_quick_edit_product_mass_option %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_option" />
				<label for="admin_quick_edit_product_mass_option"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ text_images }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_images"{% if admin_quick_edit_product_mass_images %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_images" />
				<label for="admin_quick_edit_product_mass_images"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ entry_reward }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_reward"{% if admin_quick_edit_product_mass_reward %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_reward" />
				<label for="admin_quick_edit_product_mass_reward"></label>
			  </div>
			</td>
		  </tr>
		  <tr>
			<td class="text-left">{{ tab_design }}</td>
			<td class="text-center">
			  <div class="input-checkbox">
				<input type="checkbox" class="checkbox" name="admin_quick_edit_product_mass_design"{% if admin_quick_edit_product_mass_design %} checked="checked"{% endif %} id="admin_quick_edit_product_mass_design" />
				<label for="admin_quick_edit_product_mass_design"></label>
			  </div>
			</td>
		  </tr>
		</tbody>
	  </table>
	</div>
  </form>
</div>
<div class="modal-footer">
  <div class="text-center"><a data-form="form-product-setting-edit-mass" class="button-save btn btn-primary"><i class="fa fa-save"></i> {{ button_save }}</a></div>
</div>
<script src="view/javascript/admin_quick_edit/custom-scrollbar/slimscroll.min.js" type="text/javascript"></script>
<script type="text/javascript"><!--
$(function(){
    $('#body-product-setting-edit-mass').slimScroll({
        height: '500px',
		borderRadius: '0',
		opacity: .2,
    });
});
//--></script>
<script type="text/javascript"><!--
$(".button-save").on('click', function(){		
	$.ajax({
		url: $('#' + $(this).data('form')).attr('action'),
		type: 'post',
		dataType: 'json',
		data: $('#product-list input[type=\'checkbox\']:checked, #' + $(this).data('form') + ' input[type=\'text\'], #' + $(this).data('form') + ' input[type=\'checkbox\']:checked, #' + $(this).data('form') + ' select'),
		success: function(json) {				
			if (json['error']) {
				$('#form-product-setting-edit-mass').before('<div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> ' + json['error'] + '</div>');
				
				$('.alert-danger').delay(1500).fadeOut(500);
			}
								
			if (json['success']) {
				$('#form-product-setting-edit-mass').before('<div class="alert alert-success"><i class="fa fa-check-circle"></i> ' + json['success'] + '</div>');	
				
				setTimeout(function(){
					location.reload(true);
				}, 1000)
			}
		}
	});
});  
//--></script>