{
 "actions": [],
 "allow_rename": 1,
 "autoname": "format: ASG-SUB-{#####}",
 "creation": "2021-12-21 16:15:22.651658",
 "doctype": "DocType",
 "editable_grid": 1,
 "engine": "InnoDB",
 "field_order": [
  "assignment",
  "assignment_title",
  "type",
  "column_break_3",
  "member",
  "member_name",
  "section_break_dlzh",
  "question",
  "column_break_zvis",
  "assignment_attachment",
  "answer",
  "section_break_rqal",
  "status",
  "evaluator",
  "column_break_esgd",
  "comments",
  "section_break_cwaw",
  "lesson",
  "course",
  "column_break_ygdu"
 ],
 "fields": [
  {
   "fieldname": "lesson",
   "fieldtype": "Link",
   "label": "Lesson",
   "options": "Course Lesson"
  },
  {
   "fieldname": "column_break_3",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "assignment",
   "fieldtype": "Link",
   "label": "Assignment",
   "options": "LMS Assignment"
  },
  {
   "fieldname": "member",
   "fieldtype": "Link",
   "in_list_view": 1,
   "in_standard_filter": 1,
   "label": "Member",
   "options": "User",
   "reqd": 1
  },
  {
   "fetch_from": "member.full_name",
   "fieldname": "member_name",
   "fieldtype": "Data",
   "in_list_view": 1,
   "in_standard_filter": 1,
   "label": "Member Name",
   "read_only": 1
  },
  {
   "fetch_from": "lesson.course",
   "fieldname": "course",
   "fieldtype": "Link",
   "in_list_view": 1,
   "in_standard_filter": 1,
   "label": "Course",
   "options": "LMS Course",
   "read_only": 1
  },
  {
   "default": "Not Graded",
   "fieldname": "status",
   "fieldtype": "Select",
   "label": "Status",
   "options": "Pass\nFail\nNot Graded\nNot Applicable"
  },
  {
   "fieldname": "comments",
   "fieldtype": "Small Text",
   "label": "Comments"
  },
  {
   "fieldname": "evaluator",
   "fieldtype": "Link",
   "label": "Evaluator",
   "options": "User",
   "read_only": 1
  },
  {
   "depends_on": "eval:!([\"URL\", \"Text\"]).includes(doc.type);",
   "fieldname": "assignment_attachment",
   "fieldtype": "Attach",
   "label": "Assignment Attachment",
   "mandatory_depends_on": "eval:doc.type != \"URL\";"
  },
  {
   "fetch_from": "assignment.type",
   "fieldname": "type",
   "fieldtype": "Select",
   "in_list_view": 1,
   "label": "Type",
   "options": "Document\nPDF\nURL\nImage\nText"
  },
  {
   "fetch_from": "assignment.question",
   "fieldname": "question",
   "fieldtype": "Text Editor",
   "label": "Question",
   "read_only": 1
  },
  {
   "fetch_from": "assignment.title",
   "fieldname": "assignment_title",
   "fieldtype": "Data",
   "label": "Assignment Title"
  },
  {
   "fieldname": "section_break_rqal",
   "fieldtype": "Section Break"
  },
  {
   "fieldname": "column_break_esgd",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "section_break_cwaw",
   "fieldtype": "Section Break"
  },
  {
   "fieldname": "column_break_ygdu",
   "fieldtype": "Column Break"
  },
  {
   "depends_on": "eval:([\"URL\", \"Text\"]).includes(doc.type);",
   "fieldname": "answer",
   "fieldtype": "Text Editor",
   "label": "Answer",
   "mandatory_depends_on": "eval:doc.type == \"URL\";"
  },
  {
   "fieldname": "section_break_dlzh",
   "fieldtype": "Section Break"
  },
  {
   "fieldname": "column_break_zvis",
   "fieldtype": "Column Break"
  }
 ],
 "index_web_pages_for_search": 1,
 "links": [],
 "make_attachments_public": 1,
 "modified": "2024-04-05 15:57:22.758563",
 "modified_by": "Administrator",
 "module": "LMS",
 "name": "LMS Assignment Submission",
 "naming_rule": "Expression (old style)",
 "owner": "Administrator",
 "permissions": [
  {
   "create": 1,
   "delete": 1,
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "System Manager",
   "share": 1,
   "write": 1
  },
  {
   "create": 1,
   "email": 1,
   "export": 1,
   "if_owner": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "LMS Student",
   "share": 1,
   "write": 1
  }
 ],
 "sort_field": "modified",
 "sort_order": "DESC",
 "states": [
  {
   "color": "Green",
   "title": "Pass"
  },
  {
   "color": "Orange",
   "title": "Not Graded"
  },
  {
   "color": "Red",
   "title": "Fail"
  },
  {
   "color": "Blue",
   "title": "Not Applicable"
  }
 ],
 "title_field": "assignment_title"
}