<?php echo $this->render('admin/header.phtml'); ?>


<script type="text/javascript" language="javascript">

	$(document).ready(function () {

		<?php if( isset( $this->editContentSuccess ) ){ ?>
			alertify.success("<i class='fa fa-check'></i> <?php echo @Lib_Lang::translate(admin_content_editcontent_success); ?>");
		<?php } ?>	
		
	});

</script>

<div class="container">		

<?php echo $this->render('admin/menu.phtml'); ?>

	<div class="row">
		<div class="col-xs-3 col-sm-3 col-md-3">
		</div>
		<div class="col-xs-9 col-sm-9 col-md-9 text-right">
			<a href="<?php echo @$this->url(array('controller' => 'admin', 'action' => 'content'), 'default', true); ?>" class="btn btn-default btn-sm"><i class='fa fa-reorder'></i> <?php echo @Lib_Lang::translate(admin_content_menu_list); ?></a>
		</div>
	</div>

<script type="text/javascript" language="javascript">

	$(document).ready(function () {	

		$('#formAddCategory').validate({
			errorClass: "formError",
			errorElement: "div",
			rules: {
				category_name: {
					required: true
				},
				image_category: {
					required: false
				}
			},
			messages: {
				category_name: {
					required: "<?php echo @Lib_Lang::translate(admin_content_required); ?>"
				}
			}
		});	
	
	
	});

</script>

	
	<div class="row">
		<div class="col-xs-3 col-sm-3 col-md-3">
			<h3><?php echo @Lib_Lang::translate(admin_content_edit_top); ?></h3>
		</div>
		<div class="col-xs-9 col-sm-9 col-md-9 text-right">
		</div>
	</div>


		
	<form id="formAddCategory" method="post" class="form-horizontal">
	
	<div class="row">
		<div class="col-xs-12 col-sm-4 col-md-4 text-right formLabelMarginTop"><?php echo @Lib_Lang::translate(admin_content_short); ?></div>
		<div class="col-xs-12 col-sm-8 col-md-8"><input maxlength="100" name="content_short" class="form-control" value="<?php echo$this->rowContent['content_short']; ?>" /></div>
	</div>

	
	
	<div class="row">
		<div class="col-xs-3 col-sm-3 col-md-3">
			<h3><?php echo @Lib_Lang::translate(admin_content_edit_mt); ?></h3>
		</div>
		<div class="col-xs-9 col-sm-9 col-md-9 text-right">
		</div>
	</div>
	
	
	<div class="row">
		<div class="col-xs-12 col-sm-4 col-md-4 text-right formLabelMarginTop"><?php echo @Lib_Lang::translate(admin_content_edit_mt_title); ?></div>
		<div class="col-xs-12 col-sm-8 col-md-8"><input name="content_mt_title" class="form-control" value="<?php echo$this->rowContent['content_mt_title']; ?>" /></div>
	</div>
	
	
	<div class="row">
		<div class="col-xs-12 col-sm-4 col-md-4 text-right formLabelMarginTop"><?php echo @Lib_Lang::translate(admin_content_edit_mt_description); ?></div>
		<div class="col-xs-12 col-sm-8 col-md-8"><input name="content_mt_description" class="form-control" value="<?php echo$this->rowContent['content_mt_description']; ?>" /></div>
	</div>
	
	
	<div class="row">
		<div class="col-xs-12 col-sm-4 col-md-4 text-right formLabelMarginTop"><?php echo @Lib_Lang::translate(admin_content_edit_mt_keywords); ?></div>
		<div class="col-xs-12 col-sm-8 col-md-8"><input name="content_mt_keywords" class="form-control" value="<?php echo$this->rowContent['content_mt_keywords']; ?>" /></div>
	</div>
	
	
	
	
	<div class="row">
		<div class="col-xs-3 col-sm-3 col-md-3">
			<h3><?php echo @Lib_Lang::translate(admin_content_edit_top_translate); ?></h3>
		</div>
		<div class="col-xs-9 col-sm-9 col-md-9 text-right">
		</div>
	</div>	
	
	
	<?php foreach ($this->dataLang as $key => $val):?>
	<div class="row">
	
		<div class="col-xs-12 col-sm-4 col-md-4 text-right formLabelMarginTop"><u><b><?php echo $val['lang_name']; ?></b></u></div>
		<div class="col-xs-12 col-sm-8 col-md-8"></div>
		
	</div>
	<div class="row">
	
		<div class="col-xs-12 col-sm-4 col-md-4 text-right formLabelMarginTop"><?php echo @Lib_Lang::translate(admin_content_name); ?></div>
		<div class="col-xs-12 col-sm-8 col-md-8"><input maxlength="100" name="content_name_translate[<?php echo $val['lang_suffix']; ?>]" class="form-control" value="<?php echo $val['language_value']; ?>" /></div>
		
	</div>
	<div class="row">
	
		<div class="col-xs-12 col-sm-4 col-md-4 text-right formLabelMarginTop"><?php echo @Lib_Lang::translate(admin_content_description); ?></div>
		<div class="col-xs-12 col-sm-8 col-md-8"><textarea rows="15" name="content_description_translate[<?php echo $val['lang_suffix']; ?>]" class="form-control"><?php echo $val['language_value_2']; ?></textarea></div>
		
	</div>
	<div class="row"><hr /></div>
	<?php endforeach; ?>

	
	<div class="row">
		<div class="col-xs-12 col-sm-4 col-md-4 text-right"></div>
		<div class="col-xs-12 col-sm-8 col-md-8"><input name="admin_editcontent" class="btn btn-info form-control" type="submit" value="<?php echo @Lib_Lang::translate(admin_content_edit_button); ?>" /></div>
	</div>
	
	</form>	
		
</div>

<?php echo $this->render('admin/footer.phtml'); ?>