feat: course creation from ui

This commit is contained in:
Jannat Patel
2022-03-09 12:29:03 +05:30
parent 913e87c4f5
commit 8f9cd72975
16 changed files with 300 additions and 16 deletions
+6 -2
View File
@@ -1,3 +1,7 @@
frappe.ready(function() {
// bind events here
})
frappe.web_form.after_save = () => {
setTimeout(() => {
window.location.href = `/courses/${frappe.web_form.doc.name}`;
})
}
});
+26 -4
View File
@@ -20,7 +20,7 @@
"is_standard": 1,
"login_required": 1,
"max_attachment_size": 0,
"modified": "2022-03-07 14:48:04.889844",
"modified": "2022-03-09 10:10:30.069458",
"modified_by": "Administrator",
"module": "LMS",
"name": "course",
@@ -48,6 +48,29 @@
"reqd": 1,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "tags",
"fieldtype": "Data",
"hidden": 0,
"label": "Tags",
"max_length": 0,
"max_value": 0,
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "",
"fieldtype": "Column Break",
"hidden": 0,
"max_length": 0,
"max_value": 0,
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "video_link",
@@ -74,10 +97,9 @@
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "tags",
"fieldtype": "Data",
"fieldname": "",
"fieldtype": "Section Break",
"hidden": 0,
"label": "Tags",
"max_length": 0,
"max_value": 0,
"read_only": 0,