Measurements collection is added for lesion table
This commit is contained in:
1 parent
dfb4f6a41c
commit
f5f10dea34
16 files changed
+774
-287
No files matched your search
@@ -1,11 +1,11 @@
|
||||
<template name="lesionTableRow">
|
||||
<tr>
|
||||
<th class='lesionNumber'>{{lesionNumber}}</th>
|
||||
<th class='target'>{{isTarget}}</th>
|
||||
<th class='location'>{{location}}</th>
|
||||
<th class='lesionNumber'>{{lesionData.lesionNumber}}</th>
|
||||
<th class='target'>{{#if lesionData.isTarget}} Y {{else}} N {{/if}}</th>
|
||||
<th class='location'>{{lesionData.location}}</th>
|
||||
<!--Each time point as a column-->
|
||||
{{ #each timepoints}}
|
||||
{{ >lesionTableTimepointCell}}
|
||||
{{ /each }}
|
||||
{{# each timepoints }}
|
||||
{{> lesionTableTimepointCell }}
|
||||
{{/ each }}
|
||||
</tr>
|
||||
</template>
|
||||
@@ -1,10 +1,10 @@
|
||||
Template.lesionTableRow.helpers({
|
||||
'timepoints': function() {
|
||||
var array = [];
|
||||
var timepoints = this.timepoints;
|
||||
var timepoints = this.lesionData.timepoints;
|
||||
Object.keys(timepoints).forEach(function(key) {
|
||||
array.push(timepoints[key]);
|
||||
});
|
||||
return array;
|
||||
},
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user