Commits

christiansalazar  committed d3590a1

Changing Eyui by EYui, case sensitive

  • Participants
  • Parent commits d3ffe94

Comments (0)

Files changed (2)

File protected/controllers/ExampleController.php

 			to work togheter with EYuiForm.
 		*/
 		$this->render('eyuiform'
-			,array('user'=>$user,'validationModel'=>EyuiFormDb::newModel($user)));
+			,array('user'=>$user,'validationModel'=>EYuiFormDb::newModel($user)));
 	}
 	
 	public function actionEYuiAjaxAction() 

File protected/views/example/eyuiform.php

 		//'theme'=>'redmond',
 		'jQueryUiEnabled'=>true,
 		'jQueryControl'=>'tabs', // tabs or accordion
+		'jQueryGroupControl'=>'accordion', // use 'accordion' or leave blank
 		
 		// fielddes are field definitions, used later in each form field when needed.
 		'fielddefs'=>array(
 								'field'=>'f2','label'=>'First Name'	,
 								'required'=>true,'descr'=>'Your First Name','default'=>''),
 							'lastname'=>array(
-								'field'=>'f2','label'=>'First Name'	,
+								'field'=>'f2','label'=>'Last Name'	,
 								'required'=>true,'descr'=>'Your Last Name','default'=>''),
+							'separator1'=>'<hr/>',
+							'address'=>array(
+								'field'=>'f3','label'=>'Address'	,
+								'required'=>true,'descr'=>'Please write your current address','default'=>''),
+							'address2'=>array(
+								'field'=>'f3','label'=>'Alternate Address'	,
+								'required'=>true,'descr'=>'Have you another address ?','default'=>''),
 						),
 					),
 					'group2'=>array(
 							'animals2'=>array(
 								'field'=>'f5','label'=>'Do you like cats ?',
 								'required'=>false,'descr'=>'please specify'),
+							'separator1'=>'<hr/>',
 							'colors'=>array(
 								'field'=>'f4','label'=>'What is your preferred color ?',
 								'required'=>false,'descr'=>'please specify'),