diff --git a/lam/templates/config/mainlogin.php b/lam/templates/config/mainlogin.php index 343bb1f4..771d8958 100644 --- a/lam/templates/config/mainlogin.php +++ b/lam/templates/config/mainlogin.php @@ -70,11 +70,14 @@ echo $_SESSION['header']; ?> + <?php echo _("Login"); ?> + + - + \n"; @@ -118,6 +121,8 @@ echo $_SESSION['header']; echo "\n"; } ?> + +
@@ -147,35 +152,44 @@ echo $_SESSION['header'];
addElement($caption, true); - $table->addElement($spacer, true); + $group = new htmlGroup(); + $row = new htmlResponsiveRow(); + $row->add(new htmlOutputText(_("Please enter the master password to change the general preferences:")), 12); + $group->addElement($row); // print message if login was incorrect or no config profiles are present - if (isset($message)) { // $message is set by confmain.php (requires conflogin.php then) - $messageField = new htmlStatusMessage('ERROR', $message); - $table->addElement($messageField, true); - $table->addElement($spacer, true); + if (isset($message)) { + $messageField = new htmlStatusMessage('ERROR', $message); + $row = new htmlResponsiveRow(); + $row->add($messageField, 12); + $group->addElement($spacer); + $group->addElement($row); } - // password field - $gap = new htmlSpacer('1px', null); + $group->addElement($spacer); + // password input + $label = new htmlOutputText(_('Master password')); $passwordGroup = new htmlGroup(); - $passwordGroup->alignment = htmlElement::ALIGN_CENTER; - $passwordGroup->addElement(new htmlOutputText(_('Master password'))); - $passwordGroup->addElement($gap); $passwordField = new htmlInputField('passwd'); $passwordField->setFieldSize(15); $passwordField->setIsPassword(true); $passwordGroup->addElement($passwordField); - $passwordGroup->addElement($gap); - $passwordGroup->addElement(new htmlButton('submit', _("Ok"))); - $passwordGroup->addElement($gap); $passwordGroup->addElement(new htmlHelpLink('236')); - $table->addElement($passwordGroup, true); - - + $passwordDiv = new htmlDiv(null, $passwordGroup); + $passwordDiv->setCSSClasses(array('nowrap')); + $row = new htmlResponsiveRow($label, $passwordDiv); + $group->addElement($row); + // button + $group->addElement($spacer); + $okButton = new htmlButton('submit', _("Ok")); + $row = new htmlResponsiveRow(); + $row->add($okButton, 12); + $row->setCSSClasses(array('')); + $group->addElement($row); + + $div = new htmlDiv(null, $group); + $div->setCSSClasses(array('centeredTable')); + $tabindex = 1; - parseHtml(null, $table, array(), false, $tabindex, 'user'); + parseHtml(null, $div, array(), false, $tabindex, 'user'); ?>