From 741e9c0458af1fd6f8945293ef23c7e43dabfbdb Mon Sep 17 00:00:00 2001 From: meichthys Date: Wed, 4 Mar 2026 04:30:46 +0000 Subject: [PATCH] customize the 'About Us Settings' form --- .../custom/about_us_settings.json | 139 ++++++++++++++++++ church/fixtures/about_us_settings.json | 15 ++ church/hooks.py | 1 + 3 files changed, 155 insertions(+) create mode 100644 church/church_customizations/custom/about_us_settings.json create mode 100644 church/fixtures/about_us_settings.json diff --git a/church/church_customizations/custom/about_us_settings.json b/church/church_customizations/custom/about_us_settings.json new file mode 100644 index 0000000..3fe333a --- /dev/null +++ b/church/church_customizations/custom/about_us_settings.json @@ -0,0 +1,139 @@ +{ + "custom_fields": [], + "custom_perms": [], + "doctype": "About Us Settings", + "links": [], + "property_setters": [ + { + "default_value": null, + "doc_type": "About Us Settings", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "company_introduction", + "is_system_generated": 0, + "name": "About Us Settings-company_introduction-label", + "property": "label", + "property_type": "Data", + "row_name": null, + "value": "Church Introduction" + }, + { + "default_value": null, + "doc_type": "About Us Settings", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "sb0", + "is_system_generated": 0, + "name": "About Us Settings-sb0-label", + "property": "label", + "property_type": "Data", + "row_name": null, + "value": "Church History" + }, + { + "default_value": null, + "doc_type": "About Us Settings", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "company_history_heading", + "is_system_generated": 0, + "name": "About Us Settings-company_history_heading-label", + "property": "label", + "property_type": "Data", + "row_name": null, + "value": "Church History Heading" + }, + { + "default_value": null, + "doc_type": "About Us Settings", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "company_history_heading", + "is_system_generated": 0, + "name": "About Us Settings-company_history_heading-description", + "property": "description", + "property_type": "Text", + "row_name": null, + "value": "Church History" + }, + { + "default_value": null, + "doc_type": "About Us Settings", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "company_history", + "is_system_generated": 0, + "name": "About Us Settings-company_history-label", + "property": "label", + "property_type": "Data", + "row_name": null, + "value": "Church History" + }, + { + "default_value": null, + "doc_type": "About Us Settings", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "sb1", + "is_system_generated": 0, + "name": "About Us Settings-sb1-label", + "property": "label", + "property_type": "Data", + "row_name": null, + "value": "Church Leadership" + }, + { + "default_value": null, + "doc_type": "About Us Settings", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "team_members_heading", + "is_system_generated": 0, + "name": "About Us Settings-team_members_heading-label", + "property": "label", + "property_type": "Data", + "row_name": null, + "value": "Leadership Heading" + }, + { + "default_value": null, + "doc_type": "About Us Settings", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "team_members_heading", + "is_system_generated": 0, + "name": "About Us Settings-team_members_heading-description", + "property": "description", + "property_type": "Text", + "row_name": null, + "value": "\"Church Leadership\" or \"Pastoral Staff\"" + }, + { + "default_value": null, + "doc_type": "About Us Settings", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "team_members", + "is_system_generated": 0, + "name": "About Us Settings-team_members-label", + "property": "label", + "property_type": "Data", + "row_name": null, + "value": "Church Leadership" + }, + { + "default_value": null, + "doc_type": "About Us Settings", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "team_members_subtitle", + "is_system_generated": 0, + "name": "About Us Settings-team_members_subtitle-label", + "property": "label", + "property_type": "Data", + "row_name": null, + "value": "Leadership Subtitle" + } + ], + "sync_on_migrate": 1 +} diff --git a/church/fixtures/about_us_settings.json b/church/fixtures/about_us_settings.json new file mode 100644 index 0000000..8795c82 --- /dev/null +++ b/church/fixtures/about_us_settings.json @@ -0,0 +1,15 @@ +[ + { + "company_history": [], + "company_history_heading": "Church History", + "company_introduction": "

We are a congregation of believers committed to worshipping God, growing in His Word, and serving one another and our community in love.

To learn more about what we believe, visit our Beliefs page. To see how we support missionaries around the world, visit our Missions page.

", + "docstatus": 0, + "doctype": "About Us Settings", + "footer": "", + "name": "About Us Settings", + "page_title": "About Our Church", + "team_members": [], + "team_members_heading": "Our Leadership", + "team_members_subtitle": "" + } +] diff --git a/church/hooks.py b/church/hooks.py index 0f39a0d..8c5c7d9 100644 --- a/church/hooks.py +++ b/church/hooks.py @@ -13,6 +13,7 @@ website_context = { } fixtures = [ + {"dt": "About Us Settings"}, { "dt": "Bible Book", },