<?php

$groups=array();
foreach(Groups::model()->findAll() as $group){
	$groups[$group->id]=$group->name;
}
$roles=array();
foreach(Roles::model()->findAll() as $role){
	$roles[$role->id]=$role->name;
}
?>
<div class="page-title icon users"><h2><?php echo Yii::t('users','Create User'); ?></h2></div>
<?php echo $this->renderPartial(
    '_form', array(
        'update' => false,
        'model'=>$user,
        'roles'=>$roles,
        'groups'=>$groups,
        'selectedGroups'=>array(),
        'selectedRoles'=>array(),
        'flag'=>true)); ?>
