From 64f88587d31846bf0d2fef6044b4c21b215d3a7f Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 10 Oct 2010 17:44:23 +0000 Subject: [PATCH] new button layout --- lam/lib/types/dhcp.inc | 31 +++++++++++++++++++++++++------ lam/style/600_type_dhcp.css | 2 +- 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/lam/lib/types/dhcp.inc b/lam/lib/types/dhcp.inc index 5142e777..c8d6808b 100644 --- a/lam/lib/types/dhcp.inc +++ b/lam/lib/types/dhcp.inc @@ -196,15 +196,34 @@ class lamDHCPList extends lamList { echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; - // add/delete/PDF buttons - echo ("type . "\" type=\"submit\" name=\"new\" value=\"" . $this->labels['newEntry'] . "\">\n"); - if (!$createOnly) { - echo ("type . "\" type=\"submit\" name=\"del\" value=\"" . $this->labels['deleteEntry'] . "\">\n"); + if (checkIfWriteAccessIsAllowed()) { + // add/delete buttons + echo ("\n"); + if (!$createOnly) { + echo ("\n"); + } + echo "  "; + echo ("\n"); + echo "   "; + ?> + + type . "\" type=\"submit\" name=\"dhcpDefaults\" value=\"" . $this->labels['dhcpDefaults'] . "\">\n"); echo "\n"; - $this->listShowOUSelection(); + $this->listShowOUSelection(); + echo ""; + echo ' '; + echo '' . _('Change settings') . ''; + echo ''; echo "
\n"; diff --git a/lam/style/600_type_dhcp.css b/lam/style/600_type_dhcp.css index 96b204a2..45f94197 100644 --- a/lam/style/600_type_dhcp.css +++ b/lam/style/600_type_dhcp.css @@ -42,7 +42,7 @@ table.dhcpnav input { /* color for active page digit */ td.dhcpnav-activepage { - color:#CCFF33; + color: red; } /* table preferences */