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:
parent
2d2ed2f31b
commit
7bc0e19671
@ -22,14 +22,6 @@ class EquipoController extends Controller {
|
|||||||
'actions' => array('index'),
|
'actions' => array('index'),
|
||||||
'users' => array('@'),
|
'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
|
array('deny', // deny all users
|
||||||
'users' => array('*'),
|
'users' => array('*'),
|
||||||
),
|
),
|
||||||
|
|||||||
@ -8,7 +8,6 @@ class FormularioInvitarAgente extends CFormModel {
|
|||||||
|
|
||||||
public $nombre;
|
public $nombre;
|
||||||
public $email;
|
public $email;
|
||||||
public $mensaje;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Declares the validation rules.
|
* Declares the validation rules.
|
||||||
@ -18,7 +17,7 @@ class FormularioInvitarAgente extends CFormModel {
|
|||||||
public function rules() {
|
public function rules() {
|
||||||
return array(
|
return array(
|
||||||
array('nombre, email', 'required'),
|
array('nombre, email', 'required'),
|
||||||
array('nombre, email, mensaje', 'safe'),
|
array('nombre, email', 'safe'),
|
||||||
array('email', 'email'),
|
array('email', 'email'),
|
||||||
array('email', 'comprobarEmailRepetido', 'message' => Yii::t('profind', 'Ya existe un agente con el mismo email')),
|
array('email', 'comprobarEmailRepetido', 'message' => Yii::t('profind', 'Ya existe un agente con el mismo email')),
|
||||||
);
|
);
|
||||||
|
|||||||
@ -38,10 +38,6 @@
|
|||||||
<?php echo $form->textField($invitacion, 'email', array('class' => 'span12')); ?>
|
<?php echo $form->textField($invitacion, 'email', array('class' => 'span12')); ?>
|
||||||
<?php echo $form->error($invitacion,'email'); ?>
|
<?php echo $form->error($invitacion,'email'); ?>
|
||||||
</div>
|
</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">
|
<div class="clearfix">
|
||||||
<button type="submit" class="btn btn-primary pull-right"><?php echo Yii::t('profind', 'Enviar invitación'); ?></button>
|
<button type="submit" class="btn btn-primary pull-right"><?php echo Yii::t('profind', 'Enviar invitación'); ?></button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user