summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/templates
diff options
context:
space:
mode:
authorSimon Rettberg2019-03-15 17:19:24 +0100
committerSimon Rettberg2019-03-15 17:19:24 +0100
commitd58d44512321e7a369feb2dcfdb9bb88d260541b (patch)
tree9119a93ebb4e3936b134246bc3ebbceffbdda571 /modules-available/statistics/templates
parent[locationinfo] Update translations (diff)
downloadslx-admin-d58d44512321e7a369feb2dcfdb9bb88d260541b.tar.gz
slx-admin-d58d44512321e7a369feb2dcfdb9bb88d260541b.tar.xz
slx-admin-d58d44512321e7a369feb2dcfdb9bb88d260541b.zip
[statistics/roomplanner] Add SVG roomplan generator
Show in machine details if machine is part of some location's room plan.
Diffstat (limited to 'modules-available/statistics/templates')
-rw-r--r--modules-available/statistics/templates/machine-main.html15
1 files changed, 14 insertions, 1 deletions
diff --git a/modules-available/statistics/templates/machine-main.html b/modules-available/statistics/templates/machine-main.html
index b859b79a..8156f0aa 100644
--- a/modules-available/statistics/templates/machine-main.html
+++ b/modules-available/statistics/templates/machine-main.html
@@ -16,7 +16,7 @@
{{lang_machineSummary}}
</div>
<div class="panel-body">
- <table class="table table-condensed">
+ <table class="table table-condensed" style="margin-bottom:-5px">
<tr>
<td class="text-nowrap">{{lang_uuid}}</td>
<td>{{machineuuid}}</td>
@@ -88,6 +88,19 @@
</td>
</tr>
{{/modeid}}
+ {{#hasroomplan}}
+ <tr>
+ <td class="text-nowrap">
+ {{lang_roomplan}}
+ </td>
+ <td class="text-center">
+ <a href="?do=roomplanner&amp;locationid={{locationid}}" target="_blank"
+ onclick="window.open(this.href, '_blank', 'toolbar=0,scrollbars,resizable');return false">
+ <img src="api.php?do=roomplanner&amp;show=svg&amp;locationid={{locationid}}&amp;machineuuid={{machineuuid}}"/>
+ </a>
+ </td>
+ </tr>
+ {{/hasroomplan}}
</table>
</div>
</div>