Accession#, # Images and Modality columns are invisible on mobile versions

This commit is contained in:
Evren Ozkan 2015-11-17 19:02:53 -05:00
parent 83714e2e85
commit dac91857f0
4 changed files with 35 additions and 12 deletions

View File

@ -5,11 +5,17 @@
<tr>
<th>Patient Name</th>
<th>Patient ID</th>
<th>Accession #</th>
{{#unless isTouchDevice}}
<th>Accession #</th>
{{/unless}}
<th>Study Date</th>
<th>Modality</th>
{{#unless isTouchDevice}}
<th>Modality</th>
{{/unless}}
<th>Study Description</th>
<th># Images</th>
{{#unless isTouchDevice}}
<th># Images</th>
{{/unless}}
</tr>
</thead>
<tbody id="studyListData">

View File

@ -11,5 +11,9 @@ Template.worklistResult.helpers({
*/
studies : function() {
return WorklistStudies.find({}, {sort: {patientName : 1, studyDate : 1}});
},
isTouchDevice: function() {
return isTouchDevice();
}
});

View File

@ -6,20 +6,27 @@
<td>
{{patientId}}
</td>
<td>
{{accessionNumber}}
</td>
{{#unless isTouchDevice}}
<td>
{{accessionNumber}}
</td>
{{/unless}}
<td>
{{formatDA studyDate}}
</td>
<td>
{{modalities}}
</td>
{{#unless isTouchDevice}}
<td>
{{modalities}}
</td>
{{/unless}}
<td>
{{studyDescription}}
</td>
<td>
{{imageCount}}
</td>
{{#unless isTouchDevice}}
<td>
{{imageCount}}
</td>
{{/unless}}
</tr>
</template>

View File

@ -4,4 +4,10 @@ Template.worklistStudy.events({
var title = Blaze._globalHelpers['formatPN'](this.patientName);
openNewTab(this.studyInstanceUid, title);
}
});
Template.worklistStudy.helpers({
isTouchDevice: function() {
return isTouchDevice();
}
});