PWV-1: Refactoring ohif:measurements import structure for templates

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2016-11-15 08:21:46 +01:00
1 parent 7bbd380983
commit 8e6ac3bf1e
14 files changed
+194 -173

No files matched your search

@@ -7,7 +7,7 @@
<h4 class="modal-title" id="associationModalLabel">Study Association</h4>
</div>
<div class="modal-body">
{{ >studyAssociationTable }}
{{>studyAssociationTable}}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" id="saveAssociations">Save</button>
@@ -16,4 +16,4 @@
</div>
</div>
</div>
</template>
</template>
@@ -4,8 +4,7 @@
<div class="col-md-12">
<h4>Instructions</h4>
<p>Associate the selected studies with timepoints in the clinical trial. Only 1 follow-up time point can be associated at the same time.</p>
<p>We have automatically retrieved all studies within 14 days (<strong>{{formatDA earliestDate}}</strong> to <strong>{{formatDA latestDate}}</strong>) of your selected studies, in case you forgot to
select a study.</p>
<p>We have automatically retrieved all studies within 14 days (<strong>{{formatDA this.earliestDate}}</strong> to <strong>{{formatDA latestDate}}</strong>) of your selected studies, in case you forgot to select a study.</p>
</div>
</div>
@@ -21,44 +20,44 @@
</thead>
<tbody>
{{ #each relevantStudies }}
<tr>
<td class="center">
<input type="checkbox" class="includeStudy" {{valueIf autoselected '' 'checked'}}/>
</td>
<td class="center studyDataCell {{ #if autoselected }}disabled{{ /if }}">
{{ #if autoselected}}
<p class="studyDate autoselected"
data-toggle="tooltip"
title="This study was autoselected.">
{{formatDA studyDate}}
</p>
{{ else }}
<p class="studyDate">{{formatDA studyDate}}</p>
{{ /if }}
</td>
<td class="center studyDataCell {{ #if autoselected }}disabled{{ /if }}">
<p>{{formatPN patientName}}</p>
</td>
<td class="studyDataCell {{ #if autoselected }}disabled{{ /if }}">
<p>{{studyDescription}}</p>
</td>
<td class="timepointOptions center studyDataCell noselect {{ #if autoselected }}disabled{{ /if }}">
{{ #each timepointOptions }}
<label class="noselect">
<input type="radio"
name="{{../_id}}"
value="{{value}}"
class="timepointOption"
{{ valueIf checked 'checked' ''}}
{{ valueIf autoselected 'disabled' ''}}>
{{name}}
</label>
{{ /each }}
</td>
</tr>
{{ /each }}
{{#each relevantStudies}}
<tr>
<td class="center">
<input type="checkbox" class="includeStudy" {{valueIf autoselected '' 'checked'}}/>
</td>
<td class="center studyDataCell {{#if autoselected}}disabled{{/if}}">
{{#if autoselected}}
<p class="studyDate autoselected"
data-toggle="tooltip"
title="This study was autoselected.">
{{formatDA studyDate}}
</p>
{{else}}
<p class="studyDate">{{formatDA studyDate}}</p>
{{/if}}
</td>
<td class="center studyDataCell {{#if autoselected}}disabled{{/if}}">
<p>{{formatPN patientName}}</p>
</td>
<td class="studyDataCell {{#if autoselected}}disabled{{/if}}">
<p>{{studyDescription}}</p>
</td>
<td class="timepointOptions center studyDataCell noselect {{#if autoselected}}disabled{{/if}}">
{{#each timepointOptions}}
<label class="noselect">
<input type="radio"
name="{{../_id}}"
value="{{value}}"
class="timepointOption"
{{valueIf checked 'checked' ''}}
{{valueIf autoselected 'disabled' ''}}>
{{name}}
</label>
{{/each}}
</td>
</tr>
{{/each}}
</tbody>
</table>
</div>
</template>
</template>
@@ -0,0 +1,11 @@
// Study-Timepoint Association imports
import './associationModal/associationModal.html';
import './associationModal/associationModal.styl';
import './associationModal/associationModal.js';
import './associationModal/studyAssociationTable/studyAssociationTable.html';
import './associationModal/studyAssociationTable/studyAssociationTable.styl';
import './associationModal/studyAssociationTable/studyAssociationTable.js';
import './confirmRemoveTimepointAssociation/confirmRemoveTimepointAssociation.html';
import './confirmRemoveTimepointAssociation/confirmRemoveTimepointAssociation.js';
@@ -0,0 +1,8 @@
// Case Progress imports
import './caseProgress.html';
import './caseProgress.styl';
import './caseProgress.js';
import './radialProgressBar/radialProgressBar.html';
import './radialProgressBar/radialProgressBar.styl';
import './radialProgressBar/radialProgressBar.js';
@@ -0,0 +1,4 @@
import './association';
import './caseProgress';
import './longitudinal';
import './measurementTable';
@@ -0,0 +1,10 @@
// Longitudinal Components imports
import './longitudinalStudyListStudy/longitudinalStudyListStudy.html';
import './longitudinalStudyListStudy/longitudinalStudyListStudy.styl';
import './longitudinalStudyListStudy/longitudinalStudyListStudy.js';
import './longitudinalStudyListContextMenu/longitudinalStudyListContextMenu.html';
import './longitudinalStudyListContextMenu/longitudinalStudyListContextMenu.js';
import './longitudinalViewportOverlay/longitudinalViewportOverlay.html';
import './longitudinalViewportOverlay/longitudinalViewportOverlay.js';
@@ -0,0 +1,28 @@
// Measurement Table Components imports
import './measurementTable.html';
import './measurementTable.styl';
import './measurementTable.js';
import './measurementTableView/measurementTableView.html';
import './measurementTableView/measurementTableView.styl';
import './measurementTableView/measurementTableView.js';
import './measurementTableHUD/measurementTableHUD.html';
import './measurementTableHUD/measurementTableHUD.styl';
import './measurementTableHUD/measurementTableHUD.js';
import './measurementTableRow/measurementTableRow.html';
import './measurementTableRow/measurementTableRow.styl';
import './measurementTableRow/measurementTableRow.js';
import './measurementTableHeaderRow/measurementTableHeaderRow.html';
import './measurementTableHeaderRow/measurementTableHeaderRow.styl';
import './measurementTableHeaderRow/measurementTableHeaderRow.js';
import './measurementTableTimepointCell/measurementTableTimepointCell.html';
import './measurementTableTimepointCell/measurementTableTimepointCell.styl';
import './measurementTableTimepointCell/measurementTableTimepointCell.js';
import './measurementTableTimepointHeader/measurementTableTimepointHeader.html';
import './measurementTableTimepointHeader/measurementTableTimepointHeader.styl';
import './measurementTableTimepointHeader/measurementTableTimepointHeader.js';