diff --git a/caimira/apps/calculator/model_generator.py b/caimira/apps/calculator/model_generator.py index 4919b6c2..475ca028 100644 --- a/caimira/apps/calculator/model_generator.py +++ b/caimira/apps/calculator/model_generator.py @@ -60,7 +60,7 @@ class FormData: geographic_population: int geographic_cases: int ascertainment_bias: str - p_recurrent_option: str + exposure_option: str mask_type: str mask_wearing_option: str mechanical_ventilation_type: str @@ -123,7 +123,7 @@ class FormData: 'geographic_population': 0, 'geographic_cases': 0, 'ascertainment_bias': 'confidence_low', - 'p_recurrent_option': 'p_recurrent_event', + 'exposure_option': 'p_deterministic_exposure', 'mask_type': 'Type I', 'mask_wearing_option': 'mask_off', 'mechanical_ventilation_type': 'not-applicable', diff --git a/caimira/apps/calculator/report_generator.py b/caimira/apps/calculator/report_generator.py index 7317f2b0..a4cadd35 100644 --- a/caimira/apps/calculator/report_generator.py +++ b/caimira/apps/calculator/report_generator.py @@ -311,7 +311,7 @@ def comparison_report( else: statistics = {} - if (form.short_range_option == "short_range_yes" and form.p_recurrent_option == "p_specific_event"): + if (form.short_range_option == "short_range_yes" and form.exposure_option == "p_probabilistic_exposure"): specific_event = True else: specific_event = False diff --git a/caimira/apps/calculator/static/js/form.js b/caimira/apps/calculator/static/js/form.js index 5e551b7d..79a0b277 100644 --- a/caimira/apps/calculator/static/js/form.js +++ b/caimira/apps/calculator/static/js/form.js @@ -61,10 +61,10 @@ function require_fields(obj) { case "hepa_no": require_hepa(false); break; - case "p_specific_event": + case "p_probabilistic_exposure": require_population(true); break; - case "p_recurrent_event": + case "p_deterministic_exposure": require_population(false); break; case "mask_on": @@ -282,7 +282,7 @@ function on_hepa_option_change() { } function on_p_recurrent_change() { - p_recurrent = $('input[type=radio][name=p_recurrent_option]') + p_recurrent = $('input[type=radio][name=exposure_option]') p_recurrent.each(function (index) { if (this.checked) { getChildElement($(this)).show(); @@ -568,7 +568,7 @@ function validate_form(form) { } // Validate cases < population - if ($("#p_specific_event").prop('checked')) { + if ($("#p_probabilistic_exposure").prop('checked')) { var geographicPopulationObj = document.getElementById("geographic_population"); var geographicCasesObj = document.getElementById("geographic_cases"); removeErrorFor(geographicCasesObj); @@ -911,9 +911,9 @@ $(document).ready(function () { // Call the function now to handle forward/back button presses in the browser. on_hepa_option_change(); - // When the p_recurrent_option changes we want to make its respective + // When the exposure_option changes we want to make its respective // children show/hide. - $("input[type=radio][name=p_recurrent_option]").change(on_p_recurrent_change); + $("input[type=radio][name=exposure_option]").change(on_p_recurrent_change); // Call the function now to handle forward/back button presses in the browser. on_p_recurrent_change(); diff --git a/caimira/apps/templates/base/calculator.form.html.j2 b/caimira/apps/templates/base/calculator.form.html.j2 index 35bbd69f..c658a7d3 100644 --- a/caimira/apps/templates/base/calculator.form.html.j2 +++ b/caimira/apps/templates/base/calculator.form.html.j2 @@ -303,7 +303,8 @@ Event data: -
+
?

@@ -312,20 +313,20 @@
-
-
-
+
+ +
- - - - - -
- ? +
+ +
-