diff options
author | root | 2019-02-19 18:53:50 +0100 |
---|---|---|
committer | root | 2019-02-19 18:53:50 +0100 |
commit | 0ad4c0f8196b61699754762aacbaab0223478ab9 (patch) | |
tree | de434c4aea8d07ecd01cd3badd48d057d62c2d1b /modules-available/locations/templates/locations.html | |
parent | [usb-lock-off] Edit rule cleanup and fix of the dropdown boxes. (diff) | |
parent | [statistics] Fix RAM change warning to handle increase too (diff) | |
download | slx-admin-usb-lock-off.tar.gz slx-admin-usb-lock-off.tar.xz slx-admin-usb-lock-off.zip |
Merge branch 'master' into usb-lock-offusb-lock-off
Diffstat (limited to 'modules-available/locations/templates/locations.html')
-rw-r--r-- | modules-available/locations/templates/locations.html | 50 |
1 files changed, 35 insertions, 15 deletions
diff --git a/modules-available/locations/templates/locations.html b/modules-available/locations/templates/locations.html index be3d5115..06d32020 100644 --- a/modules-available/locations/templates/locations.html +++ b/modules-available/locations/templates/locations.html @@ -1,7 +1,13 @@ <div> <div class="btn-group pull-right"> - <a href="?do=Locations&action=showlocations" class="btn btn-default active"><span class="glyphicon glyphicon-home"></span> {{lang_thisListByLocation}}</a> - <a href="?do=Locations&action=showsubnets" class="btn btn-default"><span class="glyphicon glyphicon-list-alt"></span> {{lang_thisListBySubnet}}</a> + <a href="?do=Locations&action=showlocations" class="btn btn-default active"> + <span class="glyphicon glyphicon-home"></span> + {{lang_thisListByLocation}} + </a> + <a href="?do=Locations&action=showsubnets" class="btn btn-default {{perms.subnets.edit.disabled}}"> + <span class="glyphicon glyphicon-list-alt"></span> + {{lang_thisListBySubnet}} + </a> </div> <h1>{{lang_locationsMainHeading}}</h1> @@ -31,15 +37,25 @@ <th class="text-nowrap"> {{#havesysconfig}}{{lang_sysConfig}}{{/havesysconfig}} </th> + <th class="text-nowrap"> + {{#haveipxe}}{{lang_bootMenu}}{{/haveipxe}} + </th> </tr> {{#list}} <tr> <td> <div style="display:inline-block;width:{{depth}}em"></div> - <a href="#" class="{{linkClass}}" onclick="slxOpenLocation(this, {{locationid}}); return false">{{locationname}}{{^linkClass}} <b class="caret"></b>{{/linkClass}}</a> + {{#show-only}} + <span>{{locationname}}</span> + {{/show-only}} + {{^show-only}} + <a href="#" onclick="slxOpenLocation(this, {{locationid}}); return false"> + {{locationname}} + <b class="caret"></b> + </a> + {{/show-only}} </td> <td class="text-nowrap" align="right"> - {{^linkClass}} {{#havestatistics}} <a href="?do=Statistics&show=list&filters=location={{locationid}}"> {{clientCount}} </a> <span style="display:inline-block;width:5ex"> @@ -48,17 +64,13 @@ {{/hasChild}} </span> {{/havestatistics}} - {{/linkClass}} </td> <td class="text-nowrap" align="right"> - {{^linkClass}} {{#havestatistics}} {{clientLoad}} {{/havestatistics}} - {{/linkClass}} </td> - <td class="text-nowrap"> - {{^linkClass}} + <td class="text-nowrap {{overriddenClass}}"> {{#havebaseconfig}} <div class="pull-right" style="z-index:-1"> <a class="btn btn-default btn-xs" href="?do=baseconfig&module=locations&locationid={{locationid}}"><span class="glyphicon glyphicon-edit"></span></a> @@ -67,10 +79,8 @@ {{lang_overrideCount}}: {{overriddenVars}}   {{/overriddenVars}} {{/havebaseconfig}} - {{/linkClass}} </td> <td class="text-nowrap"> - {{^linkClass}} {{#havesysconfig}} <div class="pull-right"> <a class="btn btn-default btn-xs" href="?do=sysconfig&locationid={{locationid}}"><span class="glyphicon glyphicon-edit"></span></a> @@ -79,7 +89,16 @@ {{configName}}   </span> {{/havesysconfig}} - {{/linkClass}} + </td> + <td class="text-nowrap"> + {{#haveipxe}} + <div class="pull-right"> + <a class="btn btn-default btn-xs" href="?do=serversetup&show=assignlocation&locationid={{locationid}}"><span class="glyphicon glyphicon-edit"></span></a> + </div> + <span class="{{customMenuClass}}"> + {{customMenu}}   + </span> + {{/haveipxe}} </td> </tr> {{/list}} @@ -90,9 +109,10 @@ <a href="?do=Statistics&show=list&filters=location=0"> {{unassignedCount}} </a> + <span style="display:inline-block;width:5ex"></span> </td> <td class="text-nowrap" align="right"> - {{clientLoad}} + {{unassignedLoad}} </td> <td></td> <td>{{defaultConfig}}</td> @@ -106,7 +126,7 @@ <tr id="lasttr"> <td width="60%"> </td> <td class="text-right" colspan="2"> - <button {{^addAllowed}}disabled{{/addAllowed}} class="btn btn-success" type="button" onclick="slxAddLocationRow()"> + <button {{perms.location.add.disabled}} class="btn btn-success" type="button" onclick="slxAddLocationRow()"> <span class="glyphicon glyphicon-plus"></span> {{lang_location}} </button> <button id="saveLocationRows" type="submit" class="btn btn-primary collapse"> @@ -163,7 +183,7 @@ function slxOpenLocation(e, lid) { } return; } - var td = $('<td>').attr('colspan', '5').css('padding', '0px 0px 12px'); + var td = $('<td>').attr('colspan', '6').css('padding', '0px 0px 12px'); var tr = $('<tr>').attr('id', 'location-details-' + lid); tr.append(td); $(e).closest('tr').addClass('active slx-bold').after(tr); |