diff --git a/community/lms/doctype/lms_settings/__init__.py b/community/lms/doctype/lms_settings/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/community/lms/doctype/lms_settings/lms_settings.js b/community/lms/doctype/lms_settings/lms_settings.js new file mode 100644 index 00000000..a4a0f2d3 --- /dev/null +++ b/community/lms/doctype/lms_settings/lms_settings.js @@ -0,0 +1,8 @@ +// Copyright (c) 2021, FOSS United and contributors +// For license information, please see license.txt + +frappe.ui.form.on('LMS Settings', { + // refresh: function(frm) { + + // } +}); diff --git a/community/lms/doctype/lms_settings/lms_settings.json b/community/lms/doctype/lms_settings/lms_settings.json new file mode 100644 index 00000000..07789ef2 --- /dev/null +++ b/community/lms/doctype/lms_settings/lms_settings.json @@ -0,0 +1,41 @@ +{ + "actions": [], + "creation": "2021-03-09 14:30:15.807410", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "livecode_url" + ], + "fields": [ + { + "default": "https://livecode.dev.fossunited.org", + "fieldname": "livecode_url", + "fieldtype": "Data", + "label": "LiveCode URL" + } + ], + "index_web_pages_for_search": 1, + "issingle": 1, + "links": [], + "modified": "2021-03-09 14:30:15.807410", + "modified_by": "Administrator", + "module": "LMS", + "name": "LMS Settings", + "owner": "Administrator", + "permissions": [ + { + "create": 1, + "delete": 1, + "email": 1, + "print": 1, + "read": 1, + "role": "System Manager", + "share": 1, + "write": 1 + } + ], + "sort_field": "modified", + "sort_order": "DESC", + "track_changes": 1 +} \ No newline at end of file diff --git a/community/lms/doctype/lms_settings/lms_settings.py b/community/lms/doctype/lms_settings/lms_settings.py new file mode 100644 index 00000000..90ecdd6d --- /dev/null +++ b/community/lms/doctype/lms_settings/lms_settings.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +# Copyright (c) 2021, FOSS United and contributors +# For license information, please see license.txt + +from __future__ import unicode_literals +# import frappe +from frappe.model.document import Document + +class LMSSettings(Document): + pass diff --git a/community/lms/doctype/lms_settings/test_lms_settings.py b/community/lms/doctype/lms_settings/test_lms_settings.py new file mode 100644 index 00000000..66b75c14 --- /dev/null +++ b/community/lms/doctype/lms_settings/test_lms_settings.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +# Copyright (c) 2021, FOSS United and Contributors +# See license.txt +from __future__ import unicode_literals + +# import frappe +import unittest + +class TestLMSSettings(unittest.TestCase): + pass diff --git a/community/www/courses/topic.html b/community/www/courses/topic.html index b29a8fde..f13edb66 100644 --- a/community/www/courses/topic.html +++ b/community/www/courses/topic.html @@ -67,13 +67,13 @@ {%- block script %} {{ super() }} - +