mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Don't show a big red "alarm"-looking message on every visit to the DHCP/DHCPv6 Server pages. Confuses people in that context, and it's not something that justifies highlighting in such a fashion. Move the message to show when you have no eligible interfaces.
This commit is contained in:
parent
f2b4a29b37
commit
4e82cebf52
@ -107,10 +107,7 @@ if($config['installedpackages']['olsrd']) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!$_GET['if'])
|
||||
$savemsg = gettext("The DHCP Server can only be enabled on interfaces configured with static IP addresses") . ".<br/><br/>" . gettext("Only interfaces configured with a static IP will be shown") . ".";
|
||||
}
|
||||
|
||||
$iflist = get_configured_interface_with_descr();
|
||||
|
||||
@ -758,6 +755,7 @@ include("head.inc");
|
||||
$tabscounter++;
|
||||
}
|
||||
if ($tabscounter == 0) {
|
||||
echo "<b>" . gettext("The DHCP Server can only be enabled on interfaces configured with a static IPv4 address. This system has none.") . "<br/><br/>";
|
||||
echo "</td></tr></table></form>";
|
||||
include("fend.inc");
|
||||
echo "</body>";
|
||||
|
||||
@ -72,10 +72,6 @@ if($config['installedpackages']['olsrd']) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!$_GET['if'])
|
||||
$savemsg = gettext("The DHCPv6 Server can only be enabled on interfaces configured with static IP addresses") .
|
||||
gettext("Only interfaces configured with a static IP will be shown") . ".";
|
||||
|
||||
$iflist = get_configured_interface_with_descr();
|
||||
$iflist = array_merge($iflist, get_configured_pppoe_server_interfaces());
|
||||
|
||||
@ -521,6 +517,7 @@ include("head.inc");
|
||||
}
|
||||
}
|
||||
if ($tabscounter == 0) {
|
||||
echo "<b>" . gettext("The DHCPv6 Server can only be enabled on interfaces configured with a static IPv6 address. This system has none.") . "<br/><br/>";
|
||||
echo "</td></tr></table></form>";
|
||||
include("fend.inc");
|
||||
echo "</body>";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user