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
This commit is contained in:
roberto 2012-10-01 16:40:41 +00:00
parent 2d2ed2f31b
commit 7bc0e19671
3 changed files with 1 additions and 14 deletions

View File

@ -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('*'),
),

View File

@ -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')),
);

View File

@ -38,10 +38,6 @@
<?php echo $form->textField($invitacion, 'email', array('class' => 'span12')); ?>
<?php echo $form->error($invitacion,'email'); ?>
</div>
<div class="formSep <?php echo ($invitacion->getError('mensaje')) ? 'f_error' : ''; ?>">
<?php echo $form->labelEx($invitacion, 'mensaje', array('class' => 'control-label')); ?>
<?php echo $form->textArea($invitacion, 'mensaje', array('class' => 'span12 auto_expand')); ?>
</div>
<div class="clearfix">
<button type="submit" class="btn btn-primary pull-right"><?php echo Yii::t('profind', 'Enviar invitación'); ?></button>
</div>