{{ header }}
{{ column_left }}
<div id="content">
	<div class="page-header">
		<div class="container-fluid">
			<div class="pull-right">
				<button type="submit" form="form-blog-article" data-toggle="tooltip" title="{{ button_save }}" class="btn btn-primary"><i class="fa fa-save"></i></button>
				<a href="{{ cancel }}" data-toggle="tooltip" title="{{ button_cancel }}" class="btn btn-default"><i class="fa fa-reply"></i></a>
			</div>
			<h1>{{ heading_title }}</h1>
			<ul class="breadcrumb">
				{% for breadcrumb in breadcrumbs %}
					<li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
				{% endfor %}
			</ul>
		</div>
	</div>
	<div class="container-fluid">
		{% if error_warning %}
			<div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i>{{ error_warning }}
				<button type="button" class="close" data-dismiss="alert">&times;</button>
			</div>
		{% endif %}
		<div class="panel panel-default">
			<div class="panel-heading">
				<h3 class="panel-title"><i class="fa fa-pencil"></i>{{ text_form }}</h3>
			</div>
			<div class="panel-body">
				<form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-blog-article" class="form-horizontal">
					<ul class="nav nav-tabs">
						<li class="active"><a href="#tab-general" data-toggle="tab">{{ tab_general }}</a></li>
						<li><a href="#tab-data" data-toggle="tab">{{ tab_data }}</a></li>
						<li><a href="#tab-option" data-toggle="tab">{{ tab_option }}</a></li>
						<li><a href="#tab-related" data-toggle="tab">{{ tab_related }}</a></li>
					</ul>
					<div class="tab-content">
						<div class="tab-pane active" id="tab-general">
							<ul class="nav nav-tabs" id="language">
								{% for language in languages %}
									<li><a href="#language{{ language.language_id }}" data-toggle="tab"><img src="language/{{ language.code }}/{{ language.code }}.png" title="{{ language.name }}" />{{ language.name }}</a></li>
								{% endfor %}
							</ul>
							<div class="tab-content">
								{% for language in languages %}
									<div class="tab-pane" id="language{{ language.language_id }}">
										<div class="form-group required">
											<label class="col-lg-2 col-md-2 col-sm-2 col-xs-12 control-label"><span data-toggle="tooltip" title="{{ help_title }}">{{ entry_title }}</label>
											<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12">
												<input type="text" name="article_description[{{ language.language_id }}][article_title]" value="{{ article_description[language.language_id].article_title ? article_description[language.language_id].article_title : ''}} " class="form-control" />
												{% if error_article_title.language.language_id %}
													<span class="text-danger">{{ error_article_title.language.language_id }}</span>
												{% endif %}
											</div>
										</div>
										<div class="form-group required">
											<label class="col-lg-2 col-md-2 col-sm-2 col-xs-12 control-label">{{ entry_description }}</label>
											<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12">
												<textarea name="article_description[{{ language.language_id }}][description]" id="description{{ language.language_id }}" class="form-control">{{ article_description[language.language_id].description ? article_description[language.language_id].description : ''}} </textarea>
												{% if error_description.language.language_id %}
													<span class="text-danger">{{ error_description.language.language_id }}</span>
												{% endif %}
											</div>
										</div>
										<div class="form-group">
											<label class="col-lg-2 col-md-2 col-sm-2 col-xs-12 control-label">{{ entry_meta_description }}</label>
											<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12">
												<textarea name="article_description[{{ language.language_id }}][meta_description]" class="form-control">{{ article_description[language.language_id].meta_description ? article_description[language.language_id].meta_description : ''}} </textarea>
											</div>
										</div>
										<div class="form-group">
											<label class="col-lg-2 col-md-2 col-sm-2 col-xs-12 control-label">{{ entry_meta_keyword }}</label>
											<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12">
												<textarea name="article_description[{{ language.language_id }}][meta_keyword]" class="form-control">{{ article_description[language.language_id].meta_keyword ? article_description[language.language_id].meta_keyword : '' }}</textarea>
											</div>
										</div>
									</div>
								{% endfor %}
							</div>
						</div>
						<div class="tab-pane" id="tab-data">
							<div class="form-group">
								<label class="col-lg-2 col-md-2 col-sm-2 col-xs-12 control-label">{{ entry_featured_image }}</label>
								<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12">
									<a href="" id="thumb-image" data-toggle="image" class="img-thumbnail">
										<img src="{{ thumb2 }}" alt="" title="" data-placeholder="{{ placeholder }}" />
									</a>
									<input type="hidden" name="featured_image" value="{{ featured_image }}" id="input-image" />
								</div>
							</div>
							<table id="additional" class="table table-striped table-bordered table-hover">
								<thead>
									<tr>
										<td class="text-left">{{ entry_additional_description }}</td>
										<td></td>
									</tr>
								</thead>
								{% set module_row = 0 %}
									{% for additional_description in article_addition_description %}
										<tbody id="additional-description{{ module_row }}">
											<tr>
												<td class="text-left">
													{% for language in languages %}
														<div id="">
															<textarea name="article_addition_description[{{ module_row }}][{{ language.language_id }}][additional]" id="description-{{ module_row }}-{{ language.language_id }}" class="form-control">
																{% if additional_description[language.language_id].additional %}{{ additional_description[language.language_id].additional }}
																{% else %}
																	{{ "" }}
																{% endif %}
															</textarea>
															<img src="language/{{ language.code }}/{{ language.code }}.png" title="{{ language.name }}" align="top" />
														</div>
													{% endfor %}
												</td>
												<td class="text-left"><button type="button" onclick="$('#additional-description{{ module_row }}').remove();" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button>
												</td>
											</tr>
										</tbody>
										{% set module_row = module_row + 1 %}
										{% endfor %}
										<tfoot>
											<tr>
												<td></td>
												<td class="text-left">
													<button type="button" onclick="addDescription();" data-toggle="tooltip" title="{{ button_add_description }}" class="btn btn-primary"><i class="fa fa-plus-circle"></i></button>
												</td>
											</tr>
										</tfoot>
									</table>
								</div>
								<div class="tab-pane" id="tab-option">
									<div class="form-group">
										<label class="col-lg-2 col-md-2 col-sm-2 col-xs-12 control-label">{{ entry_allow_comment }}</label>
										<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12">
											<select name="allow_comment" class="form-control">
												<option value="1" {% if allow_comment == 1 %}{{ "selected='selected'" }}{% endif %}>{{ text_yes }}</option>
												<option value="0" {% if allow_comment == 0 %}{{ "selected='selected'" }}{% endif %}>{{ text_no }}</option>
											</select>
										</div>
									</div>
									<div class="form-group required">
										<label class="col-lg-2 col-md-2 col-sm-2 col-xs-12 control-label">{{ entry_author_name }}</label>
										<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12">
											<input type="text" name="author_name" value="{{ author_name }}" class="form-control" />
											<input type="hidden" name="simple_blog_author_id" value="{{ simple_blog_author_id }}" />
											{% if error_author_name %}
												<span class="text-danger">{{ error_author_name }}</span>
											{% endif %}
										</div>
									</div>
									<div class="form-group required">
										<label class="col-lg-2 col-md-2 col-sm-2 col-xs-12 control-label">{{ entry_keyword }}</label>
										<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12">
											<input type="text" name="keyword" value="{{ keyword }}" class="form-control" />
											{% if error_seo_keyword %}
												<span class="text-danger">{{ error_seo_keyword }}</span>
											{% endif %}
										</div>
									</div>
									<div class="form-group">
										<label class="col-lg-2 col-md-2 col-sm-2 col-xs-12 control-label">{{ entry_category }}</label>
										<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12">
											<div class="well well-sm" style="height: 150px; overflow: auto; margin-bottom:0;">
												{% for category in categories %}
													<div class="checkbox">
														<label>
															{% if category.simple_blog_category_id in article_category %}
																<input type="checkbox" name="article_category[]" value="{{ category.simple_blog_category_id}}" checked="checked" />
																{{ category.name }}
															{% else %}
																<input type="checkbox" name="article_category[]" value="{{ category.simple_blog_category_id }}" />
																{{ category.name }}
															{% endif %}
														</label>
													</div>
												{% endfor %}
											</div>
											<a onclick="$(this).parent().find(':checkbox').prop('checked', true);">{{ text_select_all }}</a>/ <a onclick="$(this).parent().find(':checkbox').prop('checked', false);">{{ text_unselect_all }}</a>
										</div>
									</div>
									<div class="form-group">
										<label class="col-lg-2 col-md-2 col-sm-2 col-xs-12 control-label">{{ entry_store }}</label>
										<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12">
											<div class="well well-sm" style="height: 150px; overflow: auto; margin-bottom:0;">
												<div class="checkbox">
													<label>
														{% if 0 in article_store %}
															<input type="checkbox" name="article_store[]" value="0" checked="checked" />
															{{ text_default}}
														{% else %}
															<input type="checkbox" name="article_store[]" value="0" />
															{{ text_default }}
														{% endif %}
													</label>
												</div>
												{% for store in stores %}
													<div class="checkbox">
														<label>
															{% if article_store in store.store_id %}
																<input type="checkbox" name="article_store[]" value="{{ store.store_id}}" checked="checked" />
																{{ store.name }}
															{% else %}
																<input type="checkbox" name="article_store[]" value="{{ store.store_id }}" />
																{{ store.name }}
															{% endif %}
														</label>
													</div>
												{% endfor %}
											</div>
											<a onclick="$(this).parent().find(':checkbox').prop('checked', true);">{{ text_select_all }}</a>/ <a onclick="$(this).parent().find(':checkbox').prop('checked', false);">{{ text_unselect_all }}</a>
										</div>
									</div>
									<div class="form-group">
										<label class="col-lg-2 col-md-2 col-sm-2 col-xs-12 control-label">{{ entry_sort_order }}</label>
										<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12">
											<input type="text" name="sort_order" value="{{ sort_order }}" class="form-control" />
										</div>
									</div>
									<div class="form-group">
										<label class="col-lg-2 col-md-2 col-sm-2 col-xs-12 control-label">{{ entry_status }}</label>
										<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12">
											<select name="status" class="form-control">
												<option value="1" {% if status == 1 %}{{ "selected='selected'" }}{% endif %}>{{ text_enabled }}</option>
												<option value="0" {% if status == 0 %}{{ "selected='selected'" }}{% endif %}>{{ text_disabled }}</option>
											</select>
										</div>
									</div>
								</div>
								<div class="tab-pane" id="tab-related">
									<div class="form-group">
										<label class="col-lg-2 col-md-2 col-sm-2 col-xs-12 control-label"><span data-toggle="tooltip" title="{{ help_article_related_method }}">{{ entry_article_related_method }}</label>
										<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12">
											<select name="related_article" onchange="getRelatedMethod(this.value);" class="form-control">
												<option value="category_wise" {% if related_article == 'category_wise' %}{{ "selected='selected'" }}{% endif %}>{{ entry_category_wise }}</option>
												<option value="manufacturer_wise" {% if related_article == 'manufacturer_wise' %}{{ "selected='selected'" }}{% endif %}>{{ entry_manufacturer_wise }}</option>
												<option value="product_wise" {% if related_article == 'product_wise' %}{{ "selected='selected'" }}{% endif %}>{{ entry_product_wise }}</option>
											</select>
										</div>
									</div>
									<div class="form-group" id="category-wise" style="display: none;">
										<label class="col-lg-2 col-md-2 col-sm-2 col-xs-12 control-label">{{ entry_category }}</label>
										<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12">
											<div class="well well-sm" style="height: 150px; overflow: auto; margin-bottom:0;">
												{% for category in default_categories %}
													<div class="checkbox">
														<label>
															<input type="checkbox" name="category_wise[]" value="{{category.category_id}}" {% if category_ids %} {% for i in category_ids|length %} {% if category_ids[i] == category.category_id %} {{ "checked='checked'" }} {% endif %} {% endfor %} {% endif %} />
															{{category.name}}
														</label>
													</div>
												{% endfor %}
											</div>
											<a onclick="$(this).parent().find(':checkbox').prop('checked', true);">{{ text_select_all }}</a> / <a onclick="$(this).parent().find(':checkbox').prop('checked', false);">{{ text_unselect_all }}</a>
										</div>
									</div>

									<div class="form-group" id="manufacturer-wise" style="display:none">
										<label class="col-lg-2 col-md-2 col-sm-2 col-xs-12 control-label">{{ entry_manufacturer }}</label>
										<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12">
											<div class="well well-sm" style="height: 150px; overflow: auto; margin-bottom:0;">
												{% for manufacturer in default_manufacturers %}
													<div class="checkbox">
														<label>
															<input type="checkbox" name="manufacturer_wise[]" value="{{manufacturer.manufacturer_id}}" {% if manufacturer_ids %} {% for i in manufacturer_ids|length %} {% if manufacturer_ids[i] == manufacturer.manufacturer_id %} {{ "checked='checked'" }} {% endif %} {% endfor %} {% endif %} />
															{{ manufacturer.name }}
														</label>
													</div>
												{% endfor %}
											</div>
											<a onclick="$(this).parent().find(':checkbox').prop('checked', true);">{{ text_select_all }}</a> / <a onclick="$(this).parent().find(':checkbox').prop('checked', false);">{{ text_unselect_all }}</a>
										</div>
									</div> 
									<div class="form-group" id="product-wise" style="display:inherit">
										<label class="col-lg-2 col-md-2 col-sm-2 col-xs-12 control-label">{{ entry_product }}</label>
										<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12">
											<input type="text" name="product" value="" class="form-control" />
											<div id="product-wise-list" class="well well-sm" style="height: 150px; overflow: auto; margin-bottom:0;">
												{% if products %}
													{% for product in products %}
														<div id="product-wise-list{{ product.product_id }}"><i class="fa fa-minus-circle"></i>{{ product.name }}
															<input type="hidden" name="product_wise[]" value="{{ product.product_id }}" />
														</div>
													{% endfor %}
												{% endif %}
											</div>
										</div>
									</div>
									<div class="form-group">
										<h3 class="text-center">{{ entry_blog_related_articles }}</h3>
									</div>
									<table id="related-article" class="table table-striped table-bordered table-hover">
										<thead>
											<tr>
												<td class="text-left"><span data-toggle="tooltip" title="{{ help_related_article_name }}">{{ entry_related_article_name }}</td>
												<td class="text-left">{{ entry_sort_order }}</td>
												<td class="text-left">{{ entry_status }}</td>
												<td></td>
											</tr>
										</thead>
										{% set article_row = 0 %}
											{% for related_articles in blog_related_articles %}
												<tbody id="article-row{{ article_row }}">
													<tr>
														<td class="text-left">
															<input type="text" name="blog_related_articles[{{ article_row }}][article_title]" value="{{ related_articles.article_title }}" id="article-title-{{ article_row }}" onkeyup="getArticles({{ article_row }}, this.value);" class="form-control" />
															<input type="hidden" name="blog_related_articles[{{ article_row }}][simple_blog_article_related_id]" value="{{ related_articles.simple_blog_article_related_id }}" />
														</td>
														<td class="text-left">
															<input type="text" name="blog_related_articles[{{ article_row }}][sort_order]" value="{{ related_articles.sort_order }}" class="form-control" />
														</td>
														<td class="left">
															<select name="blog_related_articles[{{ article_row }}][status]" class="form-control">
																{% if related_articles.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>
														</td>
														<td class="text-left">
															<button type="button" onclick="$('#article-row{{ article_row }}').remove();" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button>
														</td>
													</tr>
												</tbody>
												{% set article_row = article_row + 1 %}
												{% endfor %}
												<tfoot>
													<tr>
														<td colspan="3"></td>
														<td class="text-left">
															<button type="button" onclick="addArticles();" data-toggle="tooltip" title="{{ button_add_articles }}" class="btn btn-primary"><i class="fa fa-plus-circle"></i></button>
														</td>
													</tr>
												</tfoot>
											</table>
										</div>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
				<script type="text/javascript" src="view/javascript/summernote/summernote.js"></script>
				<link href="view/javascript/summernote/summernote.css" rel="stylesheet" />
				<script type="text/javascript" src="view/javascript/summernote/summernote-image-attributes.js"></script>
				<script type="text/javascript" src="view/javascript/summernote/opencart.js"></script>
				<script type="text/javascript">
					{% for language in languages %}
					$('#description{{ language.language_id }}').summernote({height: 300});
					{% endfor %}
					$('#language a:first').tab('show');
					$('#option a:first').tab('show');
				</script>

				<script type="text/javascript">
					{% set module_row = 0 %}
					{% for module in article_addition_description %}
					{% for language in languages %}
					$('#description-{{ module_row }}-{{ language.language_id }}').summernote({height: 100});
					{% endfor %}
					{% set module_row = module_row + 1 %}
					{% endfor %}
				</script>

				<script type="text/javascript">
					$('input[name=\'author_name\']').autocomplete({
						'source': function(request, response) {
							$.ajax({
								url: 'index.php?route=simple_blog/author/autocomplete&user_token={{ user_token }}&author_name=' +  encodeURIComponent(request),
								dataType: 'json',
								success: function(json) {
									response($.map(json, function(item) {
										return {
											label: item['name'],
											value: item['simple_blog_author_id']
										}
									}));
								}
							});
						},
						'select': function(item) {
							$('input[name=\'author_name\']').val(item['label']);
							$('input[name=\'simple_blog_author_id\']').val(item['value']);
						}
					});
				</script>

				<script type="text/javascript">
					var module_row = {{ module_row }};
					function addDescription() {
						html  = '<tbody id="additional-description' + module_row + '">';
						html += '   <tr>';
						html += '       <td class="text-left">';
						html += '           ';
						{% for language in languages %}
						html += '<div id="">'
						html += '	<textarea name="article_addition_description[' + module_row + '][{{ language.language_id }}][additional]" id="description-' + module_row + '-{{ language.language_id }}" class="form-control"></textarea><img src="language/{{ language.code }}/{{ language.code }}.png" title="{{ language.name }}" align="top" />';
						html += '</div>';
						{% endfor %}
						html += '           ';
						html += '       </td>';
						html += '  <td class="text-left"><button type="button" onclick="$(\'#additional-description' + module_row + '\').remove();" data-toggle="tooltip" title="{{button_remove}}" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td>';
						html += '   </tr>';
						html += '</tbody>';
						$('#additional tfoot').before(html);
						{% for language in languages %}
						$('#description-' + module_row + '-{{language.language_id}}').summernote({height: 100});
						{% endfor %}
						module_row++;
					}
				</script>

				<script type="text/javascript">
					$(document).ready(function() {
						{% if related_article == 'product_wise' %}
						$("#category-wise").css({display: "none"});
						$("#manufacturer-wise").css({display: "none"});
						$("#product-wise").css({display: "inherit"});
						{% elseif related_article == 'category_wise' %}
						$("#category-wise").css({display: "inherit"});
						$("#manufacturer-wise").css({display: "none"});
						$("#product-wise").css({display: "none"});
						{% elseif related_article == 'manufacturer_wise' %}
						$("#category-wise").css({display: "none"});
						$("#manufacturer-wise").css({display: "inherit"});
						$("#product-wise").css({display: "none"});
						{% endif %}
					});
				</script>

				<script type"text/javacript">
					function getRelatedMethod(value) {
						if (value == 'product_wise') {
							$("#category-wise").css({display: "none"});
							$("#manufacturer-wise").css({display: "none"});
							$("#product-wise").css({display: "inherit"});
						} else if (value == 'category_wise') {
							$("#category-wise").css({display: "inherit"});
							$("#manufacturer-wise").css({display: "none"});
							$("#product-wise").css({display: "none"});
						} else if (value == 'manufacturer_wise') {
							$("#category-wise").css({display: "none"});
							$("#manufacturer-wise").css({display: "inherit"});
							$("#product-wise").css({display: "none"});
						}
					}
				</script>

				<script type="text/javascript">

					$('input[name=\'product\']').autocomplete({
						source: function(request, response) {
							$.ajax({
								url: 'index.php?route=catalog/product/autocomplete&user_token={{ user_token }}&filter_name=' +  encodeURIComponent(request),
								dataType: 'json',
								success: function(json) {
									console.log(json);
									response($.map(json, function(item) {
										return {
											label: item['name'],
											value: item['product_id']
										}
									}));
								}
							});
						},
						select: function(item) {
							$('input[name=\'product\']').val('');

							$('#product-wise-list' + item['value']).remove();

							$('#product-wise-list').append('<div id="product-wise-list' + item['value'] + '"><i class="fa fa-minus-circle"></i>' + item['label'] + '<input type="hidden" name="product_wise[]" value="' + item['value'] + '" /></div>');
						},
						error: function(){
							console.log('asdad');
						}
					});

					$('#product-wise-list').delegate('.fa-minus-circle', 'click', function() {
						$(this).parent().remove();
					});

				</script>

				<script type="text/javascript">
					var article_row = {{ article_row }};

					function addArticles() {

						html  = '<tbody id="article-row' + article_row + '">';
						html += '	<tr>';
						html += '		<td class="text-left">';
						html += '			<input type="text" name="blog_related_articles[' + article_row + '][article_title]" value="" id="article-title-' + article_row + '" onkeyup="getArticles(' + article_row + ', this.value);" class="form-control" /><input type="hidden" name="blog_related_articles[' + article_row + '][simple_blog_article_related_id]" value="0" />';
						html += '		</td>';
						html += '		<td class="text-left">';
						html += '			<input type="text" name="blog_related_articles[' + article_row + '][sort_order]" value="" class="form-control" />';
						html += '		</td>';
						html += '		<td class="text-left">';
						html += '			<select name="blog_related_articles[' + article_row + '][status]" class="form-control">';
						html +='				<option value="1">{{ text_enabled }}</option>';
						html +='				<option value="0">{{ text_disabled }}</option>';
						html += '			</select>';
						html += '		</td>';
						html += '		<td class="text-left"><button type="button" onclick="$(\'#article-row' + article_row + '\').remove();" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td>';
						html += '	</tr>';
						html += '</tbody>';

						$('#related-article tfoot').before(html);

						article_row++;
					}
				</script>

				<script type="text/javascript">
					function getArticles(article_row, value) {
						$('input[name=\'blog_related_articles[' + article_row + '][article_title]\']').autocomplete({
							'source': function(request, response) {
								$.ajax({
									url: 'index.php?route=simple_blog/article/autocomplete_article&user_token={{ user_token }}&simple_blog_article_id={{simple_blog_article_id}}&filter_name=' +  encodeURIComponent(request),
									dataType: 'json',
									success: function(json) {
										response($.map(json, function(item) {
											return {
												label: item['article_title'],
												value: item['simple_blog_article_id']
											}
										}));
									}
								});
							},
							'select': function(item) {
								$('input[name=\'filter_name\']').val(item['label']);
								$('input[name=\'blog_related_articles[' + article_row + '][article_title]\']').val(item['label']);
								$('input[name=\'blog_related_articles[' + article_row + '][simple_blog_article_related_id]\']').val(item['value']);
							}
						});
					}
				</script>
				{{ footer }}