<?php
/* @var $this DepartmentController */
/* @var $model Department */
/* @var $form CActiveForm */
?>


<div class="form-normal form-horizontal clearfix">
	<div class="col-lg-9 col-md-10">

		<?php $form=$this->beginWidget('CActiveForm', array(
			'id'=>'department-form',
			'enableAjaxValidation'=>false,
			'enableClientValidation' => true,
			'clientOptions' => array(
				'validateOnSubmit' => true,
				'afterValidate'=>'js:notificationForm',
			),
			'errorMessageCssClass' => 'parsley-errors-list filled',
			'htmlOptions' => array('class' => 'form-horizontal', 'role' => 'form','autocomplete'=>'off')
		)); ?>

		<?php echo $form->errorSummary($model, null, null, array('class' => 'alert alert-warning')); ?>


		<div class="form-group">

			<div class="col-sm-4 control-label">
				<?php echo $form->labelEx($model,'name'); ?>
			</div>

			<div class="col-sm-8">
				<?php echo $form->textField($model,'name',array('class'=>'form-control')); ?>
				<?php echo $form->error($model,'name'); ?>
			</div>

		</div>


		<div class="form-group">

			<div class="col-sm-4 control-label">
				<?php echo $form->labelEx($model,'leader'); ?>
			</div>

			<div class="col-sm-8">
				<?php echo $form->textField($model,'leader',array('class'=>'form-control')); ?>
				<?php echo $form->error($model,'leader'); ?>
			</div>

		</div>


		<div class="form-group">

			<div class="col-sm-4 control-label">
				<?php echo $form->labelEx($model,'address'); ?>
			</div>

			<div class="col-sm-8">
				<?php echo $form->textArea($model,'address',array('class'=>'form-control')); ?>
				<?php echo $form->error($model,'address'); ?>
			</div>

		</div>


		<div class="form-group">

			<div class="col-sm-4 control-label">
				<?php echo $form->labelEx($model,'email'); ?>
			</div>

			<div class="col-sm-8">
				<?php echo $form->textField($model,'email',array('class'=>'form-control')); ?>
				<?php echo $form->error($model,'email'); ?>
			</div>

		</div>

		<div class="form-group">

			<div class="col-sm-4 control-label">
				<?php echo $form->labelEx($model,'website'); ?>
			</div>

			<div class="col-sm-8">
				<?php echo $form->textField($model,'website',array('class'=>'form-control')); ?>
				<?php echo $form->error($model,'website'); ?>
			</div>

		</div>


		<div class="form-group">
			<div class="col-md-12">
				<?php echo CHtml::submitButton($model->isNewRecord ? 'Simpan' : 'Edit', array('class' => 'btn btn-info btn-flat pull-right')); ?>
			</div>
		</div>

		<?php $this->endWidget(); ?>

</div></div><!-- form -->