summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_gateways_edit.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-09-15 09:22:26 -0400
committerStephen Beaver <sbeaver@netgate.com>2015-09-15 12:50:22 -0400
commitd398152473bc7fece9d4b647c27d26c723f380c8 (patch)
treebee8ae91c67bcc71e606182f92c1b67efdda062b /src/usr/local/www/system_gateways_edit.php
parent0c65f19f9d933f223438e4dba5bc5543d42139a8 (diff)
downloadpfsense-d398152473bc7fece9d4b647c27d26c723f380c8.zip
pfsense-d398152473bc7fece9d4b647c27d26c723f380c8.tar.gz
Fixed #5027
Checkbox replaced with button
Diffstat (limited to 'src/usr/local/www/system_gateways_edit.php')
-rw-r--r--src/usr/local/www/system_gateways_edit.php18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/usr/local/www/system_gateways_edit.php b/src/usr/local/www/system_gateways_edit.php
index 948ebe0..d433c3e 100644
--- a/src/usr/local/www/system_gateways_edit.php
+++ b/src/usr/local/www/system_gateways_edit.php
@@ -785,12 +785,18 @@ $section->addInput(new Form_Input(
$pconfig['descr']
))->setHelp('You may enter a description here for your reference (not parsed).');
-$section->addInput(new Form_Checkbox(
- 'showadv',
- 'Advanced options',
- 'Show the advanced options',
- false
-))->toggles('.advanced-options');
+$btnadvanced = new Form_Button(
+ 'toggle-advanced',
+ 'Advanced options'
+);
+
+$btnadvanced->toggles('.advanced-options')->setAttribute('type', 'button');
+$btnadvanced->removeClass('btn-primary')->addClass('btn-info');
+
+$section->addInput(new Form_StaticText(
+ null,
+ $btnadvanced
+));
$form->add($section);
$section = new Form_Section('Advanced');
OpenPOWER on IntegriCloud