ohif-viewer/Packages/ohif-measurements/client/components/measurementTable/measurementTableView/measurementTableView.html
2017-01-26 13:09:16 -02:00

43 lines
1.9 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 measurementType=(getNewMeasurementType config.newMeasurementTool)}}
{{#let newMeasure=(newMeasurements measurementType)}}
{{#if newMeasure.length}}
{{#let collection=newMeasure}}
{{>measurementTableHeaderRow
measurementType=measurementType
measurements=collection
currentTimepointId=currentTimepointId
timepointApi=timepointApi
measurementApi=measurementApi}}
{{#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>