Commits

christiansalazar committed 822892b Merge

Merge e:/code/yiiframeworkenespanol/cruge/protected/modules/cruge

  • Participants
  • Parent commits 546c789, 3943f2b

Comments (0)

Files changed (3)

File CrugeModule.php

 	// el estilo del boton que la UI usara:
 	//	normal, jui, bootstrap
 	//  por defecto: normal
-	public $buttonStyle = 'bootstrap';
+	public $buttonStyle = 'normal';
 	public $buttonConf = 'small';// large, small o mini
 				
 	// ponerla a true para que se creen de forma automatica las operaciones en el sistema de Rbac

File components/CrugeUi.php

 		$ar = array();
 		$_type = 'submit'; // siempre son submit
 		$_icon = 'remove white';
-		if($name != null){
-			$ar = array('name'=>$name);
-		}else{
+		if($name == null) {
 			$_icon = 'ok white';
-			$ar = array('name'=>'submit');
+			$name = 'submit';
 		}
+		$ar = array('name'=>$name);
 		
 		$_texto = ucwords(CrugeTranslator::t($texto));
 		
 			return;
 		}
 		
-		CHtml::submitButton($_texto,$ar);
+		echo CHtml::submitButton($_texto,$ar);
 	}
 	
 }

File views/ui/usermanagementadmin.php

 			),
 		),	
 );
-$this->widget(
-	Yii::app()->user->ui->CGridViewClass, 
+$this->widget(Yii::app()->user->ui->CGridViewClass, 
 	array(
-	'type'=>'striped bordered condensed',
     'dataProvider'=>$dataProvider,
     'columns'=>$cols,
 	'filter'=>$model,