summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_pppoe_edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/local/www/services_pppoe_edit.php')
-rw-r--r--src/usr/local/www/services_pppoe_edit.php16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/usr/local/www/services_pppoe_edit.php b/src/usr/local/www/services_pppoe_edit.php
index e7f48e1..569598b 100644
--- a/src/usr/local/www/services_pppoe_edit.php
+++ b/src/usr/local/www/services_pppoe_edit.php
@@ -331,7 +331,7 @@ $section->addInput(new Form_Checkbox(
$section->addInput(new Form_Select(
'interface',
- 'Interface',
+ '*Interface',
$pconfig['interface'],
build_interface_list()
@@ -339,21 +339,21 @@ $section->addInput(new Form_Select(
$section->addInput(new Form_Select(
'n_pppoe_units',
- 'Total User Count',
+ '*Total User Count',
$pconfig['n_pppoe_units'],
array_combine(range(1, 255, 1), range(1, 255, 1))
))->setHelp('The number of PPPoE users allowed to connect to this server simultaneously.');
$section->addInput(new Form_Select(
'n_pppoe_maxlogin',
- 'User Max Logins',
+ '*User Max Logins',
$pconfig['n_pppoe_maxlogin'],
array_combine(range(1, 255, 1), range(1, 255, 1))
))->setHelp('The number of times a single user may be logged in at the same time.');
$section->addInput(new Form_IpAddress(
'localip',
- 'Server Address',
+ '*Server Address',
$pconfig['localip']
))->setHelp('Enter the IP address the PPPoE server should give to clients for use as their "gateway".' . '<br />' .
'Typically this is set to an unused IP just outside of the client range.'. '<br />' .
@@ -361,13 +361,13 @@ $section->addInput(new Form_IpAddress(
$section->addInput(new Form_IpAddress(
'remoteip',
- 'Remote Address Range',
+ '*Remote Address Range',
$pconfig['remoteip']
))->setHelp('Specify the starting address for the client IP address subnet.');
$section->addInput(new Form_Select(
'pppoe_subnet',
- 'Subnet mask',
+ '*Subnet mask',
$pconfig['pppoe_subnet'],
array_combine(range(0, 32, 1), range(0, 32, 1))
))->setHelp('Hint: 24 is 255.255.255.0');
@@ -616,6 +616,8 @@ events.push(function() {
disableInput('radius_nasip', hide);
disableInput('radius_acct_update', hide);
disableInput('radiussecenable', hide);
+ setRequired('radiusserver', !hide);
+ setRequired('radiussecret', !hide);
hide_radius2(hide);
}
// show/hide radius server 2 controls
@@ -625,6 +627,8 @@ events.push(function() {
disableInput('radiussecret2_confirm', hide);
disableInput('radiusserver2port', hide);
disableInput('radiusserver2acctport', hide);
+ setRequired('radiusserver2', !hide);
+ setRequired('radiussecret2', !hide);
}
// When the RADIUS checkbox is clicked . .
OpenPOWER on IntegriCloud