<?php
/* @var $this PaperController */
/* @var $data Paper */
/* @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'=>'paper-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,'researchers_id'); ?>
			</div>

			<div class="col-sm-8">
				<?php
				echo $form->dropDownList($data, "researchers_id",
					CHtml::listData(Users::model()->findall(array('condition'=>'level=3')),
						'id_user', 'fullname'
					),
					array("empty"=>"-- Pilih TIM --", 'class'=>'select2 form-control')
				);
				?>
				<?php echo $form->error($data,'researchers_id'); ?>
			</div>

		</div>


		<div class="form-group">

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

			<div class="col-sm-8">
				<?php echo $form->textField($data,'paper_name',array('class'=>'form-control')); ?>
				<?php echo $form->error($data,'paper_name'); ?>
			</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 -->