From 3d0cb99c70dd9714655cf26893504e4bd007b036 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 24 Jun 2016 17:08:24 +0200 Subject: [locations] Support CIDR notion (start field), tweak templates a bit --- .../locations/templates/locations.html | 27 +++++++++++++--------- 1 file changed, 16 insertions(+), 11 deletions(-) (limited to 'modules-available/locations/templates/locations.html') diff --git a/modules-available/locations/templates/locations.html b/modules-available/locations/templates/locations.html index 2971105b..1fb60926 100644 --- a/modules-available/locations/templates/locations.html +++ b/modules-available/locations/templates/locations.html @@ -6,13 +6,15 @@ - - - {{#havesysconfig}} + + - {{/havesysconfig}} {{#list}} @@ -37,13 +39,13 @@ {{/havebaseconfig}} @@ -123,23 +125,26 @@ function slxOpenLocation(e, lid) { } return; } - var td = $('').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); + td.load('?do=Locations&action=showlocation&locationid=' + lid, function() { + slxAttachCidr(); + }); slxLastLocation = tr; } function slxAddSubnetRow(e, lid) { var tr = $('#loc-sub-' + lid); - tr.before('\ + tr.before('\ \ - \ - \ + \ + \ \ '); slxAddCounter++; + slxAttachCidr(); } function slxConfirm() { -- cgit v1.2.3-55-g7522
{{lang_locationName}}{{#havestatistics}}{{lang_machineCount}}{{/havestatistics}}{{lang_editConfigVariables}} + {{#havestatistics}}{{lang_machineCount}}{{/havestatistics}} + + {{#havebaseconfig}}{{lang_editConfigVariables}}{{/havebaseconfig}} + - {{#havebaseconfig}}{{lang_sysConfig}}{{/havebaseconfig}} + {{#havesysconfig}}{{lang_sysConfig}}{{/havesysconfig}}
+ {{#havesysconfig}}
{{configName}}   - {{#havesysconfig}} {{/havesysconfig}}
').attr('colspan', '2').css('padding', '0px 0px 12px'); + var td = $('').attr('colspan', '4').css('padding', '0px 0px 12px'); var tr = $('
#