This commit is contained in:
Antonio de la Rosa 2016-03-15 20:10:29 +01:00
parent a5af7b311f
commit 1d6d07ca31
4 changed files with 23 additions and 6 deletions

View file

@ -4,7 +4,7 @@
*
* @author Antonio de la Rosa <webmaster@web-t-sys.com>
* @file i18n_fields.php
* @package ExtraFields\I18nFields
* @package CoreFields\I18nFields
*
*
*/

View file

@ -20,6 +20,7 @@ class PasswordField extends CharField {
{
$this->min_length=5;
$this->size=$size;
$this->protected=true;
$this->form='PhangoApp\PhaModels\Forms\PasswordForm';
}
@ -109,4 +110,4 @@ class PasswordField extends CharField {
}
?>
?>

View file

@ -23,10 +23,10 @@ class PasswordForm extends BaseForm{
public function form()
{
return '<input type="password" class="'.$this->css.'" name="'.$this->name.'" value="">';
return '<input type="password" class="'.$this->css.'" name="'.$this->name.'" id="'.$this->name.'_field_form" value="">';
}
}
?>
?>

View file

@ -303,7 +303,7 @@ class ModelForm {
static public function check_form($arr_form, $post)
{
$error=0;
$num_form=0;
@ -460,7 +460,23 @@ class ModelForm {
}
}
static public function pass_errors_to_array($model)
{
$error=[];
foreach($model->components as $component)
{
$error[$component->name_component]=$component->std_error;
}
return $error;
}
}
?>
?>