From 7c539fd8736b0ff9acafe32d857b2a2021d778e6 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 31 Jul 2019 16:58:14 +0200 Subject: [locations] Add warnings/cleanup for bad machine to roomplan mappings --- .../locations/templates/location-subnets.html | 1 + .../locations/templates/locations.html | 13 +++- .../locations/templates/mismatch-cleanup.html | 69 ++++++++++++++++++++++ modules-available/locations/templates/subnets.html | 11 +++- 4 files changed, 89 insertions(+), 5 deletions(-) create mode 100644 modules-available/locations/templates/mismatch-cleanup.html (limited to 'modules-available/locations/templates') diff --git a/modules-available/locations/templates/location-subnets.html b/modules-available/locations/templates/location-subnets.html index 78ef99a0..6062b559 100644 --- a/modules-available/locations/templates/location-subnets.html +++ b/modules-available/locations/templates/location-subnets.html @@ -2,6 +2,7 @@
{{lang_locationSettings}}
+
diff --git a/modules-available/locations/templates/locations.html b/modules-available/locations/templates/locations.html index 7bdf3038..a63e3b8c 100644 --- a/modules-available/locations/templates/locations.html +++ b/modules-available/locations/templates/locations.html @@ -1,10 +1,10 @@
- + {{lang_thisListByLocation}} - + {{lang_thisListBySubnet}} @@ -21,6 +21,12 @@ {{lang_locationOtherOverlap}}: {{name1}}{{name2}}
{{/overlapOther}} + {{#mismatchMachines}} +
+ + {{lang_locationMismatch}}: {{locationname}} ({{lang_machineCount}}: {{count}}) +
+ {{/mismatchMachines}} @@ -121,6 +127,7 @@
+ @@ -187,7 +194,7 @@ function slxOpenLocation(e, lid) { var tr = $('').attr('id', 'location-details-' + lid); tr.append(td); $(e).closest('tr').addClass('active slx-bold').after(tr); - td.load('?do=Locations&action=showlocation&locationid=' + lid, function() { + td.load('?do=Locations&page=details&action=showlocation&locationid=' + lid, function() { slxAttachCidr(); scollIntoView(tr); }); diff --git a/modules-available/locations/templates/mismatch-cleanup.html b/modules-available/locations/templates/mismatch-cleanup.html new file mode 100644 index 00000000..a6f45d27 --- /dev/null +++ b/modules-available/locations/templates/mismatch-cleanup.html @@ -0,0 +1,69 @@ + + +

{{lang_mismatchHeading}}

+

{{locationname}}

+ +

{{lang_mismatchIntroText}}

+ + + + + +
+ + + + + + + + + + {{#clients}} + + + + + + + {{/clients}} + +
{{lang_machine}}{{lang_ip}}{{lang_moveable}}{{lang_locationBySubnet}}
+
+ + +
+
+ {{clientip}} + + {{#canmove}} + + {{/canmove}} + {{^canmove}} + + {{/canmove}} + + {{iplocationname}} +
+ +
+ + +
+ +
\ No newline at end of file diff --git a/modules-available/locations/templates/subnets.html b/modules-available/locations/templates/subnets.html index d027d800..59acf212 100644 --- a/modules-available/locations/templates/subnets.html +++ b/modules-available/locations/templates/subnets.html @@ -1,11 +1,18 @@

{{lang_listOfSubnets}}

+ -- cgit v1.2.3-55-g7522