studyDateList template is moved inside hidingPanel

This commit is contained in:
Evren Ozkan 2015-11-17 19:01:41 -05:00
parent a528e52dbc
commit 83714e2e85
10 changed files with 76 additions and 52 deletions

View File

@ -27,42 +27,4 @@ table#tblStudyList tbody > tr > td{
} }
/* Toolbar Styles */
/* iphone6 Portrait */
@media only screen and (min-device-width : 375px) and (max-device-width : 667px) and (orientation : portrait) {
table#tblStudyList {
table-layout: fixed
font-size: 0.4em
}
#tablist {
width: 84%;
overflow-x: auto;
}
#toolbar .btn-group button {
width: 35px;
height: 35px;
}
}
/* iphone6 Plus Portrait */
@media only screen and (min-device-width : 414px) and (max-device-width : 736px) and (orientation : portrait) {
#tablist {
width: 84%;
overflow-x: auto;
}
#toolbar .btn-group button {
width: 40px;
height: 40px;
}
}

View File

@ -1,13 +1,11 @@
<template name="viewer"> <template name="viewer">
<div id="viewer"> <div id="viewer">
{{ >lesionLocationDialog }} {{>lesionLocationDialog}}
{{ >nonTargetLesionDialog}} {{>nonTargetLesionDialog}}
{{ >studyDateList}} {{>hidingPanel}}
{{ >hidingPanel }}
<div id="viewportAndLesionTable"> <div id="viewportAndLesionTable">
{{ >viewerMain }} {{>viewerMain }}
{{ >lesionTable }} {{>lesionTable }}
</div> </div>
</div> </div>
</template> </template>

View File

@ -16,6 +16,11 @@ function resizeViewports() {
}, 1); }, 1);
} }
Template.viewer.helpers({
'studyDateIsShown':function(){
return {studyDateIsShown: true};
}
});
Template.viewer.onCreated(function() { Template.viewer.onCreated(function() {
log.info("viewer onCreated"); log.info("viewer onCreated");

View File

@ -0,0 +1,27 @@
/* Mobile devices */
@media only screen and (min-device-width : 375px) and (max-device-width : 768px) and (orientation : portrait) {
table#tblStudyList {
table-layout: fixed;
font-size: 0.7em;
}
#tablist {
width: 84%;
overflow-x: auto;
}
#toolbar .btn-group button {
width: 40px;
height: 40px;
}
}
@media (max-device-width: 667px) {
#toolbar .btn-group button {
width: 35px;
height: 35px;
}
}

View File

@ -0,0 +1,12 @@
.studyDateList {
margin: 0px auto;
text-align: left;
width: 100%;
float: none;
border-top: 2px solid #777;
padding: 10px;
}
.studyDateList label {
color: white;
}

View File

@ -1,7 +1,11 @@
<template name="studyDateList"> <template name="studyDateList">
<select id="selectStudyDate"> <div class="studyDateList">
{{#each patientStudies}} <label>Study Date:</label>
<option value="{{studyInstanceUid}}">{{studyDate}}</option> <select id="selectStudyDate">
{{/each}} {{#each patientStudies}}
</select> <option value="{{studyInstanceUid}}">{{studyDate}}</option>
{{/each}}
</select>
</div>
</template> </template>

View File

@ -8,6 +8,7 @@ Template.studyDateList.onCreated(function(){
Template.studyDateList.onRendered(function(){ Template.studyDateList.onRendered(function(){
// Add Study dates to Timepoints // Add Study dates to Timepoints
this.patientStudies.forEach(function(study) { this.patientStudies.forEach(function(study) {
Timepoints.insert({ Timepoints.insert({
@ -16,8 +17,13 @@ Template.studyDateList.onRendered(function(){
}); });
}); });
// Selected date option // Selected date option in combobox
$('#selectStudyDate option[value="'+this.selectedDate+'"]').prop('selected', true); var self = this;
$('#selectStudyDate option').filter(function () {
if ($(this).html() === self.selectedDate) {
$(this).prop('selected', true);
}
});
}); });

View File

@ -40,6 +40,7 @@ Package.onUse(function (api) {
api.addFiles('components/nonTargetLesionDialog/nonTargetLesionDialog.js', 'client'); api.addFiles('components/nonTargetLesionDialog/nonTargetLesionDialog.js', 'client');
api.addFiles('components/studyDateList/studyDateList.html', 'client'); api.addFiles('components/studyDateList/studyDateList.html', 'client');
api.addFiles('components/studyDateList/studyDateList.css', 'client');
api.addFiles('components/studyDateList/studyDateList.js', 'client'); api.addFiles('components/studyDateList/studyDateList.js', 'client');

View File

@ -6,6 +6,9 @@
</button> </button>
</div> </div>
<div class="studyBrowserContainer"> <div class="studyBrowserContainer">
{{#if studyDateIsShown}}
{{> studyDateList}}
{{/if}}
{{> studyBrowser}} {{> studyBrowser}}
</div> </div>
</div> </div>

View File

@ -39,6 +39,12 @@ Template.hidingPanel.events({
} }
}); });
Template.hidingPanel.helpers({
'studyDateIsShown': function() {
return true;
}
});
Template.hidingPanel.onCreated(function() { Template.hidingPanel.onCreated(function() {
this.hidingPanelOpen = new ReactiveVar(true); this.hidingPanelOpen = new ReactiveVar(true);
this.hidingPanelWidth = new ReactiveVar(0); this.hidingPanelWidth = new ReactiveVar(0);