53 lines
1.4 KiB
Handlebars
53 lines
1.4 KiB
Handlebars
{{#if canAdd}}
|
|
<br>
|
|
<button class="button-green smaller" {{action "addCharacteristic"}}>
|
|
Add characteristic
|
|
</button>
|
|
<br><br>
|
|
{{/if}}
|
|
|
|
{{#if measurementsPresent}}
|
|
{{#if paramsChanged}}
|
|
<button class="button-gray smaller" {{action 'resetSortParam'}}>
|
|
Reset sort
|
|
</button>
|
|
{{/if}}
|
|
<table class="flakes-table">
|
|
<colgroup>
|
|
{{#if canEdit}}
|
|
<col span="1" style="width:10%">
|
|
<col span="1" style="width:30%">
|
|
<col span="1" style="width:20%">
|
|
<col span="1" style="width:20%">
|
|
<col span="1" style="width:20%">
|
|
{{else}}
|
|
<col span="1" style="width:10%">
|
|
<col span="1" style="width:30%">
|
|
<col span="1" style="width:30%">
|
|
<col span="1" style="width:30%">
|
|
{{/if}}
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th {{action "changeSortParam" "characteristic.characteristicTypeName"}}>Type</th>
|
|
<th {{action "changeSortParam" "characteristic.characteristicName"}}>Characteristic</th>
|
|
<th {{action "changeSortParam" "value"}}>Value</th>
|
|
<th {{action "changeSortParam" "notes"}}>Notes</th>
|
|
{{#if canEdit}}
|
|
<th>Edit</th>
|
|
{{/if}}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{#each sortedMeasurements as |measurement|}}
|
|
{{
|
|
protected/strains/show/measurements-table-row
|
|
row=measurement
|
|
canEdit=canEdit
|
|
}}
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
{{else}}
|
|
No measurements on record.
|
|
{{/if}}
|