<commit_before><?php
/**
 * OmmuMeta (ommu-meta)
 * @var $this MetaController
 * @var $model OmmuMeta
 * @var $form CActiveForm
 * version: 1.3.0
 *
 * @author <NAME> <<EMAIL>>
 * @copyright Copyright (c) 2012 Ommu Platform (opensource.ommu.co)
 * @link https://github.com/ommu/ommu-core
 * @contact (+62)856-299-4114
 *
 */

	$this->breadcrumbs=array(
		'Ommu Metas'=>array('manage'),
		$model->id=>array('view','id'=>$model->id),
		'Update',
	);
?>

<div class="form">

	<?php $form=$this->beginWidget('application.libraries.core.components.system.OActiveForm', array(
		'id'=>'ommu-meta-form',
		'enableAjaxValidation'=>true,
		'htmlOptions' => array('enctype' => 'multipart/form-data')
	)); ?>

	<?php //begin.Messages ?>
	<div id="ajax-message">
	<?php
		echo $form->errorSummary($model);
		if(Yii::app()->user->hasFlash('error'))
			echo Utility::flashError(Yii::app()->user->getFlash('error'));
		if(Yii::app()->user->hasFlash('success'))
			echo Utility::flashSuccess(Yii::app()->user->getFlash('success'));
	?>
	</div>
	<?php //begin.Messages ?>

	<fieldset>

		<?php if($model->meta_image != '') {
			$model->old_meta_image = $model->meta_image;
			echo $form->hiddenField($model,'old_meta_image');
			$images = Yii::app()->request->baseUrl.'/public/'.$model->old_meta_image;
			?>
			<div class="form-group row">
				<?php echo $form->labelEx($model,'old_meta_image', array('class'=>'col-form-label col-lg-4 col-md-3 col-sm-12')); ?>
				<div class="col-lg-8 col-md-9 col-sm-12">
					<img src="<?php echo Utility::getTimThumb($images, 320, 150, 3);?>" alt="">
				</div>
			</div>
		<?php }?>
		
		<div class="form-group row">
			<?php echo $form->labelEx($model,'meta_image', array('class'=>'col-form-label col-lg-4 col-md-3 col-sm-12')); ?>
			<div class="col-lg-8 col-md-9 col-sm-12">
				<?php echo $form->fileField($model,'meta_image',array('maxlength'=>64, 'class'=>'form-control')); ?>
				<?php echo $form->error($model,'meta_image'); ?>
			</div>
		</div>
		
		<div class="form-group row">
			<?php echo $form->labelEx($model,'meta_image_alt', array('class'=>'col-form-label col-lg-4 col-md-3 col-sm-12')); ?>
			<div class="col-lg-8 col-md-9 col-sm-12">
				<?php echo $form->textField($model,'meta_image_alt',array('class'=>'form-control')); ?>
				<?php echo $form->error($model,'meta_image_alt'); ?>
				<span class="small-px"><?php echo Yii::t('phrase', 'A text description of the image conveying the essential nature of an image to users who are visually impaired');?></span>
			</div>
		</div>

		<div class="form-group row">
			<?php echo $form->labelEx($model,'office_on', array('class'=>'col-form-label col-lg-4 col-md-3 col-sm-12')); ?>
			<div class="col-lg-8 col-md-9 col-sm-12">
				<?php echo $form->radioButtonList($model,'office_on', array(
					1 => Yii::t('phrase', 'Enabled'),
					0 => Yii::t('phrase', 'Disabled'),
				), array('class'=>'form-control')); ?>
				<?php echo $form->error($model,'office_on'); ?><commit_msg>commit<commit_after><?php
/**
 * OmmuMeta (ommu-meta)
 * @var $this MetaController
 * @var $model OmmuMeta
 * @var $form CActiveForm
 * version: 1.3.0
 *
 * @author <NAME> <<EMAIL>>
 * @copyright Copyright (c) 2012 Ommu Platform (opensource.ommu.co)
 * @link https://github.com/ommu/ommu-core
 * @contact (+62)856-299-4114
 *
 */

	$this->breadcrumbs=array(
		'Ommu Metas'=>array('manage'),
		$model->id=>array('view','id'=>$model->id),
		'Update',
	);
?>

<div class="form">

	<?php $form=$this->beginWidget('application.libraries.core.components.system.OActiveForm', array(
		'id'=>'ommu-meta-form',
		'enableAjaxValidation'=>true,
		'htmlOptions' => array('enctype' => 'multipart/form-data')
	)); ?>

	<?php //begin.Messages ?>
	<div id="ajax-message">
	<?php
		echo $form->errorSummary($model);
		if(Yii::app()->user->hasFlash('error'))
			echo Utility::flashError(Yii::app()->user->getFlash('error'));
		if(Yii::app()->user->hasFlash('success'))
			echo Utility::flashSuccess(Yii::app()->user->getFlash('success'));
	?>
	</div>
	<?php //begin.Messages ?>

	<fieldset>

		<?php if($model->meta_image != '') {
			$model->old_meta_image = $model->meta_image;
			echo $form->hiddenField($model,'old_meta_image');
			$images = Yii::app()->request->baseUrl.'/public/'.$model->old_meta_image;
			?>
			<div class="form-group row">
				<?php echo $form->labelEx($model,'old_meta_image', array('class'=>'col-form-label col-lg-4 col-md-3 col-sm-12')); ?>
				<div class="col-lg-8 col-md-9 col-sm-12">
					<img src="<?php echo Utility::getTimThumb($images, 320, 150, 3);?>" alt="">
				</div>
			</div>
		<?php }?>
		
		<div class="form-group row">
			<?php echo $form->labelEx($model,'meta_image', array('class'=>'col-form-label col-lg-4 col-md-3 col-sm-12')); ?>
			<div class="col-lg-8 col-md-9 col-sm-12">
				<?php echo $form->fileField($model,'meta_image',array('maxlength'=>64, 'class'=>'form-control')); ?>
				<?php echo $form->error($model,'meta_image'); ?>
				<?php echo $form->error($model,'meta_image'); ?>
			</div>
		</div>
		
		<div class="form-group row">
			<?php echo $form->labelEx($model,'meta_image_alt', array('class'=>'col-form-label col-lg-4 col-md-3 col-sm-12')); ?>
			<div class="col-lg-8 col-md-9 col-sm-12">
				<?php echo $form->textField($model,'meta_image_alt',array('class'=>'form-control')); ?>
				<?php echo $form->error($model,'meta_image_alt'); ?>
				<span class="small-px"><?php echo Yii::t('phrase', 'A text description of the image conveying the essential nature of an image to users who are visually impaired');?></span>
			</div>
		</div>

		<div class="form-group row">
			<?php echo $form->labelEx($model,'office_on', array('class'=>'col-form-label col-lg-4 col-md-3 col-sm-12')); ?>
			<div class="col-lg-8 col-md-9 col-sm-12">
				<?php echo $form->radioButtonList($model,'office_on', array(
					1 => Yii::t('phrase', 'Enabled'),
					0 => Yii::t('phrase', 'Disabled'),
				), array('class'=>'form-control')); ?>
				<?php echo $form->error($model,'office_on'); ?>
{'fraction_non_alphanumeric': 0.24004017408771341, 'fraction_numerical': 0.020756611985269503, 'mean_word_length': 4.461608775137112, 'pattern_counts': {'":': 0, '<': 90, '<?xml version=': 0, '>': 185, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6057693', 'n_tokens_mistral': 2431, 'n_tokens_neox': 2155, 'n_words': 381}