Fixes
This commit is contained in:
parent
a5af7b311f
commit
1d6d07ca31
4 changed files with 23 additions and 6 deletions
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @author Antonio de la Rosa <webmaster@web-t-sys.com>
|
||||
* @file i18n_fields.php
|
||||
* @package ExtraFields\I18nFields
|
||||
* @package CoreFields\I18nFields
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ class PasswordField extends CharField {
|
|||
{
|
||||
$this->min_length=5;
|
||||
$this->size=$size;
|
||||
$this->protected=true;
|
||||
$this->form='PhangoApp\PhaModels\Forms\PasswordForm';
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ 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="">';
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -461,6 +461,22 @@ 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;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue