Tarea #1125 -> Quitar la máscara en el campo 'teléfono' del usuario
git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_PROFIND_Web/trunk@56 3fe1ab16-cfe0-e34b-8c9f-7d8c168d430d
This commit is contained in:
parent
d3df8eca86
commit
51a505b4c6
@ -67,7 +67,7 @@ class Usuario extends CActiveRecord {
|
||||
// will receive user inputs.
|
||||
return array(
|
||||
array('email, password', 'required'),
|
||||
array('email, nombre, apellidos, password, tipo, titulo, localidad, telefono', 'length', 'max' => 255),
|
||||
array('email, nombre, apellidos, password, tipo, titulo, localidad', 'length', 'max' => 255),
|
||||
|
||||
array('estado', 'length', 'max' => 1),
|
||||
|
||||
@ -76,6 +76,9 @@ class Usuario extends CActiveRecord {
|
||||
|
||||
array('descripcion', 'safe'),
|
||||
|
||||
array('telefono', 'length', 'max' => 13),
|
||||
array('telefono', 'match', 'pattern'=>'/^([+]?[0-9 ]+)$/'),
|
||||
|
||||
array('tipo', 'default', 'value' => self::TIPO_USUARIO_COORDINADOR),
|
||||
|
||||
array('ficheroFotografia', 'file',
|
||||
|
||||
@ -92,7 +92,7 @@ Yii::app()->clientScript->registerScript(
|
||||
<div class="control-group formSep">
|
||||
<?php echo $form->labelEx($model, 'telefono', array('class' => 'control-label')); ?>
|
||||
<div class="controls">
|
||||
<?php echo $form->textField($model, 'telefono', array('class' => 'input-xlarge', 'data-mask' => '99-999-99-99')); ?>
|
||||
<?php echo $form->textField($model, 'telefono', array('class' => 'input-xlarge')); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user