Skip to content

Commit

Permalink
Merge pull request #2 from akeshavan/cloudcontrol_config
Browse files Browse the repository at this point in the history
WIP: Cloudcontrol config
  • Loading branch information
ltirrell authored Jun 23, 2017
2 parents 7fd8361 + 2bfec89 commit d0b156c
Show file tree
Hide file tree
Showing 14 changed files with 479 additions and 792 deletions.
7 changes: 5 additions & 2 deletions client/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ body {
padding-top: 50px;
}

#metric-select {
margin-bottom: 10px;
margin-top: 10px;
}

.container {
margin-left: 300px
}
Expand Down Expand Up @@ -368,5 +373,3 @@ h4 td, th{
color: #333;
white-space: nowrap;
}


134 changes: 79 additions & 55 deletions imports/api/module_tables.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,58 @@ import "./methods.js"

TabularTables = {}

console.log("Meteor settings are", Meteor.settings)

Meteor.settings.public.modules.forEach(function(mod, idx, arr){
TabularTables[mod.entry_type] = new Tabular.Table({
name: mod.entry_type,
collection: Subjects,
autoWidth: false,
columns: _.map(mod.fields, function(field){
switch (field.function_name) {
case "get_filter_field":
return get_filter_field(mod.entry_type, field.id, field.name)
break;
case "get_qc_viewer":
return get_qc_viewer(mod.entry_type, field.id, field.name)
break;
case "get_qc_filter_field":
return get_qc_filter_field(mod.entry_type, field.id, field.name)
default:
return {data: field.id, title: field.name}

}
})
})
})

/*
TabularTables.demographic = new Tabular.Table({
name:"demographic",
autoWidth: false,
collection: Subjects,
columns:[
get_filter_field("demographic", "msid", "msid"),
get_filter_field("demographic", "subject_id", "Exam ID"),
get_filter_field("demographic", "Study Tag", "Study Tag"),
get_filter_field("demographic", "DCM_InstitutionName", "Site"),
get_filter_field("demographic", "metrics.DCM_InstitutionName", "Date"),
]
})
Expand All @@ -47,31 +71,31 @@ name:"freesurfer",
autoWidth: false,
collection: Subjects,
columns:[
get_filter_field("freesurfer", "subject_id", "Exam ID"),
get_qc_viewer("freesurfer", "name", "Freesurfer ID"),
get_qc_filter_field("freesurfer", "quality_check.QC", "QC"),
get_filter_field("freesurfer", "checkedBy", "checked by"),
get_filter_field("freesurfer", "quality_check.user_assign", "Assigned To"),
{data: "quality_check.notes_QC", title: "Notes" }
]
})
Expand All @@ -81,31 +105,31 @@ name:"test",
autoWidth: false,
collection: Subjects,
columns:[
get_filter_field("test", "subject_id", "Exam ID"),
get_qc_viewer("test", "name", "View Image"),
get_qc_filter_field("test", "quality_check.QC", "QC"),
get_filter_field("test", "checkedBy", "checked by"),
get_filter_field("test", "quality_check.user_assign", "Assigned To"),
{data: "quality_check.notes_QC", title: "Notes" }
]
})

*/
31 changes: 0 additions & 31 deletions imports/python_generate/generate_mindcontrol.py

This file was deleted.

120 changes: 0 additions & 120 deletions imports/python_generate/generator.json

This file was deleted.

30 changes: 0 additions & 30 deletions imports/python_generate/module_tables.js.tmpl

This file was deleted.

Loading

0 comments on commit d0b156c

Please sign in to comment.