<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\grid\GridView;
use yii\data\ActiveDataProvider;
use yii\widgets\Pjax;
/* @var $this yii\web\View */
/* @var $model app\modules\employee\models\EmpDesignation */
/* @var $form yii\widgets\ActiveForm */
?>
	<?php
	if($this->context->action->id == 'update')
		$action = ['update', 'id'=>$_REQUEST['id']];
	else
		$action = ['create'];
    ?>
<div class="col-xs-12 col-lg-12">
  <div class="<?php echo $model->isNewRecord ? 'box-success' : 'box-info'; ?> box view-item col-xs-12 col-lg-12">
<div class="emp-designation-form">

   <?php $form = ActiveForm::begin([
			'id' => 'emp-designation-form',
			'action' => $action,
			'enableAjaxValidation' => true,
			'fieldConfig' => [
			    'template' => "{input}{error}",
			],
		]); ?>
<div class="col-lg-12 col-xs-12 no-padding">
	<div class = "col-sm-6 col-xs-12 col-lg-6">
	    <?= $form->field($model, 'emp_designation_name',['inputOptions'=>[ 'class'=>'form-control','placeholder' => $model->getAttributeLabel('emp_designation_name')] ])->textInput(['maxlength' => 50]) ?>
	</div>
	<div class = "col-sm-6 col-xs-12 col-lg-6">
	    <?= $form->field($model, 'emp_designation_alias',['inputOptions'=>[ 'class'=>'form-control','placeholder' => $model->getAttributeLabel('emp_designation_alias')] ])->textInput(['maxlength' => 10]) ?>
	</div>
</div>
     <div class="form-group col-xs-12 col-sm-6 col-lg-4 no-padding edusecArLangCss">
	<div class="col-xs-6">
        <?= Html::submitButton($model->isNewRecord ? Yii::t('emp', 'Create') : Yii::t('emp', 'Update'), ['class' => $model->isNewRecord  ? 'btn btn-block btn-success' : 'btn btn-block btn-info']) ?>
	</div>
	<div class="col-xs-6">
	<?= Html::resetButton(Yii::t('emp', 'Reset'), ['class' => 'btn btn-default btn-block']) ?>
	</div>
     </div>

    <?php ActiveForm::end(); ?>
    </div>
  </div>
</div>
