40 lines
1.7 KiB
HTML
40 lines
1.7 KiB
HTML
<template name="measurementTableView">
|
|
<div class="measurementTableView scrollArea">
|
|
{{#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}}
|
|
{{#each rowItem in measurementGroup.measurementRows}}
|
|
{{>measurementTableRow (clone this rowItem=rowItem)}}
|
|
{{/each}}
|
|
{{/each}}
|
|
|
|
{{#if config.newMeasurementTool}}
|
|
{{#let toolGroup=(getNewToolGroup config.newMeasurementTool)}}
|
|
{{#let newMeasure=(newMeasurements toolGroup)}}
|
|
{{#if newMeasure.length}}
|
|
{{#let collection=newMeasure}}
|
|
{{>measurementTableHeaderRow (clone this
|
|
toolGroup=toolGroup
|
|
measurementRows=collection)}}
|
|
|
|
{{#each entry in collection}}
|
|
{{>measurementTableRow (clone this rowItem=entry)}}
|
|
{{/each}}
|
|
{{/let}}
|
|
{{/if}}
|
|
{{/let}}
|
|
{{/let}}
|
|
{{/if}}
|
|
{{/let}}
|
|
{{#if or (hasMeasurements 'targets') (hasMeasurements 'nonTargets')}}
|
|
<div class="report-area">
|
|
<div class="btn btn-sm js-pdf">Generate Report</div>
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
</template>
|