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:
David Arranz 2012-10-04 15:57:42 +00:00
parent d3df8eca86
commit 51a505b4c6
2 changed files with 5 additions and 2 deletions

View File

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

View 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>