studyDateList template is moved inside hidingPanel
This commit is contained in:
parent
a528e52dbc
commit
83714e2e85
@ -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;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
@ -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>
|
||||||
@ -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");
|
||||||
|
|
||||||
|
|||||||
27
LesionTracker/client/mobileStyles.css
Normal file
27
LesionTracker/client/mobileStyles.css
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -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;
|
||||||
|
}
|
||||||
@ -1,7 +1,11 @@
|
|||||||
<template name="studyDateList">
|
<template name="studyDateList">
|
||||||
|
<div class="studyDateList">
|
||||||
|
<label>Study Date:</label>
|
||||||
<select id="selectStudyDate">
|
<select id="selectStudyDate">
|
||||||
{{#each patientStudies}}
|
{{#each patientStudies}}
|
||||||
<option value="{{studyInstanceUid}}">{{studyDate}}</option>
|
<option value="{{studyInstanceUid}}">{{studyDate}}</option>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</select>
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
@ -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);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -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');
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -6,6 +6,9 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="studyBrowserContainer">
|
<div class="studyBrowserContainer">
|
||||||
|
{{#if studyDateIsShown}}
|
||||||
|
{{> studyDateList}}
|
||||||
|
{{/if}}
|
||||||
{{> studyBrowser}}
|
{{> studyBrowser}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user