2016-08-15 15:34:36 +02:00
|
|
|
<template name="measurementTableView">
|
|
|
|
|
<div class="measurementTableView scrollArea">
|
2017-01-26 16:09:16 +01:00
|
|
|
{{#let config=measurementConfiguration groups=measurementGroups.get}}
|
|
|
|
|
{{#each measurementGroup in groups}}
|
|
|
|
|
{{! #if hasMeasurements measurementGroup.toolGroup.id}}
|
|
|
|
|
{{>measurementTableHeaderRow (clone this
|
|
|
|
|
toolGroup=measurementGroup.toolGroup
|
|
|
|
|
measurementRows=measurementGroup.measurementRows)}}
|
|
|
|
|
{{! /if}}
|
2017-01-23 23:04:42 +01:00
|
|
|
{{#each rowItem in measurementGroup.measurementRows}}
|
|
|
|
|
{{>measurementTableRow (clone this rowItem=rowItem)}}
|
|
|
|
|
{{/each}}
|
2016-09-20 22:47:44 +02:00
|
|
|
{{/each}}
|
2016-08-15 15:34:36 +02:00
|
|
|
|
2016-09-20 22:47:44 +02:00
|
|
|
{{#if config.newMeasurementTool}}
|
2017-02-16 00:02:30 +01:00
|
|
|
{{#let toolGroup=(getNewToolGroup config.newMeasurementTool)}}
|
|
|
|
|
{{#let newMeasure=(newMeasurements toolGroup)}}
|
2016-11-12 17:52:12 +01:00
|
|
|
{{#if newMeasure.length}}
|
2016-11-10 21:25:18 +01:00
|
|
|
{{#let collection=newMeasure}}
|
2017-02-16 00:02:30 +01:00
|
|
|
{{>measurementTableHeaderRow (clone this
|
|
|
|
|
toolGroup=toolGroup
|
|
|
|
|
measurementRows=collection)}}
|
2016-08-15 15:34:36 +02:00
|
|
|
|
|
|
|
|
{{#each entry in collection}}
|
|
|
|
|
{{>measurementTableRow (clone this rowItem=entry)}}
|
|
|
|
|
{{/each}}
|
|
|
|
|
{{/let}}
|
|
|
|
|
{{/if}}
|
|
|
|
|
{{/let}}
|
2016-11-10 21:25:18 +01:00
|
|
|
{{/let}}
|
2016-08-15 15:34:36 +02:00
|
|
|
{{/if}}
|
|
|
|
|
{{/let}}
|
2017-01-26 16:09:16 +01:00
|
|
|
{{#if or (hasMeasurements 'targets') (hasMeasurements 'nonTargets')}}
|
|
|
|
|
<div class="report-area">
|
|
|
|
|
<div class="btn btn-sm js-pdf">Generate Report</div>
|
|
|
|
|
</div>
|
|
|
|
|
{{/if}}
|
2016-08-15 15:34:36 +02:00
|
|
|
</div>
|
|
|
|
|
</template>
|