diff --git a/school/fixtures/custom_field.json b/school/fixtures/custom_field.json index 79720325..00487118 100644 --- a/school/fixtures/custom_field.json +++ b/school/fixtures/custom_field.json @@ -1,163 +1,4 @@ [ - { - "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": "linkedin", - "fieldtype": "Data", - "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": "mobile_no", - "label": "LinkedIn ID", - "length": 0, - "mandatory_depends_on": null, - "modified": "2021-12-07 14:46:55.834145", - "name": "User-linkedin", - "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": "github", - "fieldtype": "Data", - "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": "linkedin", - "label": "Github ID", - "length": 0, - "mandatory_depends_on": null, - "modified": "2021-12-07 14:46:55.834145", - "name": "User-github", - "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": "medium", - "fieldtype": "Data", - "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": "github", - "label": "Medium ID", - "length": 0, - "mandatory_depends_on": null, - "modified": "2021-12-07 14:46:55.834145", - "name": "User-medium", - "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, @@ -190,6 +31,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2021-12-07 14:46:55.834145", + "module": null, "name": "User-city", "no_copy": 0, "non_negative": 0, @@ -243,6 +85,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2021-12-07 14:46:55.834145", + "module": null, "name": "User-college", "no_copy": 0, "non_negative": 0, @@ -296,6 +139,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2021-12-07 14:46:55.834145", + "module": null, "name": "User-branch", "no_copy": 0, "non_negative": 0, @@ -317,6 +161,168 @@ "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": "linkedin", + "fieldtype": "Data", + "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": "mobile_no", + "label": "LinkedIn ID", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-12-07 14:46:55.834145", + "module": null, + "name": "User-linkedin", + "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": "github", + "fieldtype": "Data", + "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": "linkedin", + "label": "Github ID", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-12-07 14:46:55.834145", + "module": null, + "name": "User-github", + "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": "medium", + "fieldtype": "Data", + "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": "github", + "label": "Medium ID", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-12-07 14:46:55.834145", + "module": null, + "name": "User-medium", + "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, @@ -349,6 +355,7 @@ "length": 0, "mandatory_depends_on": null, "modified": "2021-12-07 14:46:55.834145", + "module": null, "name": "User-profession", "no_copy": 0, "non_negative": 0, @@ -401,7 +408,8 @@ "label": "Education Details", "length": 0, "mandatory_depends_on": null, - "modified": "2021-12-07 14:46:55.834145", + "modified": "2021-12-08 11:57:55.170625", + "module": null, "name": "User-education_details", "no_copy": 0, "non_negative": 0, @@ -419,7 +427,61 @@ "report_hide": 0, "reqd": 0, "search_index": 0, - "translatable": 1, + "translatable": 0, + "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": "Private Information included your Mobile Number, Email Address, Grade Type, Grade and Work Environment Preferences", + "docstatus": 0, + "doctype": "Custom Field", + "dt": "User", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "hide_my_private_information_from_others", + "fieldtype": "Check", + "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": "Hide my Private Information from others", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-12-09 17:49:36.214847", + "module": null, + "name": "User-hide_my_private_information_from_others", + "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": 0, "unique": 0, "width": null }, @@ -438,7 +500,7 @@ "dt": "User", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "education_table", + "fieldname": "education", "fieldtype": "Table", "hidden": 0, "hide_border": 0, @@ -451,11 +513,66 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "education_details", - "label": "Education Details", + "label": "Education", "length": 0, "mandatory_depends_on": null, - "modified": "2021-12-07 14:46:55.834145", - "name": "User-education_table", + "modified": "2021-12-08 11:58:56.052663", + "module": null, + "name": "User-education", + "no_copy": 0, + "non_negative": 0, + "options": "Education Detail", + "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": 0, + "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": "Private Information included your Mobile Number, Email Address, Grade Type, Grade and Work Environment Preferences", + "docstatus": 0, + "doctype": "Custom Field", + "dt": "User", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "profile_complete", + "fieldtype": "Check", + "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": "hide_my_private_information_from_others", + "label": "Profile Complete", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-12-09 17:53:28.197792", + "module": null, + "name": "User-profile_complete", "no_copy": 0, "non_negative": 0, "options": null, @@ -472,8 +589,872 @@ "report_hide": 0, "reqd": 0, "search_index": 0, - "translatable": 1, + "translatable": 0, + "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": "certification_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": "work_experience", + "label": "Certification Details", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-12-08 11:59:36.478416", + "module": null, + "name": "User-certification_details", + "no_copy": 0, + "non_negative": 0, + "options": "", + "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": 0, + "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": "certification", + "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": "certification_details", + "label": "Certification", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-12-08 11:59:54.850517", + "module": null, + "name": "User-certification", + "no_copy": 0, + "non_negative": 0, + "options": "Certification", + "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": 0, + "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": "skill_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": "certification", + "label": "Skill Details", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-12-08 12:01:29.335323", + "module": null, + "name": "User-skill_details", + "no_copy": 0, + "non_negative": 0, + "options": "", + "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": 0, + "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": "skill", + "fieldtype": "Table MultiSelect", + "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": "skill_details", + "label": "Skill", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-12-08 15:32:13.944672", + "module": null, + "name": "User-skill", + "no_copy": 0, + "non_negative": 0, + "options": "Skills", + "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": 0, + "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": "carrer_preference_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": "skill", + "label": "Carrer Preference Details", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-12-08 15:35:50.764368", + "module": null, + "name": "User-carrer_preference_details", + "no_copy": 0, + "non_negative": 0, + "options": "", + "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": 0, + "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": "career_preference", + "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": "carrer_preference_details", + "label": "Career Preference", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-12-08 15:43:59.546531", + "module": null, + "name": "User-career_preference", + "no_copy": 0, + "non_negative": 0, + "options": "Career Preference", + "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": 0, + "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": "work_environment", + "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": "career_preference", + "label": "Work Environment", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-12-08 15:46:38.702864", + "module": null, + "name": "User-work_environment", + "no_copy": 0, + "non_negative": 0, + "options": "", + "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": 0, + "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": "attire", + "fieldtype": "Select", + "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": "work_environment", + "label": "Attire Preference", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-12-08 15:56:56.741761", + "module": null, + "name": "User-attire", + "no_copy": 0, + "non_negative": 0, + "options": "Casual\nFormal", + "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": 0, + "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": "collaboration", + "fieldtype": "Select", + "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": "attire", + "label": "Collaboration Preference", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-12-08 16:05:17.034482", + "module": null, + "name": "User-collaboration", + "no_copy": 0, + "non_negative": 0, + "options": "Individual\nTeam", + "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": 0, + "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": "role", + "fieldtype": "Select", + "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": "collaboration", + "label": "Role Preference", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-12-08 16:10:37.349479", + "module": null, + "name": "User-role", + "no_copy": 0, + "non_negative": 0, + "options": "Clearly Defined Role\nUnstructured Role", + "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": 0, + "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": "work_environment_column", + "fieldtype": "Column 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": "role", + "label": "", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-12-08 16:45:46.776903", + "module": null, + "name": "User-work_environment_column", + "no_copy": 0, + "non_negative": 0, + "options": "", + "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": 0, + "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": "location_preference", + "fieldtype": "Select", + "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": "work_environment_column", + "label": "Location Preference", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-12-08 16:22:35.162991", + "module": null, + "name": "User-location_preference", + "no_copy": 0, + "non_negative": 0, + "options": "Travel\nClose to Home", + "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": 0, + "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": "time", + "fieldtype": "Select", + "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": "location_preference", + "label": "Time Preference", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-12-08 16:16:37.885306", + "module": null, + "name": "User-time", + "no_copy": 0, + "non_negative": 0, + "options": "Flexible Time\nFixed 9-5", + "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": 0, + "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": "company_type", + "fieldtype": "Select", + "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": "time", + "label": "Company Type", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-12-08 16:17:19.735659", + "module": null, + "name": "User-company_type", + "no_copy": 0, + "non_negative": 0, + "options": "Corporate\nStartup", + "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": 0, + "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": "work_experience_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": "education", + "label": "Work Experience Details", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-12-08 11:56:29.466560", + "module": null, + "name": "User-work_experience_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": 0, + "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": "work_experience", + "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": "work_experience_details", + "label": "Work Experience", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-12-08 11:58:43.329371", + "module": null, + "name": "User-work_experience", + "no_copy": 0, + "non_negative": 0, + "options": "Work Experience", + "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": 0, "unique": 0, "width": null } -] +] \ No newline at end of file diff --git a/school/lms/doctype/education_details/__init__.py b/school/lms/doctype/education_detail/__init__.py similarity index 100% rename from school/lms/doctype/education_details/__init__.py rename to school/lms/doctype/education_detail/__init__.py diff --git a/school/lms/doctype/education_details/education_details.json b/school/lms/doctype/education_detail/education_detail.json similarity index 97% rename from school/lms/doctype/education_details/education_details.json rename to school/lms/doctype/education_detail/education_detail.json index 3ca2b5d6..7faba086 100644 --- a/school/lms/doctype/education_details/education_details.json +++ b/school/lms/doctype/education_detail/education_detail.json @@ -60,7 +60,7 @@ "modified": "2021-12-07 12:15:46.078717", "modified_by": "Administrator", "module": "LMS", - "name": "Education Details", + "name": "Education Detail", "owner": "Administrator", "permissions": [], "sort_field": "modified", diff --git a/school/lms/doctype/education_details/education_details.py b/school/lms/doctype/education_detail/education_detail.py similarity index 82% rename from school/lms/doctype/education_details/education_details.py rename to school/lms/doctype/education_detail/education_detail.py index fd44e2a3..0e28779c 100644 --- a/school/lms/doctype/education_details/education_details.py +++ b/school/lms/doctype/education_detail/education_detail.py @@ -4,5 +4,5 @@ # import frappe from frappe.model.document import Document -class EducationDetails(Document): +class EducationDetail(Document): pass diff --git a/school/lms/doctype/skill/skill.json b/school/lms/doctype/skill/skill.json index 93eef298..054b60a8 100644 --- a/school/lms/doctype/skill/skill.json +++ b/school/lms/doctype/skill/skill.json @@ -1,30 +1,41 @@ { "actions": [], "allow_rename": 1, - "creation": "2021-12-07 12:22:44.139341", + "creation": "2021-12-08 15:31:29.292544", "doctype": "DocType", "editable_grid": 1, "engine": "InnoDB", "field_order": [ - "skill_name" + "skill" ], "fields": [ { - "fieldname": "skill_name", + "fieldname": "skill", "fieldtype": "Data", - "in_list_view": 1, - "label": "Skill Name" + "label": "Skill" } ], "index_web_pages_for_search": 1, - "istable": 1, "links": [], - "modified": "2021-12-07 12:22:56.769638", + "modified": "2021-12-08 15:31:29.292544", "modified_by": "Administrator", "module": "LMS", "name": "Skill", "owner": "Administrator", - "permissions": [], + "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" } \ No newline at end of file diff --git a/school/lms/doctype/skills/__init__.py b/school/lms/doctype/skills/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/school/lms/doctype/skills/skills.js b/school/lms/doctype/skills/skills.js new file mode 100644 index 00000000..7545dd0c --- /dev/null +++ b/school/lms/doctype/skills/skills.js @@ -0,0 +1,8 @@ +// Copyright (c) 2021, Frappe and contributors +// For license information, please see license.txt + +frappe.ui.form.on('Skills', { + // refresh: function(frm) { + + // } +}); diff --git a/school/lms/doctype/skills/skills.json b/school/lms/doctype/skills/skills.json new file mode 100644 index 00000000..6ce0021a --- /dev/null +++ b/school/lms/doctype/skills/skills.json @@ -0,0 +1,31 @@ +{ + "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": "Link", + "in_list_view": 1, + "label": "Skill Name", + "options": "Skill" + } + ], + "index_web_pages_for_search": 1, + "istable": 1, + "links": [], + "modified": "2021-12-08 15:31:44.691222", + "modified_by": "Administrator", + "module": "LMS", + "name": "Skills", + "owner": "Administrator", + "permissions": [], + "sort_field": "modified", + "sort_order": "DESC" +} \ No newline at end of file diff --git a/school/lms/doctype/skills/skills.py b/school/lms/doctype/skills/skills.py new file mode 100644 index 00000000..c6cbc49a --- /dev/null +++ b/school/lms/doctype/skills/skills.py @@ -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 Skills(Document): + pass diff --git a/school/lms/doctype/skills/test_skills.py b/school/lms/doctype/skills/test_skills.py new file mode 100644 index 00000000..9e17743e --- /dev/null +++ b/school/lms/doctype/skills/test_skills.py @@ -0,0 +1,8 @@ +# Copyright (c) 2021, Frappe and Contributors +# See license.txt + +# import frappe +import unittest + +class TestSkills(unittest.TestCase): + pass diff --git a/school/lms/doctype/work_experience/work_experience.json b/school/lms/doctype/work_experience/work_experience.json index 6401441c..a5f0fa45 100644 --- a/school/lms/doctype/work_experience/work_experience.json +++ b/school/lms/doctype/work_experience/work_experience.json @@ -9,10 +9,11 @@ "title", "company", "location", + "description", + "column_break_4", "current", "from_date", - "to_date", - "description" + "to_date" ], "fields": [ { @@ -48,7 +49,7 @@ "fieldname": "to_date", "fieldtype": "Date", "label": "To Date", - "reqd": 1 + "mandatory_depends_on": "eval: !doc.current" }, { "fieldname": "description", @@ -60,12 +61,16 @@ "fieldname": "current", "fieldtype": "Check", "label": "I am currently working here" + }, + { + "fieldname": "column_break_4", + "fieldtype": "Column Break" } ], "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2021-12-07 12:18:39.885407", + "modified": "2021-12-09 16:25:48.104205", "modified_by": "Administrator", "module": "LMS", "name": "Work Experience", diff --git a/school/lms/web_form/profile/profile.js b/school/lms/web_form/profile/profile.js index 8a707633..1622f2e5 100644 --- a/school/lms/web_form/profile/profile.js +++ b/school/lms/web_form/profile/profile.js @@ -1,11 +1,36 @@ frappe.ready(function () { frappe.web_form.after_load = () => { + if (!frappe.utils.get_url_arg("name")) { window.location.href = `/edit-profile?name=${frappe.session.user}`; } + + $(document).on("click", "input[data-fieldname='current']", (e) => { + if ($(e.currentTarget).prop("checked")) + $("div[data-fieldname='to_date']").addClass("hide"); + else + $("div[data-fieldname='to_date']").removeClass("hide"); + }); + } + frappe.web_form.validate = () => { + let to_date_missing; + const data = frappe.web_form.get_values(); + data.work_experience.forEach(exp => { + if (!exp.current && !exp.to_date) { + to_date_missing = true + frappe.msgprint('To Date is mandatory in Work Experience.'); + } + }); + if (to_date_missing) + return false; + return true; + }; + + + frappe.web_form.after_save = () => { setTimeout(() => { window.location.href = `/profile_/${frappe.web_form.get_value(["username"])}`; diff --git a/school/lms/web_form/profile/profile.json b/school/lms/web_form/profile/profile.json index 3ba731a9..6ed1f40c 100644 --- a/school/lms/web_form/profile/profile.json +++ b/school/lms/web_form/profile/profile.json @@ -21,7 +21,7 @@ "is_standard": 1, "login_required": 1, "max_attachment_size": 0, - "modified": "2021-08-06 14:40:39.013776", + "modified": "2021-12-09 16:17:18.771370", "modified_by": "Administrator", "module": "LMS", "name": "profile", @@ -173,37 +173,130 @@ }, { "allow_read_on_all_link_options": 0, - "fieldname": "college", - "fieldtype": "Data", + "fieldname": "education", + "fieldtype": "Table", "hidden": 0, - "label": "College Name", + "label": "Education", "max_length": 0, "max_value": 0, + "options": "Education Detail", "read_only": 0, "reqd": 0, "show_in_filter": 0 }, { "allow_read_on_all_link_options": 0, - "depends_on": "college", - "fieldname": "branch", - "fieldtype": "Data", + "fieldname": "work_experience", + "fieldtype": "Table", "hidden": 0, - "label": "Branch", + "label": "Work Experience", "max_length": 0, "max_value": 0, + "options": "Work Experience", "read_only": 0, "reqd": 0, "show_in_filter": 0 }, { "allow_read_on_all_link_options": 0, - "fieldname": "profession", - "fieldtype": "Data", + "fieldname": "certification", + "fieldtype": "Table", "hidden": 0, - "label": "Profession", + "label": "Certification", "max_length": 0, "max_value": 0, + "options": "Certification", + "read_only": 0, + "reqd": 0, + "show_in_filter": 0 + }, + { + "allow_read_on_all_link_options": 0, + "fieldname": "career_preference", + "fieldtype": "Table", + "hidden": 0, + "label": "Career Preference", + "max_length": 0, + "max_value": 0, + "options": "Career Preference", + "read_only": 0, + "reqd": 0, + "show_in_filter": 0 + }, + { + "allow_read_on_all_link_options": 0, + "fieldname": "attire", + "fieldtype": "Select", + "hidden": 0, + "label": "Attire Preference", + "max_length": 0, + "max_value": 0, + "options": "Casual\nFormal", + "read_only": 0, + "reqd": 0, + "show_in_filter": 0 + }, + { + "allow_read_on_all_link_options": 0, + "fieldname": "collaboration", + "fieldtype": "Select", + "hidden": 0, + "label": "Collaboration Preference", + "max_length": 0, + "max_value": 0, + "options": "Individual\nTeam", + "read_only": 0, + "reqd": 0, + "show_in_filter": 0 + }, + { + "allow_read_on_all_link_options": 0, + "fieldname": "role", + "fieldtype": "Select", + "hidden": 0, + "label": "Role Preference", + "max_length": 0, + "max_value": 0, + "options": "Clearly Defined Role\nUnstructured Role", + "read_only": 0, + "reqd": 0, + "show_in_filter": 0 + }, + { + "allow_read_on_all_link_options": 0, + "fieldname": "location_preference", + "fieldtype": "Select", + "hidden": 0, + "label": "Location Preference", + "max_length": 0, + "max_value": 0, + "options": "Travel\nClose to Home", + "read_only": 0, + "reqd": 0, + "show_in_filter": 0 + }, + { + "allow_read_on_all_link_options": 0, + "fieldname": "time", + "fieldtype": "Select", + "hidden": 0, + "label": "Time Preference", + "max_length": 0, + "max_value": 0, + "options": "Flexible Time\nFixed 9-5", + "read_only": 0, + "reqd": 0, + "show_in_filter": 0 + }, + { + "allow_read_on_all_link_options": 0, + "fieldname": "company_type", + "fieldtype": "Select", + "hidden": 0, + "label": "Company Type", + "max_length": 0, + "max_value": 0, + "options": "Corporate\nStartup", "read_only": 0, "reqd": 0, "show_in_filter": 0