feat: child tables for profile sections

This commit is contained in:
Jannat Patel
2021-12-07 16:58:55 +05:30
parent a78019ccbc
commit 5b4db8fd54
20 changed files with 481 additions and 7 deletions

View File

@@ -30,7 +30,7 @@
"label": "LinkedIn ID",
"length": 0,
"mandatory_depends_on": null,
"modified": "2021-06-30 14:46:55.834145",
"modified": "2021-12-07 14:46:55.834145",
"name": "User-linkedin",
"no_copy": 0,
"non_negative": 0,
@@ -83,7 +83,7 @@
"label": "Github ID",
"length": 0,
"mandatory_depends_on": null,
"modified": "2021-06-30 14:46:55.834145",
"modified": "2021-12-07 14:46:55.834145",
"name": "User-github",
"no_copy": 0,
"non_negative": 0,
@@ -136,7 +136,7 @@
"label": "Medium ID",
"length": 0,
"mandatory_depends_on": null,
"modified": "2021-06-30 14:46:55.834145",
"modified": "2021-12-07 14:46:55.834145",
"name": "User-medium",
"no_copy": 0,
"non_negative": 0,
@@ -189,7 +189,7 @@
"label": "City",
"length": 0,
"mandatory_depends_on": null,
"modified": "2021-06-30 14:46:55.834145",
"modified": "2021-12-07 14:46:55.834145",
"name": "User-city",
"no_copy": 0,
"non_negative": 0,
@@ -242,7 +242,7 @@
"label": "College Name",
"length": 0,
"mandatory_depends_on": null,
"modified": "2021-06-30 14:46:55.834145",
"modified": "2021-12-07 14:46:55.834145",
"name": "User-college",
"no_copy": 0,
"non_negative": 0,
@@ -295,7 +295,7 @@
"label": "Branch",
"length": 0,
"mandatory_depends_on": null,
"modified": "2021-06-30 14:46:55.834145",
"modified": "2021-12-07 14:46:55.834145",
"name": "User-branch",
"no_copy": 0,
"non_negative": 0,
@@ -348,7 +348,7 @@
"label": "Profession",
"length": 0,
"mandatory_depends_on": null,
"modified": "2021-06-30 14:46:55.834145",
"modified": "2021-12-07 14:46:55.834145",
"name": "User-profession",
"no_copy": 0,
"non_negative": 0,
@@ -369,5 +369,111 @@
"translatable": 1,
"unique": 0,
"width": null
},
{
"allow_in_quick_entry": 0,
"allow_on_submit": 0,
"bold": 0,
"collapsible": 0,
"collapsible_depends_on": null,
"columns": 0,
"default": null,
"depends_on": null,
"description": null,
"docstatus": 0,
"doctype": "Custom Field",
"dt": "User",
"fetch_from": null,
"fetch_if_empty": 0,
"fieldname": "education_details",
"fieldtype": "Section Break",
"hidden": 0,
"hide_border": 0,
"hide_days": 0,
"hide_seconds": 0,
"ignore_user_permissions": 0,
"ignore_xss_filter": 0,
"in_global_search": 0,
"in_list_view": 0,
"in_preview": 0,
"in_standard_filter": 0,
"insert_after": "profession",
"label": "Education Details",
"length": 0,
"mandatory_depends_on": null,
"modified": "2021-12-07 14:46:55.834145",
"name": "User-education_details",
"no_copy": 0,
"non_negative": 0,
"options": null,
"parent": null,
"parentfield": null,
"parenttype": null,
"permlevel": 0,
"precision": "",
"print_hide": 0,
"print_hide_if_no_value": 0,
"print_width": null,
"read_only": 0,
"read_only_depends_on": null,
"report_hide": 0,
"reqd": 0,
"search_index": 0,
"translatable": 1,
"unique": 0,
"width": null
},
{
"allow_in_quick_entry": 0,
"allow_on_submit": 0,
"bold": 0,
"collapsible": 0,
"collapsible_depends_on": null,
"columns": 0,
"default": null,
"depends_on": null,
"description": null,
"docstatus": 0,
"doctype": "Custom Field",
"dt": "User",
"fetch_from": null,
"fetch_if_empty": 0,
"fieldname": "education_table",
"fieldtype": "Table",
"hidden": 0,
"hide_border": 0,
"hide_days": 0,
"hide_seconds": 0,
"ignore_user_permissions": 0,
"ignore_xss_filter": 0,
"in_global_search": 0,
"in_list_view": 0,
"in_preview": 0,
"in_standard_filter": 0,
"insert_after": "education_details",
"label": "Education Details",
"length": 0,
"mandatory_depends_on": null,
"modified": "2021-12-07 14:46:55.834145",
"name": "User-education_table",
"no_copy": 0,
"non_negative": 0,
"options": null,
"parent": null,
"parentfield": null,
"parenttype": null,
"permlevel": 0,
"precision": "",
"print_hide": 0,
"print_hide_if_no_value": 0,
"print_width": null,
"read_only": 0,
"read_only_depends_on": null,
"report_hide": 0,
"reqd": 0,
"search_index": 0,
"translatable": 1,
"unique": 0,
"width": null
}
]

