Add basic About, Missions, and Beliefs webpages (Fixes #15,

Fixes #14)
This commit is contained in:
meichthys 2026-02-17 06:27:59 +00:00
parent 148a6d9f87
commit d14b6c2567
2 changed files with 108 additions and 1 deletions

View File

@ -1 +1,107 @@
[]
[
{
"breadcrumbs": null,
"content_type": "HTML",
"context_script": "",
"css": null,
"docstatus": 0,
"doctype": "Web Page",
"dynamic_route": 0,
"dynamic_template": 0,
"enable_comments": 0,
"end_date": null,
"full_width": 0,
"header": null,
"insert_style": 0,
"javascript": null,
"main_section": null,
"main_section_html": "<div class=\"row\"> \n{% set belief_docs = frappe.get_list(\"Church Belief\", fields=[\"name\"]) %} \n{% for doc in belief_docs %}\n {% set belief = frappe.get_doc(\"Church Belief\", doc.name) %}\n <div class=\"col-md-4 mb-4\"> \n <div class=\"card h-100\"> \n <div class=\"card-header\"><strong>{{ belief.title }}</strong></div> \n <div class=\"card-body\"> \n <p class=\"card-text\">{{ belief.belief_statement }}</p> \n </div>\n <div class=\"card-footer\">\n {% for row in belief.bible_references %} \n <div class=\"small text-muted\">{{ row.reference }}</div> \n {% endfor %} \n </div>\n </div> \n </div> \n{% endfor %} \n</div>",
"main_section_md": "",
"meta_description": null,
"meta_image": null,
"meta_title": null,
"modified": "2026-02-17 00:30:17.442457",
"module": "Church Foundations",
"name": "beliefs",
"page_blocks": [],
"published": 1,
"route": "beliefs",
"show_sidebar": 0,
"show_title": 1,
"slideshow": null,
"start_date": null,
"text_align": "Center",
"title": "Beliefs",
"website_sidebar": null
},
{
"breadcrumbs": null,
"content_type": "HTML",
"context_script": "",
"css": null,
"docstatus": 0,
"doctype": "Web Page",
"dynamic_route": 0,
"dynamic_template": 0,
"enable_comments": 0,
"end_date": null,
"full_width": 0,
"header": null,
"insert_style": 0,
"javascript": null,
"main_section": null,
"main_section_html": "<div class=\"row\"> \n{% set missionary_docs = frappe.get_list(\"Church Missionary\", fields=[\"name\"]) %} \n{% for doc in missionary_docs %}\n {% set missionary = frappe.get_doc(\"Church Missionary\", doc.name) %}\n <div class=\"col-md-4 mb-4\"> \n <div class=\"card h-100\"> \n <div class=\"card-header\">\n <strong>\n {{ missionary.title }}\n <br>\n {% if missionary.agency %}\n ({{ missionary.agency }})\n {% endif %}\n </strong></div> \n <div class=\"card-body\"> \n <p class=\"card-text\">\n <img src=\"{{ missionary.photo }}\">\n </p> \n </div>\n <div class=\"card-footer\">\n <div class=\"small text-muted\">\n <a href=\"mailto:{{ missionary.email }}\">{{ missionary.email }}</a>\n |\n {% set country_code = frappe.db.get_value(\"Country\", missionary.country, \"code\") %}\n {% if country_code %}\n <img src=\"https://flagcdn.com/w40/{{ country_code | lower }}.png\" \n alt=\"{{ missionary.country }} flag\"\n title=\"{{ missionary.country }} flag\" \n style=\"width: 2em\">\n |&nbsp;\n {% endif %}\n <a href=\"{{ missionary.website }}\" target=\"_blank\">{{ missionary.website }}</a>\n </div> \n </div>\n </div> \n </div> \n{% endfor %} \n</div>",
"main_section_md": "",
"meta_description": null,
"meta_image": null,
"meta_title": null,
"modified": "2026-02-17 01:07:55.814988",
"module": "Church Missions",
"name": "missionaries",
"page_blocks": [],
"published": 1,
"route": "missions",
"show_sidebar": 0,
"show_title": 1,
"slideshow": null,
"start_date": null,
"text_align": "Center",
"title": "Missions",
"website_sidebar": null
},
{
"breadcrumbs": null,
"content_type": "HTML",
"context_script": "",
"css": null,
"docstatus": 0,
"doctype": "Web Page",
"dynamic_route": 0,
"dynamic_template": 0,
"enable_comments": 0,
"end_date": null,
"full_width": 0,
"header": null,
"insert_style": 0,
"javascript": null,
"main_section": null,
"main_section_html": "{% set information = frappe.get_doc(\"Church Information\") %} \n<div class=\"row\"> \n <div class=\"col-lg-12 mb-12\"> \n <div class=\"card h-100\"> \n <div class=\"card-header\">\n <strong>{{ information.legal_name }}</strong>\n {% if information.founding_date %}\n <br>\n Established: {{ information.founding_date }}\n {% endif %}\n </div> \n <div class=\"card-body\"> \n <p class=\"card-text\">\n {{ information.about }}\n </p> \n </div>\n <div class=\"card-footer\">\n <div class=\"small text-muted\">\n {% if information.mission_statement %}\n <strong>Mission Statement</strong>\n <br>\n \"{{ information.mission_statement }}\"\n {% endif %}\n </div> \n </div>\n </div> \n </div> \n</div>",
"main_section_md": "",
"meta_description": null,
"meta_image": null,
"meta_title": null,
"modified": "2026-02-17 01:24:21.666748",
"module": "Church Foundations",
"name": "about",
"page_blocks": [],
"published": 1,
"route": "about",
"show_sidebar": 0,
"show_title": 1,
"slideshow": null,
"start_date": null,
"text_align": "Center",
"title": "About",
"website_sidebar": null
}
]

View File

@ -224,6 +224,7 @@ fixtures = [
]
],
},
{"dt": "Web Page", "filters": [["module", "like", "%Church%"]]},
{"dt": "Website Settings"},
]
# Apps