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


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

		<?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'),
		)); ?>


		<div class="form-group">

			<div class="col-sm-4 control-label">
			</div>

			<div class="col-sm-8">
				<?php echo $form->errorSummary($model, null, null, array('class' => 'alert alert-warning')); ?>
			</div>

		</div>


		<div class="form-group">

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

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

		</div>


		<div class="form-group">

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

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

		</div>


		<div class="form-group">

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

			<div class="col-sm-8">
				<?php echo $form->textField($model, 'phone', array('class' => 'form-control')); ?>
				<?php echo $form->error($model, 'phone'); ?>
			</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, 'image_identity'); ?>
			</div>
			<div class="col-sm-8">
				<?php echo $form->fileField($model, 'image_identity', array('class' => 'btn btn-success btn-lg btn-block')); ?>
				<?php echo $form->error($model, 'image_identity'); ?>
			</div>
		</div>



		<div class="form-group">
			<div class="col-sm-4 control-label">
				<?php echo $form->labelEx($model, 'image_foto'); ?>
			</div>
			<div class="col-sm-8">
				<?php echo $form->fileField($model, 'image_foto', array('class' => 'btn btn-success btn-lg btn-block')); ?>
				<?php echo $form->error($model, 'image_foto'); ?>
			</div>
		</div>


		<div class="form-group">
			<div class="col-sm-4 control-label">
				<?php echo $form->labelEx($model, 'image_sosmed'); ?>
			</div>
			<div class="col-sm-8">
				<?php echo $form->fileField($model, 'image_sosmed', array('class' => 'btn btn-success btn-lg btn-block')); ?>
				<?php echo $form->error($model, 'image_sosmed'); ?>
			</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 -->