From 62efe8809e2cdfc84666dbd5e987a4ce473a047a Mon Sep 17 00:00:00 2001 From: Alvin Li Date: Mon, 9 Sep 2013 10:10:17 +0800 Subject: * finished modifying 'PM_TYPE' record for 'EditHistoryData' page * synced '97suifang-front' TODO: * to merge changes of '97suifang-front' --- .../templates/indicator/popup/EditHistoryData.html | 31 ++++++++++++---------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to '97suifangqa/apps/indicator/templates') diff --git a/97suifangqa/apps/indicator/templates/indicator/popup/EditHistoryData.html b/97suifangqa/apps/indicator/templates/indicator/popup/EditHistoryData.html index 70ec582..340057b 100644 --- a/97suifangqa/apps/indicator/templates/indicator/popup/EditHistoryData.html +++ b/97suifangqa/apps/indicator/templates/indicator/popup/EditHistoryData.html @@ -44,15 +44,10 @@ 'PM_TYPE': '{{ indicator_obj.PM_TYPE }}' }; var data_type = '{{ indicator_obj.dataType }}'; + // indicator record + var record = $.parseJSON('{{ record_json|safe }}'); // indicator confine - var confine = { - 'val_norm': '{{ confine_dict|dict_get:"val_norm" }}', - 'human_min': {{ confine_dict|dict_get:"human_min" }}, - 'human_max': {{ confine_dict|dict_get:"human_max" }}, - 'math_min': {{ confine_dict|dict_get:"math_min" }}, - 'math_max': {{ confine_dict|dict_get:"math_max" }}, - 'math_range_html': '{{ confine_dict|dict_get:"math_range_html" }}' - }; + var confine = $.parseJSON('{{ confine_json|safe }}'); // range symbol: var range_symbol = '~'; @@ -133,14 +128,22 @@ {% elif indicator_obj.dataType == indicator_obj.PM_TYPE %} {# PM_TYPE #} -
- - 阴性(-) +
+ + + + +
+ {% else %} {# UNKNOWN TYPE #} ERROR: unknown data type -- cgit v1.2.2