<?php
/* @var $this RolePrivilageController */
/* @var $model RolePrivilage */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'role-privilage-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'sys_m_role_id'); ?>
		<?php echo $form->dropDownList($model,'sys_m_role_id',CHtml::listData(Role::model()->findAll(), 'sys_m_role_id', 'name')); ?>
		<?php echo $form->error($model,'sys_m_role_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'sys_m_privilage_id'); ?>
		<?php echo $form->dropDownList($model,'sys_m_privilage_id',CHtml::listData(Privilage::model()->findAll(), 'sys_m_privilage_id', 'name')); ?>
		<?php echo $form->error($model,'sys_m_privilage_id'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

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

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