summaryrefslogtreecommitdiffstats
path: root/modules-available/locations/templates/locations.html
diff options
context:
space:
mode:
authorSimon Rettberg2016-05-25 18:11:58 +0200
committerSimon Rettberg2016-05-25 18:11:58 +0200
commit69504022a57b08774e212d741290d2b587d0230d (patch)
treea6359556265ab4b03427c17603a7c99eda31a5f6 /modules-available/locations/templates/locations.html
parent[baseconfig] Add notice when editing subsection (diff)
downloadslx-admin-69504022a57b08774e212d741290d2b587d0230d.tar.gz
slx-admin-69504022a57b08774e212d741290d2b587d0230d.tar.xz
slx-admin-69504022a57b08774e212d741290d2b587d0230d.zip
[locations] Add machine count to each location
Diffstat (limited to 'modules-available/locations/templates/locations.html')
-rw-r--r--modules-available/locations/templates/locations.html40
1 files changed, 34 insertions, 6 deletions
diff --git a/modules-available/locations/templates/locations.html b/modules-available/locations/templates/locations.html
index 76c8f97c..e8b5d707 100644
--- a/modules-available/locations/templates/locations.html
+++ b/modules-available/locations/templates/locations.html
@@ -5,19 +5,37 @@
<h1>{{lang_locationsMainHeading}}</h1>
<table class="table table-condensed" style="margin-bottom:0px">
<tr>
- <th>#</th>
<th width="100%">{{lang_locationName}}</th>
<th></th>
</tr>
{{#list}}
<tr>
- <td>{{locationid}}</td>
- <td><div style="display:inline-block;width:{{depth}}em"></div>{{locationname}}</td>
- <td align="right">
- <a class="btn btn-success btn-xs" onclick="slxOpenLocation(this, {{locationid}})"><span class="glyphicon glyphicon-edit"></span> {{lang_edit}}</a>
+ <td>
+ <div style="display:inline-block;width:{{depth}}em"></div>
+ <a href="#" onclick="slxOpenLocation(this, {{locationid}})">{{locationname}}<b class="caret"></b></a>
+ </td>
+ <td class="slx-nowrap" align="right">
+ {{#havestatistics}}
+ {{clientCount}}
+ <a class="btn btn-default btn-xs" href="?do=Statistics&amp;filter=location&amp;argument={{locationid}}"><span class="glyphicon glyphicon-eye-open"></span></a>
+ {{/havestatistics}}
+ {{#havebaseconfig}}
+ <a class="btn btn-success btn-xs" href="?do=baseconfig&amp;module=locations&amp;locationid={{locationid}}"><span class="glyphicon glyphicon-edit"></span> {{lang_editConfigVariables}}</a>
+ {{/havebaseconfig}}
</td>
</tr>
{{/list}}
+ {{#unassignedCount}}
+ <tr>
+ <td></td>
+ <td class="slx-nowrap" align="right">
+ {{lang_unassignedMachines}}: {{unassignedCount}}
+ <a class="btn btn-default btn-xs" href="?do=Statistics&amp;filter=location&amp;argument=0">
+ <span class="glyphicon glyphicon-eye-open"></span>
+ </a>
+ </td>
+ </tr>
+ {{/unassignedCount}}
</table>
<form method="post" action="?do=Locations">
<input type="hidden" name="token" value="{{token}}">
@@ -37,6 +55,16 @@
</table>
</form>
</div>
+{{#overlapSelf}}
+<div class="alert alert-warning">
+ {{lang_locationSelfOverlap}}: <b>{{locationname}}</b>
+</div>
+{{/overlapSelf}}
+{{#overlapOther}}
+<div class="alert alert-danger">
+ {{lang_locationOtherOverlap}}: <b>{{name1}}</b> – <b>{{name2}}</b>
+</div>
+{{/overlapOther}}
<script type="text/javascript"><!--
var slxAddCounter = 0;
var slxLastLocation = false;
@@ -70,7 +98,7 @@ function slxOpenLocation(e, lid) {
}
return;
}
- var td = $('<td>').attr('colspan', '12').css('padding', '0px 0px 12px');
+ var td = $('<td>').attr('colspan', '2').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);