refactor: seperate module LMS
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (c) 2021, Frappe and contributors
|
||||
# For license information, please see license.txt
|
||||
|
||||
from __future__ import unicode_literals
|
||||
# import frappe
|
||||
from frappe.website.website_generator import WebsiteGenerator
|
||||
|
||||
class CommunityCourse(WebsiteGenerator):
|
||||
pass
|
||||
@@ -1,21 +0,0 @@
|
||||
{% extends "templates/web.html" %}
|
||||
|
||||
{% block page_content %}
|
||||
|
||||
<ol class="breadcrumb" itemscope="" itemtype="http://schema.org/BreadcrumbList">
|
||||
<li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem" class="breadcrumb-item">
|
||||
<a itemprop="item" href="/courses">
|
||||
<span itemprop="name">← Courses</span>
|
||||
<meta itemprop="position" content="1">
|
||||
</a>
|
||||
<span itemprop="item">
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
<h1>{{ title }}</h1>
|
||||
|
||||
{{description}}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
<!-- this is a sample default web page template -->
|
||||
@@ -1,7 +0,0 @@
|
||||
<div class="card" style="width: 100%; margin: 5px 0px">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title"><a href="{{doc.route}}">{{doc.title}}</a></h5>
|
||||
<p class="card-text">{{doc.description}}</p>
|
||||
<a href="{{doc.route}}" class="card-link">See more →</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,10 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (c) 2021, Frappe and contributors
|
||||
# For license information, please see license.txt
|
||||
|
||||
from __future__ import unicode_literals
|
||||
# import frappe
|
||||
from frappe.website.website_generator import WebsiteGenerator
|
||||
|
||||
class CommunityCourseTopic(WebsiteGenerator):
|
||||
pass
|
||||
@@ -1,7 +0,0 @@
|
||||
{% extends "templates/web.html" %}
|
||||
|
||||
{% block page_content %}
|
||||
<h1>{{ title }}</h1>
|
||||
{% endblock %}
|
||||
|
||||
<!-- this is a sample default web page template -->
|
||||
@@ -1,4 +0,0 @@
|
||||
<div>
|
||||
<a href="{{ doc.route }}">{{ doc.title or doc.name }}</a>
|
||||
</div>
|
||||
<!-- this is a sample default list template -->
|
||||
@@ -1,5 +1,8 @@
|
||||
// Copyright (c) 2021, Frappe and contributors
|
||||
// Copyright (c) 2021, FOSS United and contributors
|
||||
// For license information, please see license.txt
|
||||
|
||||
frappe.ui.form.on('Community Course', {
|
||||
// refresh: function(frm) {
|
||||
|
||||
// }
|
||||
});
|
||||
@@ -36,9 +36,9 @@
|
||||
"index_web_pages_for_search": 1,
|
||||
"is_published_field": "is_published",
|
||||
"links": [],
|
||||
"modified": "2021-03-02 12:25:25.235975",
|
||||
"modified": "2021-03-05 11:01:09.327111",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Community",
|
||||
"module": "LMS",
|
||||
"name": "Community Course",
|
||||
"owner": "Administrator",
|
||||
"permissions": [
|
||||
10
community/lms/doctype/community_course/community_course.py
Normal file
10
community/lms/doctype/community_course/community_course.py
Normal file
@@ -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 CommunityCourse(Document):
|
||||
pass
|
||||
@@ -1,5 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (c) 2021, Frappe and Contributors
|
||||
# Copyright (c) 2021, FOSS United and Contributors
|
||||
# See license.txt
|
||||
from __future__ import unicode_literals
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2021, Frappe and contributors
|
||||
// Copyright (c) 2021, FOSS United and contributors
|
||||
// For license information, please see license.txt
|
||||
|
||||
frappe.ui.form.on('Community Course Enrollment', {
|
||||
@@ -24,9 +24,9 @@
|
||||
],
|
||||
"index_web_pages_for_search": 1,
|
||||
"links": [],
|
||||
"modified": "2021-03-04 18:24:22.654503",
|
||||
"modified": "2021-03-05 11:00:53.879144",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Community",
|
||||
"module": "LMS",
|
||||
"name": "Community Course Enrollment",
|
||||
"owner": "Administrator",
|
||||
"permissions": [
|
||||
@@ -1,5 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (c) 2021, Frappe and contributors
|
||||
# Copyright (c) 2021, FOSS United and contributors
|
||||
# For license information, please see license.txt
|
||||
|
||||
from __future__ import unicode_literals
|
||||
@@ -1,5 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (c) 2021, Frappe and Contributors
|
||||
# Copyright (c) 2021, FOSS United and Contributors
|
||||
# See license.txt
|
||||
from __future__ import unicode_literals
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2021, Frappe and contributors
|
||||
// Copyright (c) 2021, FOSS United and contributors
|
||||
// For license information, please see license.txt
|
||||
|
||||
frappe.ui.form.on('Community Course Topic', {
|
||||
@@ -41,9 +41,9 @@
|
||||
],
|
||||
"index_web_pages_for_search": 1,
|
||||
"links": [],
|
||||
"modified": "2021-03-02 11:43:47.044344",
|
||||
"modified": "2021-03-05 11:01:28.215352",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Community",
|
||||
"module": "LMS",
|
||||
"name": "Community Course Topic",
|
||||
"owner": "Administrator",
|
||||
"permissions": [
|
||||
@@ -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 CommunityCourseTopic(Document):
|
||||
pass
|
||||
@@ -1,5 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (c) 2021, Frappe and Contributors
|
||||
# Copyright (c) 2021, FOSS United and Contributors
|
||||
# See license.txt
|
||||
from __future__ import unicode_literals
|
||||
|
||||
Reference in New Issue
Block a user