mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-30 00:00:13 +01:00
56 lines
1.5 KiB
Handlebars
56 lines
1.5 KiB
Handlebars
<h4>{{widget.name}}</h4>
|
|
|
|
<table class="widgetTable">
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Value</th>
|
|
</tr>
|
|
{{#each signals as |signal|}}
|
|
<tr>
|
|
<td>
|
|
{{signal.name}}
|
|
</td>
|
|
<td>
|
|
{{signal.value}}
|
|
</td>
|
|
</tr>
|
|
{{/each}}
|
|
</table>
|
|
|
|
{{#if isShowingModal}}
|
|
{{#modal-dialog attachment="middle center" translucentOverlay=true}}
|
|
<h1>Table</h1>
|
|
|
|
<form class="form-widget-table" {{action 'submitModal' on='submit'}} >
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<label for="name">Name</label>
|
|
</td>
|
|
<td>
|
|
{{input id='name' placeholder='Enter widget name' value=name}}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<label for="simulator">Simulator</label>
|
|
</td>
|
|
<td>
|
|
<select onchange={{action "selectSimulationModel" value="target.value"}} >
|
|
{{#each widget.visualization.project.simulation.models as |simulationModel|}}
|
|
<option value={{simulationModel.name}} selected={{eq simulationModelName simulationModel.name}}>{{simulationModel.name}}</option>
|
|
{{/each}}
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<button {{action 'cancelModal'}}>Cancel</button>
|
|
<button type="submit">Save</button>
|
|
<button {{action 'deleteModal'}}>Delete</button>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
{{/modal-dialog}}
|
|
{{/if}}
|