diff --git a/changemakers/frappe_changemakers/doctype/beneficiary/beneficiary.json b/changemakers/frappe_changemakers/doctype/beneficiary/beneficiary.json index bfea95d..4eb440d 100644 --- a/changemakers/frappe_changemakers/doctype/beneficiary/beneficiary.json +++ b/changemakers/frappe_changemakers/doctype/beneficiary/beneficiary.json @@ -15,6 +15,7 @@ "column_break_3", "gender", "age", + "languages_known", "column_break_4", "religion", "social_category", @@ -354,6 +355,12 @@ "fieldname": "bottom_save_button", "fieldtype": "Button", "label": "Save" + }, + { + "fieldname": "languages_known", + "fieldtype": "Table MultiSelect", + "label": "Languages Known", + "options": "Language Multiselect" } ], "image_field": "image", @@ -375,7 +382,7 @@ "link_fieldname": "beneficiary" } ], - "modified": "2023-07-11 13:57:23.245991", + "modified": "2023-07-12 12:19:27.711778", "modified_by": "Administrator", "module": "Frappe Changemakers", "name": "Beneficiary", diff --git a/changemakers/frappe_changemakers/doctype/language_multiselect/__init__.py b/changemakers/frappe_changemakers/doctype/language_multiselect/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/changemakers/frappe_changemakers/doctype/language_multiselect/language_multiselect.json b/changemakers/frappe_changemakers/doctype/language_multiselect/language_multiselect.json new file mode 100644 index 0000000..2613377 --- /dev/null +++ b/changemakers/frappe_changemakers/doctype/language_multiselect/language_multiselect.json @@ -0,0 +1,35 @@ +{ + "actions": [], + "allow_rename": 1, + "creation": "2023-07-12 12:16:08.744820", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "language" + ], + "fields": [ + { + "fieldname": "language", + "fieldtype": "Link", + "in_filter": 1, + "in_list_view": 1, + "in_preview": 1, + "in_standard_filter": 1, + "label": "Language", + "options": "Languages Known" + } + ], + "index_web_pages_for_search": 1, + "istable": 1, + "links": [], + "modified": "2023-07-12 12:20:57.205539", + "modified_by": "Administrator", + "module": "Frappe Changemakers", + "name": "Language Multiselect", + "owner": "Administrator", + "permissions": [], + "sort_field": "modified", + "sort_order": "DESC", + "states": [] +} \ No newline at end of file diff --git a/changemakers/frappe_changemakers/doctype/language_multiselect/language_multiselect.py b/changemakers/frappe_changemakers/doctype/language_multiselect/language_multiselect.py new file mode 100644 index 0000000..a8a5e23 --- /dev/null +++ b/changemakers/frappe_changemakers/doctype/language_multiselect/language_multiselect.py @@ -0,0 +1,9 @@ +# Copyright (c) 2023, hussain@frappe.io and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + + +class LanguageMultiselect(Document): + pass diff --git a/changemakers/frappe_changemakers/doctype/languages_known/__init__.py b/changemakers/frappe_changemakers/doctype/languages_known/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/changemakers/frappe_changemakers/doctype/languages_known/languages_known.js b/changemakers/frappe_changemakers/doctype/languages_known/languages_known.js new file mode 100644 index 0000000..d17e3d0 --- /dev/null +++ b/changemakers/frappe_changemakers/doctype/languages_known/languages_known.js @@ -0,0 +1,8 @@ +// Copyright (c) 2023, hussain@frappe.io and contributors +// For license information, please see license.txt + +// frappe.ui.form.on("Languages Known", { +// refresh(frm) { + +// }, +// }); diff --git a/changemakers/frappe_changemakers/doctype/languages_known/languages_known.json b/changemakers/frappe_changemakers/doctype/languages_known/languages_known.json new file mode 100644 index 0000000..70579ae --- /dev/null +++ b/changemakers/frappe_changemakers/doctype/languages_known/languages_known.json @@ -0,0 +1,48 @@ +{ + "actions": [], + "allow_rename": 1, + "autoname": "field:language", + "creation": "2023-07-12 12:09:50.910956", + "default_view": "List", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "language" + ], + "fields": [ + { + "fieldname": "language", + "fieldtype": "Data", + "in_list_view": 1, + "label": "Language", + "reqd": 1, + "unique": 1 + } + ], + "index_web_pages_for_search": 1, + "links": [], + "modified": "2023-07-12 12:15:03.640146", + "modified_by": "Administrator", + "module": "Frappe Changemakers", + "name": "Languages Known", + "naming_rule": "By fieldname", + "owner": "Administrator", + "permissions": [ + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "System Manager", + "share": 1, + "write": 1 + } + ], + "sort_field": "modified", + "sort_order": "DESC", + "states": [] +} \ No newline at end of file diff --git a/changemakers/frappe_changemakers/doctype/languages_known/languages_known.py b/changemakers/frappe_changemakers/doctype/languages_known/languages_known.py new file mode 100644 index 0000000..624f128 --- /dev/null +++ b/changemakers/frappe_changemakers/doctype/languages_known/languages_known.py @@ -0,0 +1,9 @@ +# Copyright (c) 2023, hussain@frappe.io and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + + +class LanguagesKnown(Document): + pass diff --git a/changemakers/frappe_changemakers/doctype/languages_known/test_languages_known.py b/changemakers/frappe_changemakers/doctype/languages_known/test_languages_known.py new file mode 100644 index 0000000..21cdef2 --- /dev/null +++ b/changemakers/frappe_changemakers/doctype/languages_known/test_languages_known.py @@ -0,0 +1,9 @@ +# Copyright (c) 2023, hussain@frappe.io and Contributors +# See license.txt + +# import frappe +from frappe.tests.utils import FrappeTestCase + + +class TestLanguagesKnown(FrappeTestCase): + pass