mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-30 00:00:13 +01:00

Plots can be positioned freely. The plot area does not scrolls yet while editing, but scales to fit all plots which are inside.
25 lines
554 B
Handlebars
25 lines
554 B
Handlebars
<h1>{{model.name}}</h1>
|
|
|
|
<div class="plot-toolbox">
|
|
<h3>Toolbox</h3>
|
|
{{#draggable-item content='chart'}}
|
|
<span>Chart</span>
|
|
{{/draggable-item}}
|
|
|
|
{{#draggable-item content='table'}}
|
|
<span>Table</span>
|
|
{{/draggable-item}}
|
|
|
|
{{#draggable-item content='value'}}
|
|
<span>Value</span>
|
|
{{/draggable-item}}
|
|
</div>
|
|
|
|
{{#draggable-dropzone dropped='addPlot'}}
|
|
{{plot-container plots=model.plots editing=true}}
|
|
{{/draggable-dropzone}}
|
|
|
|
<p>
|
|
<button {{action 'cancelEdit'}}>Cancel</button>
|
|
<button {{action 'saveEdit'}}>Save</button>
|
|
</p>
|