Permalink
Browse files

api web demo

  • Loading branch information...
1 parent 73c0262 commit 67f5c1839d9ec6589eb929b4a99fdede12b48391 valeria.lecca committed Oct 13, 2014
Showing with 2,693 additions and 242 deletions.
  1. +98 −0 examples/most/static/js/demo/exam.js
  2. +58 −0 examples/most/static/js/demo/section.js
  3. +108 −0 examples/most/static/js/demo/visit.js
  4. +18 −0 examples/most/templates/base_modal.html
  5. +0 −10 examples/most/templates/exams/base_modal.html
  6. +135 −9 examples/most/templates/exams/demo.html
  7. +1 −10 examples/most/templates/exams/exam.html
  8. +149 −9 examples/most/templates/exams/exam/add_section.html
  9. +111 −9 examples/most/templates/exams/exam/delete.html
  10. +110 −9 examples/most/templates/exams/exam/get_info.html
  11. +110 −9 examples/most/templates/exams/exam/list_sections.html
  12. +69 −9 examples/most/templates/exams/exam/new.html
  13. +129 −9 examples/most/templates/exams/exam/remove_section.html
  14. +67 −10 examples/most/templates/exams/exam/search.html
  15. +156 −9 examples/most/templates/exams/exam/set_clinician.html
  16. +1 −10 examples/most/templates/exams/section.html
  17. +99 −9 examples/most/templates/exams/section/delete.html
  18. +98 −9 examples/most/templates/exams/section/get_info.html
  19. +69 −9 examples/most/templates/exams/section/new.html
  20. +67 −10 examples/most/templates/exams/section/search.html
  21. +1 −10 examples/most/templates/exams/visit.html
  22. +159 −9 examples/most/templates/exams/visit/add_exam.html
  23. +109 −9 examples/most/templates/exams/visit/delete.html
  24. +108 −9 examples/most/templates/exams/visit/get_full_info.html
  25. +108 −9 examples/most/templates/exams/visit/get_info.html
  26. +108 −9 examples/most/templates/exams/visit/list_exams.html
  27. +69 −9 examples/most/templates/exams/visit/new.html
  28. +152 −9 examples/most/templates/exams/visit/remove_exam.html
  29. +67 −10 examples/most/templates/exams/visit/search.html
  30. +157 −9 examples/most/templates/exams/visit/set_parent_visit.html
  31. +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

Please sign in to comment.