Compare commits

...

1 Commits

Author SHA1 Message Date
pateljannat
05f28430b9 feat: quiz doctypes 2021-05-31 10:16:21 +05:30
13 changed files with 192 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,54 @@
{
"actions": [],
"creation": "2021-05-28 19:09:44.418823",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"title",
"maximum_attempts",
"questions"
],
"fields": [
{
"fieldname": "title",
"fieldtype": "Data",
"label": "Title"
},
{
"fieldname": "maximum_attempts",
"fieldtype": "Int",
"label": "Maximum Attempts"
},
{
"fieldname": "questions",
"fieldtype": "Link",
"label": "Questions",
"options": "LMS Quiz Question"
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2021-05-28 19:18:38.688885",
"modified_by": "Administrator",
"module": "LMS",
"name": "LMS Quiz",
"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",
"track_changes": 1
}

View File

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

View File

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

View File

@@ -0,0 +1,38 @@
{
"actions": [],
"creation": "2021-05-28 19:04:49.312616",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"option",
"is_correct"
],
"fields": [
{
"fieldname": "option",
"fieldtype": "Small Text",
"in_list_view": 1,
"label": "Option"
},
{
"default": "0",
"fieldname": "is_correct",
"fieldtype": "Check",
"in_list_view": 1,
"label": "Is Correct"
}
],
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2021-05-28 19:13:48.869416",
"modified_by": "Administrator",
"module": "LMS",
"name": "LMS Quiz Option",
"owner": "Administrator",
"permissions": [],
"sort_field": "modified",
"sort_order": "DESC",
"track_changes": 1
}

View File

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

View File

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

View File

@@ -0,0 +1,44 @@
{
"actions": [],
"creation": "2021-05-28 19:07:17.347423",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"question",
"options",
"question_type"
],
"fields": [
{
"fieldname": "question",
"fieldtype": "Markdown Editor",
"in_list_view": 1,
"label": "Question"
},
{
"fieldname": "options",
"fieldtype": "Table",
"label": "Options",
"options": "LMS Quiz Option"
},
{
"fieldname": "question_type",
"fieldtype": "Select",
"in_list_view": 1,
"label": "Question Type",
"options": "Single Correct Answer\nMultiple Correct Answers"
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2021-05-28 19:18:04.939778",
"modified_by": "Administrator",
"module": "LMS",
"name": "LMS Quiz Question",
"owner": "Administrator",
"permissions": [],
"sort_field": "modified",
"sort_order": "DESC",
"track_changes": 1
}

View File

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

View File

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