Commits

Christian Salazar  committed 4cbbd50 Merge

Merged in anacona16/cruge (pull request #16)

Permite establecer layout para la plantilla de Reset Password y con la intensión de modificar la apariencia del CGridView de Cruge desde jQuery, agregar una clase al botón eliminar.

  • Participants
  • Parent commits 4646e5b, 3fd32ab

Comments (0)

Files changed (3)

File CrugeModule.php

 	public $activateAccountLayout = '//layouts/column1';
 	public $registrationLayout = '//layouts/column1';
 	public $loginLayout = '//layouts/column1';
+	public $resetPasswordLayout = '//layouts/column1';
 
 	// sirve para que la controladora UiController pueda que nombre pasar a $_POST['??']
 	// para actualizar los atributos de una clase.  Si se llegase a cambiar una clase

File controllers/UiController.php

     public function actionPwdRec()
     {
 
-        $this->layout = CrugeUtil::config()->loginLayout;
+        $this->layout = CrugeUtil::config()->resetPasswordLayout;
 
         $model = Yii::app()->user->um->getNewCrugeLogon('pwdrec');
 

File views/ui/usermanagementadmin.php

 			'eliminar'=>array(
 				'label'=>CrugeTranslator::t('admin', 'Delete User'),
 				'imageUrl'=>Yii::app()->user->ui->getResource("delete.png"),
-				'url'=>'array("usermanagementdelete","id"=>$data->getPrimaryKey())'
+				'url'=>'array("usermanagementdelete","id"=>$data->getPrimaryKey())',
+				'options' => array('class' => 'delete')
 			),
 		),	
 );