<?php
/* @var $this MemberController */
/* @var $data Member */
/* @var $form CActiveForm */
?>


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

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

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


		<div class="form-group">

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

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

		</div>


		<div class="form-group">

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

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

		</div>


		<div class="form-group">

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

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

		</div>


		<div class="form-group">

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

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

		</div>



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

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

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