pass array of params to formField instead of string

This commit is contained in:
Uwe Steinmann 2018-05-29 18:20:17 +02:00
parent 1e40adfd30
commit 7c4538193a

View File

@ -123,11 +123,26 @@ $(document).ready( function() {
}
$this->formField(
getMLText("user_login"),
'<input type="text" id="login" name="login" placeholder="login" autocomplete="off" required>'
array(
'element'=>'input',
'type'=>'text',
'id'=>'login',
'name'=>'login',
'placeholder'=>'login',
'autocomplete'=>'off',
'required'=>true
)
);
$this->formField(
getMLText("password"),
'<input type="Password" id="pwd" name="pwd" autocomplete="off" required>'
array(
'element'=>'input',
'type'=>'password',
'id'=>'pwd',
'name'=>'pwd',
'autocomplete'=>'off',
'required'=>true
)
);
if($enableLanguageSelector) {
$html = "<select id=\"languageselector\" name=\"lang\">";