Replaced Student Course Activity with Course Activity

This commit is contained in:
scmmishra 2018-10-15 16:00:04 +05:30 committed by Aditya Hase
parent 17294e703e
commit e7308125b4
6 changed files with 49 additions and 49 deletions

View File

@ -1,7 +1,7 @@
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on('Student Course Activity', {
frappe.ui.form.on('Course Activity', {
refresh: function(frm) {
}

View File

@ -1,9 +1,10 @@
{
"allow_copy": 0,
"allow_events_in_timeline": 0,
"allow_guest_to_view": 0,
"allow_import": 0,
"allow_rename": 0,
"autoname": "format:{student_id}-{program_name}",
"autoname": "field:enrollment",
"beta": 0,
"creation": "2018-10-01 17:35:54.391413",
"custom": 0,
@ -20,40 +21,7 @@
"bold": 0,
"collapsible": 0,
"columns": 0,
"fieldname": "student_id",
"fieldtype": "Data",
"hidden": 0,
"ignore_user_permissions": 0,
"ignore_xss_filter": 0,
"in_filter": 0,
"in_global_search": 0,
"in_list_view": 0,
"in_standard_filter": 0,
"label": "Student ID",
"length": 0,
"no_copy": 0,
"options": "Student",
"permlevel": 0,
"precision": "",
"print_hide": 0,
"print_hide_if_no_value": 0,
"read_only": 0,
"remember_last_selected_value": 0,
"report_hide": 0,
"reqd": 0,
"search_index": 0,
"set_only_once": 1,
"translatable": 0,
"unique": 0
},
{
"allow_bulk_edit": 0,
"allow_in_quick_entry": 0,
"allow_on_submit": 0,
"bold": 0,
"collapsible": 0,
"columns": 0,
"fieldname": "program_name",
"fieldname": "enrollment",
"fieldtype": "Link",
"hidden": 0,
"ignore_user_permissions": 0,
@ -62,10 +30,43 @@
"in_global_search": 0,
"in_list_view": 0,
"in_standard_filter": 0,
"label": "Program Name",
"label": "Enrollment",
"length": 0,
"no_copy": 0,
"options": "Program",
"options": "Course Enrollment",
"permlevel": 0,
"precision": "",
"print_hide": 0,
"print_hide_if_no_value": 0,
"read_only": 0,
"remember_last_selected_value": 0,
"report_hide": 0,
"reqd": 0,
"search_index": 0,
"set_only_once": 1,
"translatable": 0,
"unique": 1
},
{
"allow_bulk_edit": 0,
"allow_in_quick_entry": 0,
"allow_on_submit": 0,
"bold": 0,
"collapsible": 0,
"columns": 0,
"fieldname": "content",
"fieldtype": "Link",
"hidden": 0,
"ignore_user_permissions": 0,
"ignore_xss_filter": 0,
"in_filter": 0,
"in_global_search": 0,
"in_list_view": 0,
"in_standard_filter": 0,
"label": "Content",
"length": 0,
"no_copy": 0,
"options": "Content",
"permlevel": 0,
"precision": "",
"print_hide": 0,
@ -86,8 +87,8 @@
"bold": 0,
"collapsible": 0,
"columns": 0,
"fieldname": "lms_activity",
"fieldtype": "Table",
"fieldname": "activity_date",
"fieldtype": "Datetime",
"hidden": 0,
"ignore_user_permissions": 0,
"ignore_xss_filter": 0,
@ -95,10 +96,9 @@
"in_global_search": 0,
"in_list_view": 0,
"in_standard_filter": 0,
"label": "LMS Activity",
"label": "Activity Date",
"length": 0,
"no_copy": 0,
"options": "LMS Activity",
"permlevel": 0,
"precision": "",
"print_hide": 0,
@ -123,10 +123,10 @@
"issingle": 0,
"istable": 0,
"max_attachments": 0,
"modified": "2018-10-12 13:51:08.729074",
"modified": "2018-10-15 15:47:11.824446",
"modified_by": "Administrator",
"module": "Education",
"name": "Student Course Activity",
"name": "Course Activity",
"name_case": "",
"owner": "Administrator",
"permissions": [

View File

@ -6,7 +6,7 @@ from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class StudentCourseActivity(Document):
class CourseActivity(Document):
def validate(self):
self.check_if_enrolled()
# self.check_if_course_present()

View File

@ -2,15 +2,15 @@
// rename this file from _test_[name] to test_[name] to activate
// and remove above this line
QUnit.test("test: Student Course Activity", function (assert) {
QUnit.test("test: Course Activity", function (assert) {
let done = assert.async();
// number of asserts
assert.expect(1);
frappe.run_serially([
// insert a new Student Course Activity
() => frappe.tests.make('Student Course Activity', [
// insert a new Course Activity
() => frappe.tests.make('Course Activity', [
// values to be set
{key: 'value'}
]),

View File

@ -6,5 +6,5 @@ from __future__ import unicode_literals
import frappe
import unittest
class TestStudentCourseActivity(unittest.TestCase):
class TestCourseActivity(unittest.TestCase):
pass