diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-12-29 11:46:38 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-12-29 11:46:38 -0500 |
commit | e1ef8082e5190e6b2dc58061d83103c6cd23aa74 (patch) | |
tree | 62b056e07915bf3349636d1b73f373ed12565fd7 /src/usr | |
parent | d395af26da6df534543ebadb97f9e8c8e6bd3ef6 (diff) | |
download | pfsense-e1ef8082e5190e6b2dc58061d83103c6cd23aa74.zip pfsense-e1ef8082e5190e6b2dc58061d83103c6cd23aa74.tar.gz |
Fixed #5694
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/local/www/system_gateways_edit.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/usr/local/www/system_gateways_edit.php b/src/usr/local/www/system_gateways_edit.php index 25441e5..7c71408 100644 --- a/src/usr/local/www/system_gateways_edit.php +++ b/src/usr/local/www/system_gateways_edit.php @@ -699,12 +699,20 @@ $section->addInput(new Form_Input( $pconfig['name'] ))->setHelp('Gateway name'); -$section->addInput(new Form_Input( +$egw = new Form_Input( 'gateway', 'Gateway', 'text', ($pconfig['dynamic'] ? 'dynamic' : $pconfig['gateway']) -))->setHelp('Gateway IP address'); +); + +$egw->setHelp('Gateway IP address'); + +if ($pconfig['dynamic']) { + $egw->setReadonly(); +} + +$section->addInput($egw); $section->addInput(new Form_Checkbox( 'defaultgw', |