diff --git a/samaaja/samaaja/doctype/user_metadata/__init__.py b/samaaja/samaaja/doctype/user_metadata/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/samaaja/samaaja/doctype/user_metadata/test_user_metadata.py b/samaaja/samaaja/doctype/user_metadata/test_user_metadata.py new file mode 100644 index 0000000..5284ed2 --- /dev/null +++ b/samaaja/samaaja/doctype/user_metadata/test_user_metadata.py @@ -0,0 +1,9 @@ +# Copyright (c) 2025, FOSS United and Contributors +# See license.txt + +# import frappe +from frappe.tests.utils import FrappeTestCase + + +class TestUserMetadata(FrappeTestCase): + pass diff --git a/samaaja/samaaja/doctype/user_metadata/user_metadata.js b/samaaja/samaaja/doctype/user_metadata/user_metadata.js new file mode 100644 index 0000000..deee99e --- /dev/null +++ b/samaaja/samaaja/doctype/user_metadata/user_metadata.js @@ -0,0 +1,8 @@ +// Copyright (c) 2025, FOSS United and contributors +// For license information, please see license.txt + +frappe.ui.form.on('User Metadata', { + // refresh: function(frm) { + + // } +}); diff --git a/samaaja/samaaja/doctype/user_metadata/user_metadata.json b/samaaja/samaaja/doctype/user_metadata/user_metadata.json new file mode 100644 index 0000000..c375900 --- /dev/null +++ b/samaaja/samaaja/doctype/user_metadata/user_metadata.json @@ -0,0 +1,100 @@ +{ + "actions": [], + "autoname": "field:user", + "creation": "2025-05-14 23:38:09.172452", + "default_view": "List", + "doctype": "DocType", + "engine": "InnoDB", + "field_order": [ + "user", + "profile_badges", + "summary", + "column_break_gnch", + "pincode", + "city", + "state", + "org_id", + "verified_by" + ], + "fields": [ + { + "fieldname": "user", + "fieldtype": "Link", + "label": "User", + "options": "User", + "unique": 1 + }, + { + "fieldname": "profile_badges", + "fieldtype": "Small Text", + "label": "Profile Badges" + }, + { + "fieldname": "summary", + "fieldtype": "Text", + "label": "Summary" + }, + { + "fieldname": "column_break_gnch", + "fieldtype": "Column Break" + }, + { + "fieldname": "pincode", + "fieldtype": "Data", + "label": "Pin Code" + }, + { + "fieldname": "city", + "fieldtype": "Link", + "label": "City", + "options": "Samaaja Cities" + }, + { + "fieldname": "state", + "fieldtype": "Select", + "label": "State", + "options": "\nAndaman and Nicobar Islands\nAndhra Pradesh\nArunachal Pradesh\nAssam\nBihar\nChandigarh\nChhattisgarh\nDadra and Nagar Haveli and Daman and Diu\nDelhi\nGoa\nGujarat\nHaryana\nHimachal Pradesh\nJammu and Kashmir\nJharkhand\nKarnataka\nKerala\nLadakh\nLakshadweep Islands\nMadhya Pradesh\nMaharashtra\nManipur\nMeghalaya\nMizoram\nNagaland\nOdisha\nOther Territory\nPondicherry\nPunjab\nRajasthan\nSikkim\nTamil Nadu\nTelangana\nTripura\nUttar Pradesh\nUttarakhand\nWest Bengal" + }, + { + "fieldname": "org_id", + "fieldtype": "Link", + "label": "User Organization", + "options": "User Organization" + }, + { + "fieldname": "verified_by", + "fieldtype": "Data", + "label": "Verified By" + } + ], + "index_web_pages_for_search": 1, + "links": [ + { + "link_doctype": "Events", + "link_fieldname": "user" + } + ], + "modified": "2025-09-22 10:14:14.903269", + "modified_by": "Administrator", + "module": "Samaaja", + "name": "User Metadata", + "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/samaaja/samaaja/doctype/user_metadata/user_metadata.py b/samaaja/samaaja/doctype/user_metadata/user_metadata.py new file mode 100644 index 0000000..d174c14 --- /dev/null +++ b/samaaja/samaaja/doctype/user_metadata/user_metadata.py @@ -0,0 +1,8 @@ +# Copyright (c) 2025, FOSS United and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + +class UserMetadata(Document): + pass