View File

@@ -0,0 +1,55 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2021-12-07 14:53:35.593751",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"preferred_functions",
"preferred_industries",
"preferred_location",
"dream_companies"
],
"fields": [
{
"fieldname": "preferred_functions",
"fieldtype": "Select",
"in_list_view": 1,
"label": "Preferred Functions",
"options": "Consulting\nData & Analytics\nDesign & Creative\nEngineering (Non Software)\nEngineering (Software & IT)\nFinance, Investment & Accounting\nHuman Resource & Recruiting\nLegal\nMarketing, Advertising & PR\nOperations & Admin\nProject Management\nProduct\nResearch, Training & Education\nSales & Customer Service\nSupply Chain, Logistics\nStrategy & Management\nOther",
"reqd": 1
},
{
"fieldname": "preferred_industries",
"fieldtype": "Select",
"in_list_view": 1,
"label": "Preferred Industries",
"options": "Accounting\nAds, Marketing, PR & Events\nAgriculture, Fishing & Forestry\nArchitecture\nAviation & Aerospace\nBanking, Financial Services & Insurance\nBiotech & Pharmaceuticals\nConstruction & Real Estate\nConsulting & Professional Services\nEducation & Training\nEnergy & Utilities\nEngineering\nFood & Beverages\nHealth & Medical\nHospitality & Tourism\nIT / Ecommerce / Internet\nManufacturing & Production\nMedia & Entertainment\nPublic Service & NGOs\nRetail, Fashion & FMCG\nStaffing & Recruiting\nTransportation & Logistics\nSecurity & Law Enforcement\nOther",
"reqd": 1
},
{
"fieldname": "preferred_location",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Preferred Location",
"reqd": 1
},
{
"fieldname": "dream_companies",
"fieldtype": "Data",
"label": "Dream Companies"
}
],
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2021-12-07 14:53:49.068323",
"modified_by": "Administrator",
"module": "LMS",
"name": "Career Preference",
"owner": "Administrator",
"permissions": [],
"sort_field": "modified",
"sort_order": "DESC"
}

View File

@@ -0,0 +1,8 @@
# Copyright (c) 2021, Frappe and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class CareerPreference(Document):
pass

View File

@@ -0,0 +1,8 @@
// Copyright (c) 2021, Frappe and contributors
// For license information, please see license.txt
frappe.ui.form.on('Certification', {
// refresh: function(frm) {
// }
});

View File

@@ -0,0 +1,67 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2021-12-07 12:20:37.143096",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"certification_name",
"organization",
"expire",
"issue_date",
"expiration_date",
"description"
],
"fields": [
{
"fieldname": "certification_name",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Certification Name",
"reqd": 1
},
{
"fieldname": "organization",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Organization",
"reqd": 1
},
{
"fieldname": "issue_date",
"fieldtype": "Date",
"in_list_view": 1,
"label": "Issue Date",
"reqd": 1
},
{
"fieldname": "description",
"fieldtype": "Small Text",
"label": "Description"
},
{
"depends_on": "eval: !doc.expire",
"fieldname": "expiration_date",
"fieldtype": "Data",
"label": "Expiration Date"
},
{
"default": "0",
"fieldname": "expire",
"fieldtype": "Check",
"label": "This certificate does no expire"
}
],
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2021-12-07 12:22:10.591613",
"modified_by": "Administrator",
"module": "LMS",
"name": "Certification",
"owner": "Administrator",
"permissions": [],
"sort_field": "modified",
"sort_order": "DESC"
}

