diff options
Diffstat (limited to 'modules-available/roomplanner/templates')
-rw-r--r-- | modules-available/roomplanner/templates/item-selector.html | 12 | ||||
-rw-r--r-- | modules-available/roomplanner/templates/svg-plan.html | 26 |
2 files changed, 27 insertions, 11 deletions
diff --git a/modules-available/roomplanner/templates/item-selector.html b/modules-available/roomplanner/templates/item-selector.html index 6bc226cb..f4680cf1 100644 --- a/modules-available/roomplanner/templates/item-selector.html +++ b/modules-available/roomplanner/templates/item-selector.html @@ -90,15 +90,15 @@ data-height="100" data-width="100" title="PC" noresize=1></div> </li> <li> - <div itemtype="pc" itemlook="copier" class="draggable" style="width:100px; height:100px;" + <div itemtype="pc" itemlook="copier-south" class="draggable" style="width:100px; height:100px;" data-height="100" data-width="100" title="{{lang_photocopier}}" noresize=1></div> </li> <li> - <div itemtype="pc" itemlook="printer" class="draggable" style="width:100px; height:100px;" + <div itemtype="pc" itemlook="printer-south" class="draggable" style="width:100px; height:100px;" data-height="100" data-width="100" title="{{lang_printer}}" noresize=1></div> </li> <li> - <div itemtype="pc" itemlook="telephone" class="draggable" style="width:100px; height:100px;" + <div itemtype="pc" itemlook="telephone-south" class="draggable" style="width:100px; height:100px;" data-height="100" data-width="100" title="{{lang_telephone}}" noresize=1></div> </li> </ul> @@ -107,15 +107,15 @@ <div role="tabpanel" class="tab-pane" id="electricaldevices"> <ul class="toollist"> <li> - <div itemtype="furniture" itemlook="flatscreen" class="draggable" style="width:75px; height:100px;" + <div itemtype="furniture" itemlook="flatscreen-east" class="draggable" style="width:75px; height:100px;" data-height="100" data-width="75" title="{{lang_flatscreen}}"></div> </li> <li> - <div itemtype="furniture" itemlook="lamp" class="draggable" style="width:125px; height:50px;" + <div itemtype="furniture" itemlook="lamp-east" class="draggable" style="width:125px; height:50px;" data-height="50" data-width="125" title="{{lang_deskLamp}}"></div> </li> <li> - <div itemtype="furniture" itemlook="tvcamera" class="draggable" style="width:125px; height:50px;" + <div itemtype="furniture" itemlook="tvcamera-east" class="draggable" style="width:125px; height:50px;" data-height="50" data-width="125" title="{{lang_projector}}"></div> </li> </ul> diff --git a/modules-available/roomplanner/templates/svg-plan.html b/modules-available/roomplanner/templates/svg-plan.html index a2ecd5a7..c75e01f8 100644 --- a/modules-available/roomplanner/templates/svg-plan.html +++ b/modules-available/roomplanner/templates/svg-plan.html @@ -1,4 +1,3 @@ -<?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" @@ -18,9 +17,17 @@ stroke-width: .2; fill: url(#screen); } - rect.hl { + g.hl rect.scrn { fill: url(#screenhl); } + g.muted rect.scrn { + fill: url(#muted); + stroke: #777; + } + g.muted rect.kb { + fill: #eee; + stroke: #777; + } ]]> </style> <defs> @@ -32,13 +39,20 @@ <stop offset="0%" stop-color="#afa" /> <stop offset="100%" stop-color="#074" /> </radialGradient> + <radialGradient id="muted" cx=".4" cy=".3" r="1"> + <stop offset="0%" stop-color="#fff" /> + <stop offset="100%" stop-color="#999" /> + </radialGradient> </defs> <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}})"> + {{#links}} + <a xlink:href="./?do=statistics&uuid={{machineuuid}}"> + {{/links}} + <g transform="translate({{gridCol}} {{gridRow}})" class="{{class}}"> <rect transform="rotate({{rotation}} 1.9 1.9)" x=".1" y="2.6" @@ -52,9 +66,11 @@ ry=".4" height="2.2" width="3.4" - class="scrn {{class}}" - /> + class="scrn" /> </g> + {{#links}} + </a> + {{/links}} {{/machines}} </g> </svg> |