From d11e97562b2fc876cde5ff7245a2a660bfbd516b Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Mon, 21 Sep 2015 14:27:11 +0200 Subject: [PATCH] system/routes: convert to submenu Thin out "Status" and "Diagnostics" white at it, although the overall static page conception isn't consistent at all. Not liking this, but something has got to be done. Won't be the last commit I think. :) --- .../app/models/OPNsense/Base/Menu/Menu.xml | 27 ++++++++++++------- src/www/diag_routes.php | 3 ++- src/www/status_gateway_groups.php | 2 +- src/www/status_gateways.php | 3 ++- src/www/system_gateway_groups.php | 6 ++--- src/www/system_gateway_groups_edit.php | 3 ++- src/www/system_gateways.php | 5 ++-- src/www/system_gateways_edit.php | 4 +-- src/www/system_gateways_tabs.inc | 10 ------- src/www/system_routes.php | 6 ++--- src/www/system_routes_edit.php | 2 +- 11 files changed, 33 insertions(+), 38 deletions(-) delete mode 100644 src/www/system_gateways_tabs.inc diff --git a/src/opnsense/mvc/app/models/OPNsense/Base/Menu/Menu.xml b/src/opnsense/mvc/app/models/OPNsense/Base/Menu/Menu.xml index b2a492a35..69264f80e 100644 --- a/src/opnsense/mvc/app/models/OPNsense/Base/Menu/Menu.xml +++ b/src/opnsense/mvc/app/models/OPNsense/Base/Menu/Menu.xml @@ -28,12 +28,23 @@ - - - - - - + + + + + + + + + + + + + + + + + @@ -216,9 +227,6 @@ - - - @@ -277,7 +285,6 @@ - diff --git a/src/www/diag_routes.php b/src/www/diag_routes.php index 98ec5472c..dc16b9702 100644 --- a/src/www/diag_routes.php +++ b/src/www/diag_routes.php @@ -1,4 +1,5 @@ . @@ -37,7 +38,7 @@ $gateways_status = return_gateways_status(true); $now = time(); $year = date("Y"); -$pgtitle = array(gettext("Status"),gettext("Gateways")); +$pgtitle = array(gettext('System'), gettext('Gateways'), gettext('Status')); $shortcut_section = "gateways"; include("head.inc"); diff --git a/src/www/system_gateway_groups.php b/src/www/system_gateway_groups.php index fda3c302d..ecab3f119 100644 --- a/src/www/system_gateway_groups.php +++ b/src/www/system_gateway_groups.php @@ -126,13 +126,13 @@ if ($_GET['act'] == "del") { } } -$pgtitle = array(gettext("System"),gettext("Gateway Groups")); +$pgtitle = array(gettext('System'), gettext('Gateways'), gettext('Groups')); $shortcut_section = "gateway-groups"; include("head.inc"); $main_buttons = array( - array('label'=>'Add group', 'href'=>'system_gateway_groups_edit.php'), + array('label'=> gettext('Add group'), 'href'=>'system_gateway_groups_edit.php'), ); ?> @@ -156,8 +156,6 @@ endif; ?>
- -
diff --git a/src/www/system_gateway_groups_edit.php b/src/www/system_gateway_groups_edit.php index f515a59ec..18ceb4881 100644 --- a/src/www/system_gateway_groups_edit.php +++ b/src/www/system_gateway_groups_edit.php @@ -1,4 +1,5 @@ . @@ -148,7 +149,7 @@ if ($_POST) { } } -$pgtitle = array(gettext("System"),gettext("Gateways"),gettext("Edit gateway group")); +$pgtitle = array(gettext('System'),gettext('Gateways'), gettext('Edit Group')); $shortcut_section = "gateway-groups"; function build_gateway_protocol_map (&$a_gateways) diff --git a/src/www/system_gateways.php b/src/www/system_gateways.php index 78c98f115..595f2fde7 100644 --- a/src/www/system_gateways.php +++ b/src/www/system_gateways.php @@ -185,13 +185,13 @@ if (isset($_POST['del_x'])) { exit; } -$pgtitle = array(gettext("System"),gettext("Gateways")); +$pgtitle = array(gettext('System'), gettext('Gateways')); $shortcut_section = "gateways"; include("head.inc"); $main_buttons = array( - array('label'=>'Add Gateway', 'href'=>'system_gateways_edit.php'), + array('label'=> gettext('Add gateway'), 'href'=>'system_gateways_edit.php'), ); ?> @@ -220,7 +220,6 @@ $main_buttons = array( ?>
-
diff --git a/src/www/system_gateways_edit.php b/src/www/system_gateways_edit.php index 84079bc0b..335419e72 100644 --- a/src/www/system_gateways_edit.php +++ b/src/www/system_gateways_edit.php @@ -1,4 +1,5 @@ . @@ -546,8 +547,7 @@ if ($_POST) { } } - -$pgtitle = array(gettext("System"),gettext("Gateways"),gettext("Edit gateway")); +$pgtitle = array(gettext('System'), gettext('Gateway'), gettext('Edit')); $shortcut_section = "gateways"; include("head.inc"); diff --git a/src/www/system_gateways_tabs.inc b/src/www/system_gateways_tabs.inc deleted file mode 100644 index 7e3650809..000000000 --- a/src/www/system_gateways_tabs.inc +++ /dev/null @@ -1,10 +0,0 @@ -'Add', 'href'=>'system_routes_edit.php'), + array('label'=> gettext('Add route'), 'href'=>'system_routes_edit.php'), ); @@ -233,8 +233,6 @@ endif; ?>
- -
diff --git a/src/www/system_routes_edit.php b/src/www/system_routes_edit.php index cc269ea64..9b81d8439 100644 --- a/src/www/system_routes_edit.php +++ b/src/www/system_routes_edit.php @@ -220,7 +220,7 @@ if ($_POST) { } } -$pgtitle = array(gettext("System"),gettext("Static Routes"),gettext("Edit route")); +$pgtitle = array(gettext('System'), gettext('Routes'), gettext('Edit')); $shortcut_section = "routing"; include("head.inc"); ?>