From 4a706fbf5069f7eebcfec11c3c0223969afd4cb9 Mon Sep 17 00:00:00 2001 From: emjay0921 Date: Tue, 10 Feb 2026 09:17:38 +0800 Subject: [PATCH 1/4] fix(spp_area, spp_gis_report): add labels and help to classification and GIS reference fields --- spp_area/views/area_base.xml | 105 +++++++++++++++++++--------- spp_gis_report/views/area_views.xml | 20 ++++-- 2 files changed, 89 insertions(+), 36 deletions(-) diff --git a/spp_area/views/area_base.xml b/spp_area/views/area_base.xml index 94b0fc0..8718658 100644 --- a/spp_area/views/area_base.xml +++ b/spp_area/views/area_base.xml @@ -5,15 +5,20 @@ 1 - - + + - + @@ -27,56 +32,74 @@
-
- + - - - + + + - - - + + + - + @@ -84,10 +107,14 @@ - - - - + + + + @@ -106,8 +133,16 @@ - - + + @@ -123,7 +158,8 @@

Create a new Area! -

+

+

Click the create button to enter the information of the Area.

@@ -151,7 +187,12 @@ sequence="0" /> - + - - - + + + - + From a85ea4bc2c17cbc3cf9ef82d8c0440e85a57cb71 Mon Sep 17 00:00:00 2001 From: emjay0921 Date: Tue, 10 Feb 2026 09:26:50 +0800 Subject: [PATCH 2/4] fix(spp_area, spp_gis_report): move GIS reference data outside classification group to fix labels --- spp_area/views/area_base.xml | 2 +- spp_gis_report/views/area_views.xml | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/spp_area/views/area_base.xml b/spp_area/views/area_base.xml index 8718658..57836c2 100644 --- a/spp_area/views/area_base.xml +++ b/spp_area/views/area_base.xml @@ -61,7 +61,7 @@ - + 20 - - + + +
+ These fields are populated from external sources such as national census data or official estimates. + They are used for normalization in GIS reports (e.g., per-capita or per-household calculations). +
Date: Tue, 10 Feb 2026 09:27:51 +0800 Subject: [PATCH 3/4] fix(spp_gis_report): make GIS reference data fields readonly --- spp_gis_report/views/area_views.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spp_gis_report/views/area_views.xml b/spp_gis_report/views/area_views.xml index 698c5e3..f3b37fc 100644 --- a/spp_gis_report/views/area_views.xml +++ b/spp_gis_report/views/area_views.xml @@ -24,20 +24,24 @@ Part of OpenSPP. See LICENSE file for full copyright and licensing details. From baaa41911de17ff797925449fdff23aa89d2907d Mon Sep 17 00:00:00 2001 From: emjay0921 Date: Tue, 10 Feb 2026 09:29:50 +0800 Subject: [PATCH 4/4] =?UTF-8?q?fix(spp=5Fgis=5Freport):=20use=20km=C2=B2?= =?UTF-8?q?=20symbol,=20move=20help=20text=20to=20model=20definitions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spp_area/views/area_base.xml | 2 +- spp_gis_report/models/area_ext.py | 8 ++++---- spp_gis_report/views/area_views.xml | 24 ++++-------------------- 3 files changed, 9 insertions(+), 25 deletions(-) diff --git a/spp_area/views/area_base.xml b/spp_area/views/area_base.xml index 57836c2..16b7131 100644 --- a/spp_area/views/area_base.xml +++ b/spp_area/views/area_base.xml @@ -85,7 +85,7 @@ /> diff --git a/spp_gis_report/models/area_ext.py b/spp_gis_report/models/area_ext.py index 6afc8e1..c6b720f 100644 --- a/spp_gis_report/models/area_ext.py +++ b/spp_gis_report/models/area_ext.py @@ -17,20 +17,20 @@ class Area(models.Model): # ===== Reference Data for Normalization ===== population = fields.Integer( "Population", - help="Total population from census or estimate", + help="Total population from census or official estimate. Used for per-capita normalization in GIS reports.", ) population_date = fields.Date( "Population Data Date", - help="Date of population data", + help="Date when the population data was collected or published.", ) population_source = fields.Char( "Population Data Source", - help="Source of population data (e.g., 'National Census 2020')", + help="Source of the population data, e.g., 'National Census 2020' or 'UNFPA Estimate'.", ) household_count = fields.Integer( "Household Count", - help="Number of households in this area", + help="Number of households in this area. Used for per-household normalization in GIS reports.", ) # ===== Registry Counts (Updated via scheduled refresh) ===== diff --git a/spp_gis_report/views/area_views.xml b/spp_gis_report/views/area_views.xml index f3b37fc..c3dcef9 100644 --- a/spp_gis_report/views/area_views.xml +++ b/spp_gis_report/views/area_views.xml @@ -22,28 +22,12 @@ Part of OpenSPP. See LICENSE file for full copyright and licensing details. - - - + + + - +