summaryrefslogtreecommitdiffstats
path: root/modules-available/roomplanner/templates
diff options
context:
space:
mode:
authorSimon Rettberg2019-07-23 13:57:20 +0200
committerSimon Rettberg2019-07-23 13:57:20 +0200
commit04828b94e9df8321feae0bfb99daa468c0d3d383 (patch)
treee3b00490dc14a0f5d6ffda5bab1ce7c82bafee52 /modules-available/roomplanner/templates
parentslx-fixes.js: Make .cachedScript more compatible to .getScript (diff)
downloadslx-admin-04828b94e9df8321feae0bfb99daa468c0d3d383.tar.gz
slx-admin-04828b94e9df8321feae0bfb99daa468c0d3d383.tar.xz
slx-admin-04828b94e9df8321feae0bfb99daa468c0d3d383.zip
[roomplanner] Support creating recursive/composed rooms
Diffstat (limited to 'modules-available/roomplanner/templates')
-rw-r--r--modules-available/roomplanner/templates/edit-composed-room.html2
-rw-r--r--modules-available/roomplanner/templates/svg-plan.html6
2 files changed, 4 insertions, 4 deletions
diff --git a/modules-available/roomplanner/templates/edit-composed-room.html b/modules-available/roomplanner/templates/edit-composed-room.html
index 64a02d61..3b87cfea 100644
--- a/modules-available/roomplanner/templates/edit-composed-room.html
+++ b/modules-available/roomplanner/templates/edit-composed-room.html
@@ -31,7 +31,7 @@
<div class="name text-nowrap small">{{locationname}}</div>
<div class="img">
<input type="hidden" class="sort-val" name="sort[{{locationid}}]">
- <img src="api.php?do=roomplanner&amp;show=svg&amp;locationid={{locationid}}&amp;scale=2.2">
+ <img src="api.php?do=roomplanner&amp;show=svg&amp;locationid={{locationid}}&amp;scale=2.2&amp;fallback=1">
</div>
<div class="clearfix"></div>
</div>
diff --git a/modules-available/roomplanner/templates/svg-plan.html b/modules-available/roomplanner/templates/svg-plan.html
index 16899e5c..a2ecd5a7 100644
--- a/modules-available/roomplanner/templates/svg-plan.html
+++ b/modules-available/roomplanner/templates/svg-plan.html
@@ -33,9 +33,9 @@
<stop offset="100%" stop-color="#074" />
</radialGradient>
</defs>
- <g transform="scale({{scale}}) rotate({{rotate}} {{centerX}} {{centerY}}) translate({{shiftX}} {{shiftY}})">
- <line x1="{{line.x1}}" y1="{{line.y1}}"
- x2="{{line.x2}}" y2="{{line.y2}}"
+ <g transform="scale({{scale}}) rotate({{rotate}} {{centerX}} {{centerY}})">
+ <line x1="0" y1="{{line.y}}"
+ x2="{{line.x}}" y2="{{line.y}}"
style="stroke:#555;stroke-width:.2;opacity:.5" />
{{#machines}}
<g transform="translate({{gridCol}} {{gridRow}})">