diff --git a/church/church/doctype/church_information/__init__.py b/church/church/doctype/church_information/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/church/church/doctype/church_information/church_information.js b/church/church/doctype/church_information/church_information.js new file mode 100644 index 0000000..afc147f --- /dev/null +++ b/church/church/doctype/church_information/church_information.js @@ -0,0 +1,8 @@ +// Copyright (c) 2025, meichthys and contributors +// For license information, please see license.txt + +// frappe.ui.form.on("Church Information", { +// refresh(frm) { + +// }, +// }); diff --git a/church/church/doctype/church_information/church_information.json b/church/church/doctype/church_information/church_information.json new file mode 100644 index 0000000..50205f1 --- /dev/null +++ b/church/church/doctype/church_information/church_information.json @@ -0,0 +1,75 @@ +{ + "actions": [], + "allow_rename": 1, + "creation": "2025-09-17 21:10:06.782386", + "description": "Static Information related to the church", + "doctype": "DocType", + "engine": "InnoDB", + "field_order": [ + "legal_name", + "founding_date", + "about", + "column_break_rmsm", + "address", + "mission_statement" + ], + "fields": [ + { + "fieldname": "legal_name", + "fieldtype": "Data", + "label": "Legal Name" + }, + { + "fieldname": "founding_date", + "fieldtype": "Date", + "label": "Founding Date" + }, + { + "fieldname": "column_break_rmsm", + "fieldtype": "Column Break" + }, + { + "fieldname": "address", + "fieldtype": "Link", + "label": "Address", + "options": "Address" + }, + { + "fieldname": "mission_statement", + "fieldtype": "Small Text", + "label": "Mission Statement" + }, + { + "description": "A short description of the church. By default, this is used on the 'About Us' webpage.", + "fieldname": "about", + "fieldtype": "Small Text", + "label": "About" + } + ], + "grid_page_length": 50, + "index_web_pages_for_search": 1, + "issingle": 1, + "links": [], + "modified": "2025-09-17 21:21:41.363009", + "modified_by": "Administrator", + "module": "Church", + "name": "Church Information", + "owner": "Administrator", + "permissions": [ + { + "create": 1, + "delete": 1, + "email": 1, + "print": 1, + "read": 1, + "role": "System Manager", + "share": 1, + "write": 1 + } + ], + "row_format": "Dynamic", + "sort_field": "modified", + "sort_order": "DESC", + "states": [], + "track_changes": 1 +} \ No newline at end of file diff --git a/church/church/doctype/church_information/church_information.py b/church/church/doctype/church_information/church_information.py new file mode 100644 index 0000000..3857030 --- /dev/null +++ b/church/church/doctype/church_information/church_information.py @@ -0,0 +1,9 @@ +# Copyright (c) 2025, meichthys and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + + +class ChurchInformation(Document): + pass diff --git a/church/church/doctype/church_information/test_church_information.py b/church/church/doctype/church_information/test_church_information.py new file mode 100644 index 0000000..2bf96b9 --- /dev/null +++ b/church/church/doctype/church_information/test_church_information.py @@ -0,0 +1,9 @@ +# Copyright (c) 2025, meichthys and Contributors +# See license.txt + +# import frappe +from frappe.tests.utils import FrappeTestCase + + +class TestChurchInformation(FrappeTestCase): + pass