mirror of
https://github.com/meichthys/church.git
synced 2026-03-01 14:50:05 +00:00
parent
d993f606ff
commit
1366f26eb5
@ -19,6 +19,7 @@
|
||||
"mailing_address",
|
||||
"physical_address",
|
||||
"website",
|
||||
"private",
|
||||
"support_section",
|
||||
"support_start_date",
|
||||
"support_end_date",
|
||||
@ -173,7 +174,6 @@
|
||||
"fieldtype": "Date",
|
||||
"in_filter": 1,
|
||||
"in_preview": 1,
|
||||
"in_standard_filter": 1,
|
||||
"label": "Support Start Date",
|
||||
"mandatory_depends_on": "eval:doc.support_amount>0"
|
||||
},
|
||||
@ -181,13 +181,24 @@
|
||||
"fieldname": "support_end_date",
|
||||
"fieldtype": "Date",
|
||||
"label": "Support End Date"
|
||||
},
|
||||
{
|
||||
"default": "0",
|
||||
"description": "Prevents missionary information from displaying on missions page of website.",
|
||||
"fieldname": "private",
|
||||
"fieldtype": "Check",
|
||||
"in_filter": 1,
|
||||
"in_list_view": 1,
|
||||
"in_preview": 1,
|
||||
"in_standard_filter": 1,
|
||||
"label": "Private"
|
||||
}
|
||||
],
|
||||
"grid_page_length": 50,
|
||||
"image_field": "photo",
|
||||
"index_web_pages_for_search": 1,
|
||||
"links": [],
|
||||
"modified": "2026-02-17 23:10:10.683044",
|
||||
"modified": "2026-02-17 23:45:27.482806",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Church Missions",
|
||||
"name": "Church Missionary",
|
||||
|
||||
@ -50,12 +50,12 @@
|
||||
"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 | \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_html": "<div class=\"row\"> \n{% set missionary_docs = frappe.get_list(\"Church Missionary\", fields=[\"name\"]) %} \n{% for doc in missionary_docs if not frappe.get_doc(\"Church Missionary\", doc.name).private %}\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 {% if missionary.photo %} \n <p class=\"card-text\">\n <img src=\"{{ missionary.photo }}\">\n </p> \n {% endif %}\n </div>\n <div class=\"card-footer\">\n <div class=\"small text-muted\">\n {% if missionary.email %} \n <a href=\"mailto:{{ missionary.email }}\">{{ missionary.email }} </a>\n {% endif %}\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 {% endif %}\n {% if missionary.website %}\n <a href=\"{{ missionary.website }}\" target=\"_blank\"> {{ missionary.website }}</a>\n {% endif %}\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",
|
||||
"modified": "2026-02-17 23:44:06.319449",
|
||||
"module": "Church Missions",
|
||||
"name": "missionaries",
|
||||
"page_blocks": [],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user