diff --git a/net/haproxy/src/opnsense/mvc/app/controllers/OPNsense/HAProxy/forms/main.xml b/net/haproxy/src/opnsense/mvc/app/controllers/OPNsense/HAProxy/forms/main.xml index 1d1652a30..bfe9c6e35 100644 --- a/net/haproxy/src/opnsense/mvc/app/controllers/OPNsense/HAProxy/forms/main.xml +++ b/net/haproxy/src/opnsense/mvc/app/controllers/OPNsense/HAProxy/forms/main.xml @@ -89,7 +89,7 @@ - + info diff --git a/net/haproxy/src/opnsense/mvc/app/models/OPNsense/HAProxy/Migrations/M2_0_0.php b/net/haproxy/src/opnsense/mvc/app/models/OPNsense/HAProxy/Migrations/M2_0_0.php index 30bd75213..7e1a72d93 100644 --- a/net/haproxy/src/opnsense/mvc/app/models/OPNsense/HAProxy/Migrations/M2_0_0.php +++ b/net/haproxy/src/opnsense/mvc/app/models/OPNsense/HAProxy/Migrations/M2_0_0.php @@ -63,8 +63,6 @@ class M2_0_0 extends BaseModelMigration $acl->value = NULL; break; case 'path_starts_with': - echo "DEBUG: migrating : " . (string)$acl->name . "\n"; - echo " DEBUG: value: " . (string)$acl->value . "\n"; $acl->expression = 'path_beg'; $acl->path_beg = (string)$acl->value; $acl->value = NULL; @@ -144,7 +142,7 @@ class M2_0_0 extends BaseModelMigration $acl->value = NULL; break; default: - echo "DEBUG: no ACL migration required: " . (string)$acl->name . "\n"; + // echo "DEBUG: no ACL migration required: " . (string)$acl->name . "\n"; } } @@ -256,7 +254,7 @@ class M2_0_0 extends BaseModelMigration $action->actionValue = NULL; break; default: - echo "DEBUG: no Action migration required: " . (string)$action->name . "\n"; + // echo "DEBUG: no Action migration required: " . (string)$action->name . "\n"; } } @@ -284,7 +282,7 @@ class M2_0_0 extends BaseModelMigration $hc->smtpDomain = NULL; break; default: - echo "DEBUG: no Healthcheck migration required: " . (string)$hc->name . "\n"; + // echo "DEBUG: no Healthcheck migration required: " . (string)$hc->name . "\n"; } } diff --git a/net/haproxy/src/opnsense/mvc/app/views/OPNsense/HAProxy/index.volt b/net/haproxy/src/opnsense/mvc/app/views/OPNsense/HAProxy/index.volt index ed5f3b87c..2415237d8 100644 --- a/net/haproxy/src/opnsense/mvc/app/views/OPNsense/HAProxy/index.volt +++ b/net/haproxy/src/opnsense/mvc/app/views/OPNsense/HAProxy/index.volt @@ -150,7 +150,6 @@ POSSIBILITY OF SUCH DAMAGE. $('#DialogAcl').on('shown.bs.modal', function (e) { $("#acl\\.expression").change(function(){ var service_id = 'table_' + $(this).val(); - console.log("[debug_X] " + service_id + " | " + "\n") $(".expression_table").hide(); // $(".table_"+$(this).val()).show(); $("."+service_id).show(); @@ -162,7 +161,6 @@ POSSIBILITY OF SUCH DAMAGE. $('#DialogAction').on('shown.bs.modal', function (e) { $("#action\\.type").change(function(){ var service_id = 'table_' + $(this).val(); - console.log("[debug_Y] " + service_id + " | " + "\n") $(".type_table").hide(); // $(".table_"+$(this).val()).show(); $("."+service_id).show(); @@ -174,7 +172,6 @@ POSSIBILITY OF SUCH DAMAGE. $('#DialogBackend').on('shown.bs.modal', function (e) { $("#backend\\.healthCheckEnabled").change(function(){ var service_id = 'table_healthcheck_' + $(this).is(':checked'); - console.log("[debug_B] " + service_id + " | " + "\n") $(".healthcheck_table").hide(); $("."+service_id).show(); }); @@ -195,7 +192,6 @@ POSSIBILITY OF SUCH DAMAGE. $('#DialogHealthcheck').on('shown.bs.modal', function (e) { $("#healthcheck\\.type").change(function(){ var service_id = 'table_' + $(this).val(); - console.log("[debug_Z] " + service_id + " | " + "\n") $(".type_table").hide(); // $(".table_"+$(this).val()).show(); $("."+service_id).show(); @@ -365,34 +361,9 @@ POSSIBILITY OF SUCH DAMAGE. + {# add automatically generated tabs #} + {% for tab in mainForm['tabs']|default([]) %} + {% if tab['subtabs']|default(false) %} + {# Tab with dropdown #} + + {% else %} + {# Standard Tab #} +
  • + + {{tab[1]}} + +
  • + {% endif %} + {% endfor %} +