diff options
author | Simon Rettberg | 2019-03-15 17:19:24 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-03-15 17:19:24 +0100 |
commit | d58d44512321e7a369feb2dcfdb9bb88d260541b (patch) | |
tree | 9119a93ebb4e3936b134246bc3ebbceffbdda571 /modules-available/roomplanner/templates/svg-plan.html | |
parent | [locationinfo] Update translations (diff) | |
download | slx-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/roomplanner/templates/svg-plan.html')
-rw-r--r-- | modules-available/roomplanner/templates/svg-plan.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/modules-available/roomplanner/templates/svg-plan.html b/modules-available/roomplanner/templates/svg-plan.html new file mode 100644 index 00000000..1fdb5d1a --- /dev/null +++ b/modules-available/roomplanner/templates/svg-plan.html @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + version="1.1" + viewBox="0 0 {{width}} {{height}}" + width="{{width}}mm" + height="{{height}}mm"> + <style type="text/css"> + <![CDATA[ + rect { + stroke: #000; + fill: #fff; + stroke-width: .5; + } + rect.hl { + fill: #f00; + } + ]]> + </style> + <g transform="translate(-{{minX}}, -{{minY}})"> + {{#machines}} + <rect + x="{{gridCol}}" + y="{{gridRow}}" + height="3.8" + width="3.8" + class="{{class}}" /> + {{/machines}} + </g> +</svg> |