diff --git a/app/scripts/terraform/aws_instance.tf b/app/scripts/terraform/aws_instance.tf index 51ae8f7b..1071694a 100644 --- a/app/scripts/terraform/aws_instance.tf +++ b/app/scripts/terraform/aws_instance.tf @@ -1,5 +1,5 @@ module "aws_module" { - source = "github.com/Aidaho12/haproxy-wi-terraform-modules?ref=aws" + source = "github.com/hap-wi/haproxy-wi-terraform-modules?ref=aws" region = var.region instance_type = var.instance_type diff --git a/app/scripts/terraform/do_instance.tf b/app/scripts/terraform/do_instance.tf index 60c8de86..ef2cf2c8 100644 --- a/app/scripts/terraform/do_instance.tf +++ b/app/scripts/terraform/do_instance.tf @@ -1,5 +1,5 @@ module "do_module" { - source = "github.com/Aidaho12/haproxy-wi-terraform-modules?ref=digitalocean" + source = "github.com/hap-wi/haproxy-wi-terraform-modules?ref=digitalocean" region = var.region size = var.size diff --git a/app/scripts/terraform/gcore_instance.tf b/app/scripts/terraform/gcore_instance.tf index c5973236..be6c62d4 100644 --- a/app/scripts/terraform/gcore_instance.tf +++ b/app/scripts/terraform/gcore_instance.tf @@ -1,5 +1,5 @@ module "gcore_module" { - source = "github.com/Aidaho12/haproxy-wi-terraform-modules?ref=gcore" + source = "github.com/hap-wi/haproxy-wi-terraform-modules?ref=gcore" region = var.region instance_type = var.instance_type diff --git a/app/templates/include/mon_installation.html b/app/templates/include/mon_installation.html index a6e556e9..cea9d394 100644 --- a/app/templates/include/mon_installation.html +++ b/app/templates/include/mon_installation.html @@ -17,10 +17,10 @@ {% endif %} - HAProxy-WI will try to install the latest Grafana and Prometheus server versions + HAProxy-WI will try to install the latest Grafana and Prometheus servers versions - Before Install any Exporters install Grafana and Prometheus servers first + Before installing any exporters, first install Grafana and Prometheus servers @@ -34,7 +34,7 @@ - + @@ -64,7 +64,7 @@

Install HAProxy Exporter

Current instalationCurrent installation Available Versions Server
- + diff --git a/inc/add.js b/inc/add.js index afe72780..8268fce8 100644 --- a/inc/add.js +++ b/inc/add.js @@ -834,6 +834,7 @@ $( function() { } ); $( "#add6" ).on( "click", function() { $( "#tabs" ).tabs( "option", "active", 7 ); + $( "#userlist_serv" ).selectmenu( "open" ); } ); $( "#add7" ).on( "click", function() { $('.menu li ul li').each(function () { @@ -1013,20 +1014,25 @@ $( function() { }); $( ".redirectListen" ).on( "click", function() { - resetProxySettings() + resetProxySettings(); $( "#tabs" ).tabs( "option", "active", 1 ); + $( "#serv" ).selectmenu( "open" ); } ); $( ".redirectFrontend" ).on( "click", function() { - resetProxySettings() - $( "#tabs" ).tabs( "option", "active", 2 ); + resetProxySettings(); + var TabId = 2; + $( "#tabs" ).tabs( "option", "active", TabId ); + $( "#serv"+TabId ).selectmenu( "open" ); } ); - $( "#redirectBackend" ).on( "click", function() { - resetProxySettings() - $( "#tabs" ).tabs( "option", "active", 3 ); - history.pushState('Add backend', 'Add backend', 'add.py#backend') + $( ".redirectBackend" ).on( "click", function() { + resetProxySettings(); + var TabId = 3; + $( "#tabs" ).tabs( "option", "active", TabId ); + $( "#serv"+TabId ).selectmenu( "open" ); } ); $( ".redirectSsl" ).on( "click", function() { $( "#tabs" ).tabs( "option", "active", 4 ); + $( "#serv5" ).selectmenu( "open" ); } ); $( "#create-http-listen" ).on( "click", function() { @@ -1182,6 +1188,18 @@ $( function() { $("#backend_add_acl").click(function(){ make_actions_for_adding_acl_rule('#backend_acl'); }); + $( "#serv" ).on('selectmenuchange',function() { + $('#name').focus(); + }); + $( "#serv2" ).on('selectmenuchange',function() { + $('#new_frontend').focus(); + }); + $( "#serv3" ).on('selectmenuchange',function() { + $('#new_backend').focus(); + }); + $( "#userlist_serv" ).on('selectmenuchange',function() { + $('#new_userlist').focus(); + }); }); function resetProxySettings() { $('[name=port]').val(''); @@ -1204,7 +1222,11 @@ function resetProxySettings() { function createHttp(TabId, proxy) { $('[name=port]').val('80'); $('[name=server_port]').val('80'); - $( "#tabs" ).tabs( "option", "active", TabId ); + $( "#tabs" ).tabs( "option", "active", TabId ); + if (TabId == 1) { + TabId = ''; + } + $( "#serv"+TabId ).selectmenu( "open" ); history.pushState('Add '+proxy, 'Add '+proxy, 'add.py#'+proxy) } function createSsl(TabId, proxy) { @@ -1217,6 +1239,10 @@ function createSsl(TabId, proxy) { $('#https-'+proxy).prop( "checked", true ); $('#https-'+proxy).checkboxradio("refresh"); $("#path-cert-"+proxy ).attr('required',true); + if (TabId == 1) { + TabId = ''; + } + $( "#serv"+TabId ).selectmenu( "open" ); history.pushState('Add'+proxy, 'Add'+proxy, 'add.py#'+proxy) } function createHttps(TabId, proxy) { @@ -1227,6 +1253,10 @@ function createHttps(TabId, proxy) { $( "#tabs" ).tabs( "option", "active", TabId ); $('#'+proxy+'-mode-select').val('tcp'); $('#'+proxy+'-mode-select').selectmenu('refresh'); + if (TabId == 1) { + TabId = ''; + } + $( "#serv"+TabId ).selectmenu( "open" ); history.pushState('Add'+proxy, 'Add'+proxy, 'add.py#'+proxy) } function confirmDeleteOption(id) { diff --git a/inc/servers.css b/inc/servers.css index 201c155f..e62f1e69 100644 --- a/inc/servers.css +++ b/inc/servers.css @@ -2,6 +2,9 @@ width: 10em; } .first-collumn { + width: 15%; +} +#ajax-servers .first-collumn { width: 10%; } .container {

Install Nginx Exporter

Current instalationCurrent installation Available Versions Server