Permalink
Please sign in to comment.
Showing
with
2,693 additions
and 242 deletions.
- +98 −0 examples/most/static/js/demo/exam.js
- +58 −0 examples/most/static/js/demo/section.js
- +108 −0 examples/most/static/js/demo/visit.js
- +18 −0 examples/most/templates/base_modal.html
- +0 −10 examples/most/templates/exams/base_modal.html
- +135 −9 examples/most/templates/exams/demo.html
- +1 −10 examples/most/templates/exams/exam.html
- +149 −9 examples/most/templates/exams/exam/add_section.html
- +111 −9 examples/most/templates/exams/exam/delete.html
- +110 −9 examples/most/templates/exams/exam/get_info.html
- +110 −9 examples/most/templates/exams/exam/list_sections.html
- +69 −9 examples/most/templates/exams/exam/new.html
- +129 −9 examples/most/templates/exams/exam/remove_section.html
- +67 −10 examples/most/templates/exams/exam/search.html
- +156 −9 examples/most/templates/exams/exam/set_clinician.html
- +1 −10 examples/most/templates/exams/section.html
- +99 −9 examples/most/templates/exams/section/delete.html
- +98 −9 examples/most/templates/exams/section/get_info.html
- +69 −9 examples/most/templates/exams/section/new.html
- +67 −10 examples/most/templates/exams/section/search.html
- +1 −10 examples/most/templates/exams/visit.html
- +159 −9 examples/most/templates/exams/visit/add_exam.html
- +109 −9 examples/most/templates/exams/visit/delete.html
- +108 −9 examples/most/templates/exams/visit/get_full_info.html
- +108 −9 examples/most/templates/exams/visit/get_info.html
- +108 −9 examples/most/templates/exams/visit/list_exams.html
- +69 −9 examples/most/templates/exams/visit/new.html
- +152 −9 examples/most/templates/exams/visit/remove_exam.html
- +67 −10 examples/most/templates/exams/visit/search.html
- +157 −9 examples/most/templates/exams/visit/set_parent_visit.html
- +2 −1 src/most/web/exams/models.py
| @@ -0,0 +1,98 @@ | ||
| +/*! | ||
| + * Project MOST - Moving Outcomes to Standard Telemedicine Practice | ||
| + * http://most.crs4.it/ | ||
| + * | ||
| + * Copyright 2014, CRS4 srl. (http://www.crs4.it/) | ||
| + * Dual licensed under the MIT or GPL Version 2 licenses. | ||
| + * See license-GPLv2.txt or license-MIT.txt | ||
| + */ | ||
| + | ||
| +$(function() { | ||
| + $('#exam_func_1').click(function(){ | ||
| + console.log('in exam_func_1 click event'); | ||
| + $( '#api-launcher' ).load('/exam/new/', {'caller':$( this ).text()}, function() { | ||
| + console.log('loaded'); | ||
| + $( '#api-launcher' ).modal().show(); | ||
| + }) | ||
| + }); | ||
| +}); | ||
| + | ||
| +$(function() { | ||
| + $('#exam_func_2').click(function(){ | ||
| + console.log('in exam_func_2 click event'); | ||
| + $( '#api-launcher' ).load('/exam/edit/', {'caller':$( this ).text()}, function() { | ||
| + console.log('loaded'); | ||
| + $( '#api-launcher' ).modal().show(); | ||
| + }) | ||
| + }); | ||
| +}); | ||
| + | ||
| +$(function() { | ||
| + $('#exam_func_3').click(function(){ | ||
| + console.log('in exam_func_3 click event'); | ||
| + $( '#api-launcher' ).load('/exam/delete/', {'caller':$( this ).text()}, function() { | ||
| + console.log('loaded'); | ||
| + $( '#api-launcher' ).modal().show(); | ||
| + }) | ||
| + }); | ||
| +}); | ||
| + | ||
| +$(function() { | ||
| + $('#exam_func_4').click(function(){ | ||
| + console.log('in exam_func_4 click event'); | ||
| + $( '#api-launcher' ).load('/exam/search/', {'caller':$( this ).text()}, function() { | ||
| + console.log('loaded'); | ||
| + $( '#api-launcher' ).modal().show(); | ||
| + }) | ||
| + }); | ||
| +}); | ||
| + | ||
| +$(function() { | ||
| + $('#exam_func_5').click(function(){ | ||
| + console.log('in exam_func_5 click event'); | ||
| + $( '#api-launcher' ).load('/exam/get_info/', {'caller':$( this ).text()}, function() { | ||
| + console.log('loaded'); | ||
| + $( '#api-launcher' ).modal().show(); | ||
| + }) | ||
| + }); | ||
| +}); | ||
| + | ||
| +$(function() { | ||
| + $('#exam_func_6').click(function(){ | ||
| + console.log('in exam_func_6 click event'); | ||
| + $( '#api-launcher' ).load('/exam/list_sections/', {'caller':$( this ).text()}, function() { | ||
| + console.log('loaded'); | ||
| + $( '#api-launcher' ).modal().show(); | ||
| + }) | ||
| + }); | ||
| +}); | ||
| + | ||
| +$(function() { | ||
| + $('#exam_func_7').click(function(){ | ||
| + console.log('in exam_func_7 click event'); | ||
| + $( '#api-launcher' ).load('/exam/add_section/', {'caller':$( this ).text()}, function() { | ||
| + console.log('loaded'); | ||
| + $( '#api-launcher' ).modal().show(); | ||
| + }) | ||
| + }); | ||
| +}); | ||
| + | ||
| +$(function() { | ||
| + $('#exam_func_8').click(function(){ | ||
| + console.log('in exam_func_8 click event'); | ||
| + $( '#api-launcher' ).load('/exam/remove_section/', {'caller':$( this ).text()}, function() { | ||
| + console.log('loaded'); | ||
| + $( '#api-launcher' ).modal().show(); | ||
| + }) | ||
| + }); | ||
| +}); | ||
| + | ||
| +$(function() { | ||
| + $('#exam_func_9').click(function(){ | ||
| + console.log('in exam_func_9 click event'); | ||
| + $( '#api-launcher' ).load('/exam/set_clinician/', {'caller':$( this ).text()}, function() { | ||
| + console.log('loaded'); | ||
| + $( '#api-launcher' ).modal().show(); | ||
| + }) | ||
| + }); | ||
| +}); |
| @@ -0,0 +1,58 @@ | ||
| +/*! | ||
| + * Project MOST - Moving Outcomes to Standard Telemedicine Practice | ||
| + * http://most.crs4.it/ | ||
| + * | ||
| + * Copyright 2014, CRS4 srl. (http://www.crs4.it/) | ||
| + * Dual licensed under the MIT or GPL Version 2 licenses. | ||
| + * See license-GPLv2.txt or license-MIT.txt | ||
| + */ | ||
| + | ||
| +$(function() { | ||
| + $('#section_func_1').click(function(){ | ||
| + console.log('in section_func_1 click event'); | ||
| + $( '#api-launcher' ).load('/section/new/', {'caller':$( this ).text()}, function() { | ||
| + console.log('loaded'); | ||
| + $( '#api-launcher' ).modal().show(); | ||
| + }) | ||
| + }); | ||
| +}); | ||
| + | ||
| +$(function() { | ||
| + $('#section_func_2').click(function(){ | ||
| + console.log('in section_func_2 click event'); | ||
| + $( '#api-launcher' ).load('/section/edit/', {'caller':$( this ).text()}, function() { | ||
| + console.log('loaded'); | ||
| + $( '#api-launcher' ).modal().show(); | ||
| + }) | ||
| + }); | ||
| +}); | ||
| + | ||
| +$(function() { | ||
| + $('#section_func_3').click(function(){ | ||
| + console.log('in section_func_3 click event'); | ||
| + $( '#api-launcher' ).load('/section/delete/', {'caller':$( this ).text()}, function() { | ||
| + console.log('loaded'); | ||
| + $( '#api-launcher' ).modal().show(); | ||
| + }) | ||
| + }); | ||
| +}); | ||
| + | ||
| +$(function() { | ||
| + $('#section_func_4').click(function(){ | ||
| + console.log('in section_func_4 click event'); | ||
| + $( '#api-launcher' ).load('/section/search/', {'caller':$( this ).text()}, function() { | ||
| + console.log('loaded'); | ||
| + $( '#api-launcher' ).modal().show(); | ||
| + }) | ||
| + }); | ||
| +}); | ||
| + | ||
| +$(function() { | ||
| + $('#section_func_5').click(function(){ | ||
| + console.log('in section_func_5 click event'); | ||
| + $( '#api-launcher' ).load('/section/get_info/', {'caller':$( this ).text()}, function() { | ||
| + console.log('loaded'); | ||
| + $( '#api-launcher' ).modal().show(); | ||
| + }) | ||
| + }); | ||
| +}); |
| @@ -0,0 +1,108 @@ | ||
| +/*! | ||
| + * Project MOST - Moving Outcomes to Standard Telemedicine Practice | ||
| + * http://most.crs4.it/ | ||
| + * | ||
| + * Copyright 2014, CRS4 srl. (http://www.crs4.it/) | ||
| + * Dual licensed under the MIT or GPL Version 2 licenses. | ||
| + * See license-GPLv2.txt or license-MIT.txt | ||
| + */ | ||
| + | ||
| +$(function() { | ||
| + $('#visit_func_1').click(function(){ | ||
| + console.log('in visit_func_1 click event'); | ||
| + $( '#api-launcher' ).load('/visit/new/', {'caller':$( this ).text()}, function() { | ||
| + console.log('loaded'); | ||
| + $( '#api-launcher' ).modal().show(); | ||
| + }) | ||
| + }); | ||
| +}); | ||
| + | ||
| +$(function() { | ||
| + $('#visit_func_2').click(function(){ | ||
| + console.log('in visit_func_2 click event'); | ||
| + $( '#api-launcher' ).load('/visit/edit/', {'caller':$( this ).text()}, function() { | ||
| + console.log('loaded'); | ||
| + $( '#api-launcher' ).modal().show(); | ||
| + }) | ||
| + }); | ||
| +}); | ||
| + | ||
| +$(function() { | ||
| + $('#visit_func_3').click(function(){ | ||
| + console.log('in visit_func_3 click event'); | ||
| + $( '#api-launcher' ).load('/visit/delete/', {'caller':$( this ).text()}, function() { | ||
| + console.log('loaded'); | ||
| + $( '#api-launcher' ).modal().show(); | ||
| + }) | ||
| + }); | ||
| +}); | ||
| + | ||
| +$(function() { | ||
| + $('#visit_func_4').click(function(){ | ||
| + console.log('in visit_func_4 click event'); | ||
| + $( '#api-launcher' ).load('/visit/search/', {'caller':$( this ).text()}, function() { | ||
| + console.log('loaded'); | ||
| + $( '#api-launcher' ).modal().show(); | ||
| + }) | ||
| + }); | ||
| +}); | ||
| + | ||
| +$(function() { | ||
| + $('#visit_func_5').click(function(){ | ||
| + console.log('in visit_func_5 click event'); | ||
| + $( '#api-launcher' ).load('/visit/get_info/', {'caller':$( this ).text()}, function() { | ||
| + console.log('loaded'); | ||
| + $( '#api-launcher' ).modal().show(); | ||
| + }) | ||
| + }); | ||
| +}); | ||
| + | ||
| +$(function() { | ||
| + $('#visit_func_6').click(function(){ | ||
| + console.log('in visit_func_6 click event'); | ||
| + $( '#api-launcher' ).load('/visit/get_full_info/', {'caller':$( this ).text()}, function() { | ||
| + console.log('loaded'); | ||
| + $( '#api-launcher' ).modal().show(); | ||
| + }) | ||
| + }); | ||
| +}); | ||
| + | ||
| +$(function() { | ||
| + $('#visit_func_7').click(function(){ | ||
| + console.log('in visit_func_7 click event'); | ||
| + $( '#api-launcher' ).load('/visit/list_exams/', {'caller':$( this ).text()}, function() { | ||
| + console.log('loaded'); | ||
| + $( '#api-launcher' ).modal().show(); | ||
| + }) | ||
| + }); | ||
| +}); | ||
| + | ||
| +$(function() { | ||
| + $('#visit_func_8').click(function(){ | ||
| + console.log('in visit_func_8 click event'); | ||
| + $( '#api-launcher' ).load('/visit/add_exam/', {'caller':$( this ).text()}, function() { | ||
| + console.log('loaded'); | ||
| + $( '#api-launcher' ).modal().show(); | ||
| + }) | ||
| + }); | ||
| +}); | ||
| + | ||
| +$(function() { | ||
| + $('#visit_func_9').click(function(){ | ||
| + console.log('in visit_func_9 click event'); | ||
| + $( '#api-launcher' ).load('/visit/remove_exam/', {'caller':$( this ).text()}, function() { | ||
| + console.log('loaded'); | ||
| + $( '#api-launcher' ).modal().show(); | ||
| + }) | ||
| + }); | ||
| +}); | ||
| + | ||
| +$(function() { | ||
| + $('#visit_func_10').click(function(){ | ||
| + console.log('in visit_func_10 click event'); | ||
| + $( '#api-launcher' ).load('/visit/set_parent_visit/', {'caller':$( this ).text()}, function() { | ||
| + console.log('loaded'); | ||
| + $( '#api-launcher' ).modal().show(); | ||
| + }) | ||
| + }); | ||
| +}); |
| @@ -0,0 +1,18 @@ | ||
| +<div class="modal-dialog"> | ||
| + <div class="modal-content"> | ||
| + <div class="modal-header"> | ||
| + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | ||
| + <h4 class="modal-title" id="api-launcher-title"> | ||
| + {{ api_description }} | ||
| + </h4> | ||
| + </div> | ||
| + <div class="modal-body" id="api-launcher-body"> | ||
| + {% block modal_body %} | ||
| + {% endblock %} | ||
| + </div> | ||
| + <div class="modal-footer"> | ||
| + <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> | ||
| + <!--<button type="button" class="btn btn-primary">Submit</button>--> | ||
| + </div> | ||
| + </div> | ||
| +</div> |
| @@ -1,10 +0,0 @@ | ||
| -<!DOCTYPE html> | ||
| -<html> | ||
| -<head lang="en"> | ||
| - <meta charset="UTF-8"> | ||
| - <title></title> | ||
| -</head> | ||
| -<body> | ||
| - | ||
| -</body> | ||
| -</html> |
Oops, something went wrong.
0 comments on commit
67f5c18