31 lines
1.5 KiB
HTML
31 lines
1.5 KiB
HTML
<template name="windowLevelPresetsForm">
|
|
{{#form (extend this api=instance.api)}}
|
|
<div class="form-content">
|
|
<table class="full-width">
|
|
<thead>
|
|
<tr>
|
|
<th class="p-x-1 text-center">Preset</th>
|
|
<th class="p-x-1">Description</th>
|
|
<th class="p-x-1">Window Level (WL)</th>
|
|
<th class="p-x-1">Window Width (WW)</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{#each presetInputInformation in getPresetsInputInformationList}}
|
|
{{#group base='baseTr' key=(concat @index)}}
|
|
<td class="p-x-1 text-center">{{sum @index 1}}</td>
|
|
<td class="p-x-1">{{>inputText key='id' value=presetInputInformation.id}}</td>
|
|
<td class="p-x-1">{{>inputText key='wc' value=(filterNaN presetInputInformation.wc) dataType='Number'}}</td>
|
|
<td class="p-x-1">{{>inputText key='ww' value=(filterNaN presetInputInformation.ww) dataType='Number'}}</td>
|
|
{{/group}}
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="form-buttons clearfix">
|
|
{{#button class='btn btn-danger pull-left' action='resetDefaults'}}Reset to Defaults{{/button}}
|
|
{{#button class='btn btn-primary pull-right' action='save'}}Save{{/button}}
|
|
</div>
|
|
{{/form}}
|
|
</template>
|