From 7bc0e19671da9eea4c64fb8abf7c5e55db1d334c Mon Sep 17 00:00:00 2001 From: roberto Date: Mon, 1 Oct 2012 16:40:41 +0000 Subject: [PATCH] Tarea #1116 -> Quitar campo mensaje en el alta de agente git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_PROFIND_Web/trunk@47 3fe1ab16-cfe0-e34b-8c9f-7d8c168d430d --- www/protected/controllers/EquipoController.php | 8 -------- www/protected/models/FormularioInvitarAgente.php | 3 +-- www/themes/profind/views/equipo/_invitacion_form.php | 4 ---- 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/www/protected/controllers/EquipoController.php b/www/protected/controllers/EquipoController.php index 88cc69c..7052d6b 100644 --- a/www/protected/controllers/EquipoController.php +++ b/www/protected/controllers/EquipoController.php @@ -22,14 +22,6 @@ class EquipoController extends Controller { 'actions' => array('index'), 'users' => array('@'), ), - array('allow', // allow admin user to perform 'admin' and 'delete' actions - 'actions' => array('modificar'), - 'users' => array('@'), - ), - array('allow', // allow admin user to perform 'admin' and 'delete' actions - 'actions' => array('index', 'create', 'delete', 'indexEquipo'), - 'expression' => 'Usuario::model()->findByPk(Yii::app()->user->id)->id==2', //admin - ), array('deny', // deny all users 'users' => array('*'), ), diff --git a/www/protected/models/FormularioInvitarAgente.php b/www/protected/models/FormularioInvitarAgente.php index 32c345e..2eb3b65 100644 --- a/www/protected/models/FormularioInvitarAgente.php +++ b/www/protected/models/FormularioInvitarAgente.php @@ -8,7 +8,6 @@ class FormularioInvitarAgente extends CFormModel { public $nombre; public $email; - public $mensaje; /** * Declares the validation rules. @@ -18,7 +17,7 @@ class FormularioInvitarAgente extends CFormModel { public function rules() { return array( array('nombre, email', 'required'), - array('nombre, email, mensaje', 'safe'), + array('nombre, email', 'safe'), array('email', 'email'), array('email', 'comprobarEmailRepetido', 'message' => Yii::t('profind', 'Ya existe un agente con el mismo email')), ); diff --git a/www/themes/profind/views/equipo/_invitacion_form.php b/www/themes/profind/views/equipo/_invitacion_form.php index e3ea767..5831780 100644 --- a/www/themes/profind/views/equipo/_invitacion_form.php +++ b/www/themes/profind/views/equipo/_invitacion_form.php @@ -38,10 +38,6 @@ textField($invitacion, 'email', array('class' => 'span12')); ?> error($invitacion,'email'); ?> -
- labelEx($invitacion, 'mensaje', array('class' => 'control-label')); ?> - textArea($invitacion, 'mensaje', array('class' => 'span12 auto_expand')); ?> -