From 541684d49f887ad14bc3808605161ccd04ad829a Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 11 Apr 2020 15:41:26 +0200 Subject: [PATCH] responsive --- lam/style/500_layout.css | 10 +++- lam/templates/config/index.php | 85 ++++++++++++---------------------- 2 files changed, 38 insertions(+), 57 deletions(-) diff --git a/lam/style/500_layout.css b/lam/style/500_layout.css index 114a243d..c66c5dcd 100644 --- a/lam/style/500_layout.css +++ b/lam/style/500_layout.css @@ -86,6 +86,10 @@ a img { border: 0px; } +a.img-padding1 img { + padding: 1rem; +} + a.classicBold { color: blue; text-decoration: none; @@ -457,6 +461,10 @@ table.collapse { display: none; } +.display-as-block { + display: block; +} + .nowrap { white-space: nowrap; } @@ -484,7 +492,7 @@ div.smallScroll { } .fullwidth { - width: 100%; + width: 100%!important; } .halfwidth { diff --git a/lam/templates/config/index.php b/lam/templates/config/index.php index 1aa9544f..939a72e2 100644 --- a/lam/templates/config/index.php +++ b/lam/templates/config/index.php @@ -42,6 +42,9 @@ setlanguage(); echo $_SESSION['header']; printHeaderContents(_("Configuration overview"), '../..'); +$tabindex = 0; +$content = new htmlResponsiveRow(); + ?> @@ -59,69 +62,39 @@ printHeaderContents(_("Configuration overview"), '../..');

- - \n"; - } - else { - echo "\n"; - } - ?> - - - - - - - - - \n"; - echo "\n"; - echo "\n"; - echo "\n"; - } - ?> -
 
 
- - general settings - - - - - -
- - server settings - - - - - -
\n"; - echo "\n"; - echo "\"self\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo _("Edit self service"); - echo "\n"; - echo "
-


+ + setCSSClasses(array('maxrow fullwidth roundedShadowBox spacing5')); + $mainCfgLink = new htmlLink(_("Edit general settings"), 'mainlogin.php', '../../graphics/bigTools.png'); + $mainCfgLink->setCSSClasses(array('img-padding1 display-as-block')); + $topContent->add($mainCfgLink, 12); + $cfgLink = new htmlLink(_("Edit server profiles"), 'conflogin.php', '../../graphics/profiles.png'); + $cfgLink->setCSSClasses(array('img-padding1 display-as-block')); + $topContent->add($cfgLink, 12); + if (isLAMProVersion()) { + $selfServiceLink = new htmlLink(_("Edit self service"), '../selfService/adminLogin.php', '../../graphics/bigPeople.png'); + $selfServiceLink->setCSSClasses(array('img-padding1 display-as-block')); + $topContent->add($selfServiceLink, 12); + } + $content->add($topContent, 12); + $content->addVerticalSpacer('4rem'); + ?> printLicenseInfo(); - echo "

"; + $content->add($printer->getLicenseInfo(), 12); + $content->addVerticalSpacer('2rem'); } - ?> -

 back 

-



+ $content->add(new htmlLink(_("Back to login"), '../login.php', '../../graphics/undo.png'), 12); + $content->addVerticalSpacer('2rem'); + + parseHtml('none', $content, array(), true, $tabindex, 'none'); + + ?>