summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_rfc2136_edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/local/www/services_rfc2136_edit.php')
-rw-r--r--src/usr/local/www/services_rfc2136_edit.php44
1 files changed, 34 insertions, 10 deletions
diff --git a/src/usr/local/www/services_rfc2136_edit.php b/src/usr/local/www/services_rfc2136_edit.php
index 5b74e36..891e8b1 100644
--- a/src/usr/local/www/services_rfc2136_edit.php
+++ b/src/usr/local/www/services_rfc2136_edit.php
@@ -157,6 +157,28 @@ if ($_POST) {
}
}
+function build_if_list() {
+ $list = array();
+
+ $iflist = get_configured_interface_with_descr();
+
+ foreach ($iflist as $if => $ifdesc) {
+ $list[$if] = $ifdesc;
+ }
+
+ unset($iflist);
+
+ $grouplist = return_gateway_groups_array();
+
+ foreach ($grouplist as $name => $group) {
+ $list[$name] = 'GW Group ' . $name;
+ }
+
+ unset($grouplist);
+
+ return($list);
+}
+
$pgtitle = array(gettext("Services"), gettext("Dynamic DNS"), gettext("RFC 2136 Client"), gettext("Edit"));
include("head.inc");
@@ -180,17 +202,14 @@ $section->addInput(new Form_Checkbox(
));
$optionlist = array();
-$iflist = get_configured_interface_with_descr();
-foreach ($iflist as $ifnam => $ifdescr) {
- $optionlist[$ifnam] = $ifdescr;
-}
+$iflist = build_if_list();
$section->addInput(new Form_Select(
'interface',
'Interface',
$pconfig['interface'],
- $optionlist
+ $iflist
));
$section->addInput(new Form_Input(
@@ -306,12 +325,17 @@ $section->addInput(new Form_Input(
))->setHelp('You may enter a description here for your reference (not parsed).');
if (isset($id) && $a_rfc2136[$id]) {
- $section->addInput(new Form_Input(
- 'id',
- null,
- 'hidden',
- $id
+ $section->addInput(new Form_Input(
+ 'id',
+ null,
+ 'hidden',
+ $id
));
+
+ $form->addGlobal(new Form_Button(
+ 'force',
+ 'Save & Force Update'
+ ))->removeClass('btn-primary')->addClass('btn-info');
}
$form->add($section);
OpenPOWER on IntegriCloud