Add prayer request webforms

This commit is contained in:
meichthys 2025-09-14 04:57:17 +00:00
parent 22e720a2c4
commit 91893c9c26
12 changed files with 324 additions and 8 deletions

View File

@ -232,6 +232,7 @@
"fieldname": "spouse",
"fieldtype": "Link",
"label": "Spouse",
"link_filters": "[[\"Church Person\",\"name\",\"!=\",\"{{doc.id}}\"]]",
"options": "Church Person"
},
{
@ -267,8 +268,13 @@
"grid_page_length": 50,
"image_field": "photo",
"index_web_pages_for_search": 1,
"links": [],
"modified": "2025-09-08 23:37:58.374411",
"links": [
{
"link_doctype": "Church Prayer Request",
"link_fieldname": "related_person"
}
],
"modified": "2025-09-13 23:58:19.453438",
"modified_by": "Administrator",
"module": "Church",
"name": "Church Person",

View File

@ -1,6 +1,6 @@
{
"actions": [],
"allow_rename": 1,
"autoname": "autoincrement",
"creation": "2025-09-13 00:16:52.698863",
"description": "A request for prayer from (or for) a `Church Person`.",
"doctype": "DocType",
@ -37,6 +37,8 @@
"description": "If this request is for a specific person, select/add the person here.",
"fieldname": "related_person",
"fieldtype": "Link",
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Related Person",
"options": "Church Person"
},
@ -48,7 +50,7 @@
"allow_in_quick_entry": 1,
"fieldname": "request",
"fieldtype": "Small Text",
"in_standard_filter": 1,
"in_list_view": 1,
"label": "Request",
"reqd": 1
},
@ -58,6 +60,7 @@
"description": "Check this if you don't want this request shared with the church body.",
"fieldname": "is_private",
"fieldtype": "Check",
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Is Private"
},
@ -65,6 +68,8 @@
"allow_in_quick_entry": 1,
"fieldname": "type",
"fieldtype": "Link",
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Type",
"options": "Church Prayer Request Type",
"reqd": 1
@ -73,10 +78,11 @@
"grid_page_length": 50,
"index_web_pages_for_search": 1,
"links": [],
"modified": "2025-09-13 22:32:49.649463",
"modified": "2025-09-14 00:53:25.841497",
"modified_by": "Administrator",
"module": "Church",
"name": "Church Prayer Request",
"naming_rule": "Autoincrement",
"owner": "Administrator",
"permissions": [
{

View File

View File

@ -0,0 +1,3 @@
frappe.ready(function() {
// bind events here
})

View File

@ -0,0 +1,136 @@
{
"allow_comments": 0,
"allow_delete": 0,
"allow_edit": 0,
"allow_incomplete": 0,
"allow_multiple": 0,
"allow_print": 0,
"anonymous": 0,
"apply_document_permissions": 1,
"button_label": "Save",
"condition_json": "[[\"Church Prayer Request\",\"status\",\"!=\",\"Answered\",false],[\"Church Prayer Request\",\"owner\",\"in\",[\"User\",null],false]]",
"creation": "2025-09-13 22:28:01.939717",
"doc_type": "Church Prayer Request",
"docstatus": 0,
"doctype": "Web Form",
"idx": 0,
"introduction_text": "<div class=\"ql-editor read-mode\"><blockquote>Be anxious for nothing, but in everything, by prayer and petition, with thanksgiving, present your requests to God.</blockquote><blockquote>~ Philipians 4:6 (BSB)</blockquote></div>",
"is_standard": 1,
"list_columns": [],
"login_required": 0,
"max_attachment_size": 0,
"modified": "2025-09-14 00:53:43.565531",
"modified_by": "Administrator",
"module": "Church",
"name": "prayer-request",
"owner": "Administrator",
"published": 1,
"route": "prayer-request",
"show_attachments": 0,
"show_list": 0,
"show_sidebar": 0,
"title": "Prayer Request ",
"web_form_fields": [
{
"allow_read_on_all_link_options": 0,
"default": "Requested",
"fieldname": "status",
"fieldtype": "Link",
"hidden": 0,
"label": "Status",
"max_length": 0,
"max_value": 0,
"options": "Church Prayer Request Status",
"precision": "",
"read_only": 0,
"reqd": 1,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"default": "",
"fieldname": "type",
"fieldtype": "Link",
"hidden": 0,
"label": "Type",
"max_length": 0,
"max_value": 0,
"options": "Church Prayer Request Type",
"precision": "",
"read_only": 0,
"reqd": 1,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "column_break_ynvf",
"fieldtype": "Column Break",
"hidden": 0,
"label": "",
"max_length": 0,
"max_value": 0,
"precision": "",
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"default": "",
"depends_on": "eval:frappe.session.user!='Guest';",
"description": "If this request is for a specific person and the person is in this list, please select the person.",
"fieldname": "related_person",
"fieldtype": "Link",
"hidden": 0,
"label": "Related Person",
"max_length": 0,
"max_value": 0,
"options": "Church Person",
"precision": "",
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "section_break_usaz",
"fieldtype": "Section Break",
"hidden": 0,
"label": "",
"max_length": 0,
"max_value": 0,
"precision": "",
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "request",
"fieldtype": "Small Text",
"hidden": 0,
"label": "Request",
"max_length": 0,
"max_value": 0,
"precision": "",
"read_only": 0,
"reqd": 1,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"default": "",
"description": "Check this if you don't want this shared with the church body.",
"fieldname": "is_private",
"fieldtype": "Check",
"hidden": 0,
"label": "Is Private",
"max_length": 0,
"max_value": 0,
"precision": "",
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
}
]
}

View File

@ -0,0 +1,5 @@
import frappe
def get_context(context):
# do your magic here
pass

View File

@ -0,0 +1,3 @@
frappe.ready(function() {
// bind events here
})

View File

@ -0,0 +1,152 @@
{
"allow_comments": 1,
"allow_delete": 0,
"allow_edit": 0,
"allow_incomplete": 0,
"allow_multiple": 0,
"allow_print": 0,
"anonymous": 1,
"apply_document_permissions": 1,
"button_label": "Save",
"condition_json": "[[\"Church Prayer Request\",\"status\",\"!=\",\"Answered\",false]]",
"creation": "2025-09-13 23:09:32.093784",
"doc_type": "Church Prayer Request",
"docstatus": 0,
"doctype": "Web Form",
"idx": 0,
"introduction_text": "<div class=\"ql-editor read-mode\"><blockquote>Be anxious for nothing, but in everything, by prayer and petition, with thanksgiving, present your requests to God.</blockquote><blockquote>~ Philipians 4:6 (BSB)</blockquote><p><br></p><p>Requests submitted via this form will not be linked to you. They will be 'anonymously' submitted.</p></div>",
"is_standard": 1,
"list_columns": [
{
"fieldname": "status",
"fieldtype": "Link",
"label": "Status"
},
{
"fieldname": "type",
"fieldtype": "Link",
"label": "Type"
},
{
"fieldname": "request",
"fieldtype": "Small Text",
"label": "Request"
}
],
"login_required": 0,
"max_attachment_size": 0,
"modified": "2025-09-14 00:54:44.944702",
"modified_by": "Administrator",
"module": "Church",
"name": "prayer-request-anonymous",
"owner": "Administrator",
"published": 1,
"route": "prayer-request-anonymous",
"show_attachments": 0,
"show_list": 0,
"show_sidebar": 0,
"title": "Prayer Request (Anonymous)",
"web_form_fields": [
{
"allow_read_on_all_link_options": 0,
"default": "Requested",
"fieldname": "status",
"fieldtype": "Link",
"hidden": 0,
"label": "Status",
"max_length": 0,
"max_value": 0,
"options": "Church Prayer Request Status",
"precision": "",
"read_only": 0,
"reqd": 1,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"default": "",
"fieldname": "type",
"fieldtype": "Link",
"hidden": 0,
"label": "Type",
"max_length": 0,
"max_value": 0,
"options": "Church Prayer Request Type",
"precision": "",
"read_only": 0,
"reqd": 1,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "column_break_ynvf",
"fieldtype": "Column Break",
"hidden": 0,
"label": "",
"max_length": 0,
"max_value": 0,
"precision": "",
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"default": "",
"depends_on": "eval:frappe.session.user!='Guest';",
"description": "If this request is for a specific person and the person is in this list, please select the person.",
"fieldname": "related_person",
"fieldtype": "Link",
"hidden": 0,
"label": "Related Person",
"max_length": 0,
"max_value": 0,
"options": "Church Person",
"precision": "",
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "section_break_usaz",
"fieldtype": "Section Break",
"hidden": 0,
"label": "",
"max_length": 0,
"max_value": 0,
"precision": "",
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "request",
"fieldtype": "Small Text",
"hidden": 0,
"label": "Request",
"max_length": 0,
"max_value": 0,
"precision": "",
"read_only": 0,
"reqd": 1,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"default": "",
"description": "Check this if you don't want this shared with the church body.",
"fieldname": "is_private",
"fieldtype": "Check",
"hidden": 0,
"label": "Is Private",
"max_length": 0,
"max_value": 0,
"precision": "",
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
}
]
}

View File

@ -0,0 +1,5 @@
import frappe
def get_context(context):
# do your magic here
pass

View File

@ -18,7 +18,7 @@
"heatmap_year": null,
"is_public": 0,
"is_standard": 1,
"last_synced_on": "2025-09-13 01:31:27.620018",
"last_synced_on": "2025-09-13 22:25:21.333704",
"modified": "2025-09-07 00:55:38.760521",
"module": "Church",
"name": "Church Collections",
@ -57,7 +57,7 @@
"heatmap_year": null,
"is_public": 0,
"is_standard": 1,
"last_synced_on": "2025-09-13 01:31:27.446501",
"last_synced_on": "2025-09-13 22:25:21.071810",
"modified": "2025-09-07 00:54:39.868404",
"module": "Church",
"name": "Church Persons",
@ -96,7 +96,7 @@
"heatmap_year": null,
"is_public": 1,
"is_standard": 1,
"last_synced_on": "2025-09-13 01:31:27.553894",
"last_synced_on": "2025-09-13 22:25:21.296244",
"modified": "2025-09-07 00:50:04.955468",
"module": "Church",
"name": "New Church Members",