summaryrefslogtreecommitdiffstats
path: root/modules-available/locations/templates/locations.html
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/locations/templates/locations.html')
-rw-r--r--modules-available/locations/templates/locations.html50
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&amp;action=showlocations" class="btn btn-default active"><span class="glyphicon glyphicon-home"></span> {{lang_thisListByLocation}}</a>
- <a href="?do=Locations&amp;action=showsubnets" class="btn btn-default"><span class="glyphicon glyphicon-list-alt"></span> {{lang_thisListBySubnet}}</a>
+ <a href="?do=Locations&amp;action=showlocations" class="btn btn-default active">
+ <span class="glyphicon glyphicon-home"></span>
+ {{lang_thisListByLocation}}
+ </a>
+ <a href="?do=Locations&amp;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&amp;show=list&amp;filters=location={{locationid}}">&nbsp;{{clientCount}}&nbsp;</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&amp;module=locations&amp;locationid={{locationid}}"><span class="glyphicon glyphicon-edit"></span></a>
@@ -67,10 +79,8 @@
{{lang_overrideCount}}: {{overriddenVars}}&emsp;&emsp;
{{/overriddenVars}}
{{/havebaseconfig}}
- {{/linkClass}}
</td>
<td class="text-nowrap">
- {{^linkClass}}
{{#havesysconfig}}
<div class="pull-right">
<a class="btn btn-default btn-xs" href="?do=sysconfig&amp;locationid={{locationid}}"><span class="glyphicon glyphicon-edit"></span></a>
@@ -79,7 +89,16 @@
{{configName}}&emsp;&emsp;
</span>
{{/havesysconfig}}
- {{/linkClass}}
+ </td>
+ <td class="text-nowrap">
+ {{#haveipxe}}
+ <div class="pull-right">
+ <a class="btn btn-default btn-xs" href="?do=serversetup&amp;show=assignlocation&amp;locationid={{locationid}}"><span class="glyphicon glyphicon-edit"></span></a>
+ </div>
+ <span class="{{customMenuClass}}">
+ {{customMenu}}&emsp;&emsp;
+ </span>
+ {{/haveipxe}}
</td>
</tr>
{{/list}}
@@ -90,9 +109,10 @@
<a href="?do=Statistics&amp;show=list&amp;filters=location=0">
&nbsp;{{unassignedCount}}&nbsp;
</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%">&emsp;</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);