mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Fixes $frm->password() styling when used with bootstrap on the frontend.
This commit is contained in:
@@ -1037,7 +1037,14 @@ class e_form
|
|||||||
//never allow id in format name-value for text fields
|
//never allow id in format name-value for text fields
|
||||||
$text = "<input type='password' name='{$name}' value='{$value}' maxlength='{$maxlength}'".$this->get_attributes($options, $name)." />";
|
$text = "<input type='password' name='{$name}' value='{$value}' maxlength='{$maxlength}'".$this->get_attributes($options, $name)." />";
|
||||||
|
|
||||||
return "<span class='form-inline'>".$text.$gen."</span>".vartrue($addon);
|
if(empty($gen) && empty($addon))
|
||||||
|
{
|
||||||
|
return $text;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return "<span class='form-inline'>".$text.$gen."</span>".vartrue($addon);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user