mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 09:14:08 +02:00
LoginFormn: Use placeholder insted of labels
This commit is contained in:
parent
1119e001d4
commit
9a8bf67072
@ -50,7 +50,7 @@ class LoginForm extends Form
|
|||||||
'autocapitalize' => 'off',
|
'autocapitalize' => 'off',
|
||||||
'autocomplete' => 'username',
|
'autocomplete' => 'username',
|
||||||
'class' => false === isset($formData['username']) ? 'autofocus' : '',
|
'class' => false === isset($formData['username']) ? 'autofocus' : '',
|
||||||
'label' => $this->translate('Username'),
|
'placeholder' => $this->translate('Username'),
|
||||||
'required' => true
|
'required' => true
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -60,7 +60,7 @@ class LoginForm extends Form
|
|||||||
array(
|
array(
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'autocomplete' => 'current-password',
|
'autocomplete' => 'current-password',
|
||||||
'label' => $this->translate('Password'),
|
'placeholder' => $this->translate('Password'),
|
||||||
'class' => isset($formData['username']) ? 'autofocus' : ''
|
'class' => isset($formData['username']) ? 'autofocus' : ''
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user