1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-30 00:00:13 +01:00
VILLASweb/app/templates/simulation-model/index.hbs
Markus Grigull 0423d7f3dc Add signal naming
Simulation model length changes adopt to the mapping size.
2016-10-20 12:38:48 +02:00

31 lines
793 B
Handlebars

{{#link-to 'simulation.index' model.simulation.id}}Back to {{model.simulation.name}}{{/link-to}}
<h1>{{model.name}}</h1>
<form {{action 'saveMapping' on='submit'}}>
<h3>Mapping</h3>
<div class="simulation-model-index-mapping">
<table class="table-full-width">
<tr>
<th width="80px">Signal</th>
<th>Name</th>
</tr>
{{#each-in model.mapping as |signal name|}}
<tr>
<td>
{{signal}}
</td>
<td>
{{input value=(mut (get this (concat 'name' signal)))}}
</td>
</tr>
{{/each-in}}
</table>
</div>
<div class="simulation-model-index-buttons">
<!-- <button {{action 'cancelMapping'}}>Cancel</button> -->
<button type="submit">Save</button>
</div>
</form>