View File

@@ -0,0 +1,8 @@
# Copyright (c) 2021, Frappe and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class Certification(Document):
pass

View File

@@ -0,0 +1,8 @@
# Copyright (c) 2021, Frappe and Contributors
# See license.txt
# import frappe
import unittest
class TestCertification(unittest.TestCase):
pass

View File

@@ -0,0 +1,68 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2021-12-07 12:15:46.078717",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"institution_name",
"location",
"degree_type",
"field_of_majorstudy",
"grade_type",
"grade"
],
"fields": [
{
"fieldname": "institution_name",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Institution Name",
"reqd": 1
},
{
"fieldname": "location",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Location",
"reqd": 1
},
{
"fieldname": "degree_type",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Degree Type",
"reqd": 1
},
{
"fieldname": "field_of_majorstudy",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Field of Major/Study",
"reqd": 1
},
{
"fieldname": "grade_type",
"fieldtype": "Select",
"label": "Grade Type",
"options": "Percentage (e.g. 70%)\nPoint of Score (e.g. 70)\nLetter Grade (e.g. A, B-)\nUK Grading (e.g. 1st, 2:2)\nFrench (e.g. Distinction)\nCGPA/4"
},
{
"fieldname": "grade",
"fieldtype": "Data",
"label": "Grade"
}
],
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2021-12-07 12:15:46.078717",
"modified_by": "Administrator",
"module": "LMS",
"name": "Education Details",
"owner": "Administrator",
"permissions": [],
"sort_field": "modified",
"sort_order": "DESC"
}

View File

@@ -0,0 +1,8 @@
# Copyright (c) 2021, Frappe and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class EducationDetails(Document):
pass

View File

View File

@@ -0,0 +1,8 @@
// Copyright (c) 2021, Frappe and contributors
// For license information, please see license.txt
frappe.ui.form.on('Skill', {
// refresh: function(frm) {
// }
});

View File

@@ -0,0 +1,30 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2021-12-07 12:22:44.139341",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"skill_name"
],
"fields": [
{
"fieldname": "skill_name",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Skill Name"
}
],
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2021-12-07 12:22:56.769638",
"modified_by": "Administrator",
"module": "LMS",
"name": "Skill",
"owner": "Administrator",
"permissions": [],
"sort_field": "modified",
"sort_order": "DESC"
}

View File

@@ -0,0 +1,8 @@
# Copyright (c) 2021, Frappe and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class Skill(Document):
pass

View File

@@ -0,0 +1,8 @@
# Copyright (c) 2021, Frappe and Contributors
# See license.txt
# import frappe
import unittest
class TestSkill(unittest.TestCase):
pass

View File

@@ -0,0 +1,76 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2021-12-07 12:17:49.571045",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"title",
"company",
"location",
"current",
"from_date",
"to_date",
"description"
],
"fields": [
{
"fieldname": "title",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Title",
"reqd": 1
},
{
"fieldname": "company",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Company",
"reqd": 1
},
{
"fieldname": "location",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Location",
"reqd": 1
},
{
"fieldname": "from_date",
"fieldtype": "Date",
"in_list_view": 1,
"label": "From Date",
"reqd": 1
},
{
"depends_on": "eval: !doc.current",
"fieldname": "to_date",
"fieldtype": "Date",
"label": "To Date",
"reqd": 1
},
{
"fieldname": "description",
"fieldtype": "Small Text",
"label": "Description"
},
{
"default": "0",
"fieldname": "current",
"fieldtype": "Check",
"label": "I am currently working here"
}
],
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2021-12-07 12:18:39.885407",
"modified_by": "Administrator",
"module": "LMS",
"name": "Work Experience",
"owner": "Administrator",
"permissions": [],
"sort_field": "modified",
"sort_order": "DESC"
}

View File

@@ -0,0 +1,8 @@
# Copyright (c) 2021, Frappe and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class WorkExperience(Document):
pass