2018-07-20 12:40:09 +02:00
|
|
|
<template name="measurementLightTableView">
|
|
|
|
|
{{#let config=measurementConfiguration groups=measurementGroups.get}}
|
|
|
|
|
{{#each measurementGroup in groups}}
|
|
|
|
|
{{>measurementLightTableHeaderRow (clone this
|
|
|
|
|
toolGroup=measurementGroup.toolGroup
|
|
|
|
|
measurementRows=measurementGroup.measurementRows)}}
|
|
|
|
|
{{#each rowItem in measurementGroup.measurementRows}}
|
|
|
|
|
{{>measurementLightTableRow (clone this rowItem=rowItem)}}
|
|
|
|
|
{{/each}}
|
|
|
|
|
{{/each}}
|
|
|
|
|
{{/let}}
|
2018-07-31 15:01:26 +02:00
|
|
|
{{#if hasAnyMeasurement}}
|
|
|
|
|
<div class="report-area">
|
|
|
|
|
{{#if saveEnabled}}
|
|
|
|
|
{{#if hasUnsavedChanges}}
|
|
|
|
|
<div class="unsaved-changes-alert">
|
|
|
|
|
You have unsaved changes
|
|
|
|
|
</div>
|
|
|
|
|
{{/if}}
|
|
|
|
|
{{/if}}
|
|
|
|
|
{{#form (extend api=instance.api)}}
|
|
|
|
|
{{#button class='btn p-x-2' action='exportCSV'}}Export CSV{{/button}}
|
|
|
|
|
{{#if saveEnabled}}
|
|
|
|
|
{{#button class='btn p-x-2' action='save' disabled=(not hasUnsavedChanges)}}Save to Archive{{/button}}
|
|
|
|
|
{{/if}}
|
|
|
|
|
{{/form}}
|
|
|
|
|
</div>
|
|
|
|
|
{{/if}}
|
2018-07-20 12:40:09 +02:00
|
|
|
</template>
|