diff --git a/application/forms/Authentication/LoginForm.php b/application/forms/Authentication/LoginForm.php index 9f2fc8619..593867b7e 100644 --- a/application/forms/Authentication/LoginForm.php +++ b/application/forms/Authentication/LoginForm.php @@ -50,7 +50,7 @@ class LoginForm extends Form 'autocapitalize' => 'off', 'autocomplete' => 'username', 'class' => false === isset($formData['username']) ? 'autofocus' : '', - 'label' => $this->translate('Username'), + 'placeholder' => $this->translate('Username'), 'required' => true ) ); @@ -60,7 +60,7 @@ class LoginForm extends Form array( 'required' => true, 'autocomplete' => 'current-password', - 'label' => $this->translate('Password'), + 'placeholder' => $this->translate('Password'), 'class' => isset($formData['username']) ? 'autofocus' : '' ) ); diff --git a/application/layouts/scripts/body.phtml b/application/layouts/scripts/body.phtml index 005309aef..87b570bfe 100644 --- a/application/layouts/scripts/body.phtml +++ b/application/layouts/scripts/body.phtml @@ -3,6 +3,8 @@ use Icinga\Web\Url; use Icinga\Web\Notification; use Icinga\Authentication\Auth; +use ipl\Html\HtmlString; +use ipl\Web\Widget\Icon; $moduleName = $this->layout()->moduleName; if ($moduleName !== 'default') { @@ -70,7 +72,25 @@ if ($this->layout()->inlineLayout) { $notifications = Notification::getInstance(); if ($notifications->hasMessages()) { foreach ($notifications->popMessages() as $m) { - echo '
= sprintf( - $this->translate( - 'It appears that you did not configure Icinga Web 2 yet so it\'s not possible to log in without any defined ' - . 'authentication method. Please define a authentication method by following the instructions in the' - . ' %1$sdocumentation%3$s or by using our %2$sweb-based setup-wizard%3$s.' - ), - '', // TODO: More exact documentation link - '', - '' - ) ?>
- - = $this->form ?> - -= sprintf( + $this->translate( + 'It appears that you did not configure Icinga Web 2 yet so it\'s not possible to log in without any defined ' + . 'authentication method. Please define a authentication method by following the instructions in the' + . ' %1$sdocumentation%3$s or by using our %2$sweb-based setup-wizard%3$s.' + ), + '', // TODO: More exact documentation link + '', + '' + ) ?>
+ + = $this->form ?> + -