diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 500e2aa2..c39e0b2c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,15 +57,15 @@ jobs: mkdir -p ~/bench-cache (cd && tar czf ~/bench-cache/bench.tgz frappe-bench) fi - - name: add school app to bench + - name: add lms app to bench working-directory: /home/runner/frappe-bench - run: bench get-app school $GITHUB_WORKSPACE + run: bench get-app lms $GITHUB_WORKSPACE - name: create bench site working-directory: /home/runner/frappe-bench run: bench new-site --mariadb-root-password root --admin-password admin frappe.local - - name: install school app + - name: install lms app working-directory: /home/runner/frappe-bench - run: bench --verbose --site frappe.local install-app school + run: bench --verbose --site frappe.local install-app lms - name: setup requirements working-directory: /home/runner/frappe-bench run: bench setup requirements --dev @@ -77,5 +77,5 @@ jobs: run: bench --site frappe.local build - name: run tests working-directory: /home/runner/frappe-bench - run: bench --site frappe.local run-tests --app school + run: bench --site frappe.local run-tests --app lms diff --git a/.gitignore b/.gitignore index 6b0bb2e7..ba820a93 100644 --- a/.gitignore +++ b/.gitignore @@ -3,8 +3,8 @@ *.egg-info *.swp tags -school/docs/current -school/public/dist +lms/docs/current +lms/public/dist __pycache__/ *.py[cod] *$py.class diff --git a/Contribution.md b/Contribution.md index ce403717..d61d1978 100644 --- a/Contribution.md +++ b/Contribution.md @@ -1,5 +1,5 @@ -1. Go to the apps/school directory of your installation and execute git pull --unshallow to ensure that you have the full git repository. Also fork the frappe/school repository on GitHub. +1. Go to the apps/lms directory of your installation and execute git pull --unshallow to ensure that you have the full git repository. Also fork the frappe/lms repository on GitHub. 1. Check out a working branch in git (e.g. git checkout -b my-new-branch). 1. Make your proposed changes to the source 1. Run your local version (e.g. bench start in your bench installation). Make sure that your changes work the way you want them to. diff --git a/MANIFEST.in b/MANIFEST.in index 75d82839..b85174db 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -4,15 +4,15 @@ include *.json include *.md include *.py include *.txt -recursive-include school *.css -recursive-include school *.csv -recursive-include school *.html -recursive-include school *.ico -recursive-include school *.js -recursive-include school *.json -recursive-include school *.md -recursive-include school *.png -recursive-include school *.py -recursive-include school *.svg -recursive-include school *.txt -recursive-exclude school *.pyc \ No newline at end of file +recursive-include lms *.css +recursive-include lms *.csv +recursive-include lms *.html +recursive-include lms *.ico +recursive-include lms *.js +recursive-include lms *.json +recursive-include lms *.md +recursive-include lms *.png +recursive-include lms *.py +recursive-include lms *.svg +recursive-include lms *.txt +recursive-exclude lms *.pyc diff --git a/README.md b/README.md index 12718f16..37c39ac8 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -## School +## LMS Create online courses without much hassle. -![Course Home](/school/public/images/course-home.png) +![Course Home](/lms/public/images/course-home.png) ## Features diff --git a/bench-installation.md b/bench-installation.md index 25685c35..963b26d2 100644 --- a/bench-installation.md +++ b/bench-installation.md @@ -2,9 +2,9 @@ To setup the repository locally follow the steps mentioned below: 1. Install bench and setup a frappe-bench directory by following the [Installation Steps](https://frappeframework.com/docs/user/en/installation). 1. Start the server by running bench start. -1. In a separate terminal window, create a new site by running bench new-site school.test. -1. Fork the school app +1. In a separate terminal window, create a new site by running bench new-site lms.test. +1. Fork the lms app 1. Run bench get-app . -1. Run bench --site school.test install-app school. -1. Map your site to localhost with the command ```bench --site school.test add-to-hosts``` -1. Now open the URL http://school.test:8000/ in your browser, you should see the app running. +1. Run bench --site lms.test install-app lms. +1. Map your site to localhost with the command ```bench --site lms.test add-to-hosts``` +1. Now open the URL http://lms.test:8000/ in your browser, you should see the app running. diff --git a/docker-compose.yml b/docker-compose.yml index c2525759..90e9e0d3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,9 +11,9 @@ services: bench: image: anandology/frappe-bench:2021.10 volumes: - - .:/opt/frappe-bench/apps/school + - .:/opt/frappe-bench/apps/lms environment: - - FRAPPE_APPS=school + - FRAPPE_APPS=lms - FRAPPE_ALLOW_TESTS=true - FRAPPE_SITE_NAME=frappe.localhost depends_on: diff --git a/docker-installation.md b/docker-installation.md index f26d34ce..99a272f1 100644 --- a/docker-installation.md +++ b/docker-installation.md @@ -1,9 +1,9 @@ **Step 1:** Clone the repo ``` -$ git clone https://github.com/frappe/school.git +$ git clone https://github.com/frappe/lms.git -$ cd school +$ cd lms ``` **Step 2:** Run docker-compose diff --git a/lms/community/__init__.py b/lms/community/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/community/doctype/__init__.py b/lms/community/doctype/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/community/doctype/community_event/__init__.py b/lms/community/doctype/community_event/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/community/doctype/community_event/community_event.js b/lms/community/doctype/community_event/community_event.js deleted file mode 100644 index 0f06c6c5..00000000 --- a/lms/community/doctype/community_event/community_event.js +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2021, Frappe and contributors -// For license information, please see license.txt - -frappe.ui.form.on('Community Event', { - // refresh: function(frm) { - - // } -}); diff --git a/lms/community/doctype/community_event/community_event.json b/lms/community/doctype/community_event/community_event.json deleted file mode 100644 index 0042661f..00000000 --- a/lms/community/doctype/community_event/community_event.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "actions": [], - "autoname": "Prompt", - "creation": "2021-02-12 17:54:52.300451", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "year", - "is_hackathon", - "volunteers" - ], - "fields": [ - { - "fieldname": "year", - "fieldtype": "Select", - "label": "Year", - "options": "\n2021\n2022\n2023\n2024\n2025" - }, - { - "fieldname": "volunteers", - "fieldtype": "Table", - "label": "Volunteers", - "options": "Community Event Volunteer" - }, - { - "default": "0", - "fieldname": "is_hackathon", - "fieldtype": "Check", - "label": "Is Hackathon" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2021-02-15 18:29:26.828720", - "modified_by": "Administrator", - "module": "Community", - "name": "Community Event", - "owner": "Administrator", - "permissions": [ - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "System Manager", - "share": 1, - "write": 1 - } - ], - "quick_entry": 1, - "sort_field": "modified", - "sort_order": "DESC", - "track_changes": 1 -} \ No newline at end of file diff --git a/lms/community/doctype/community_event/community_event.py b/lms/community/doctype/community_event/community_event.py deleted file mode 100644 index 0faaf259..00000000 --- a/lms/community/doctype/community_event/community_event.py +++ /dev/null @@ -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.model.document import Document - -class CommunityEvent(Document): - pass diff --git a/lms/community/doctype/community_event/test_community_event.py b/lms/community/doctype/community_event/test_community_event.py deleted file mode 100644 index d3034c83..00000000 --- a/lms/community/doctype/community_event/test_community_event.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (c) 2021, Frappe and Contributors -# See license.txt -from __future__ import unicode_literals - -# import frappe -import unittest - -class TestCommunityEvent(unittest.TestCase): - pass diff --git a/lms/community/doctype/community_event_volunteer/__init__.py b/lms/community/doctype/community_event_volunteer/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/community/doctype/community_event_volunteer/community_event_volunteer.json b/lms/community/doctype/community_event_volunteer/community_event_volunteer.json deleted file mode 100644 index 8c6f2d3d..00000000 --- a/lms/community/doctype/community_event_volunteer/community_event_volunteer.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "actions": [], - "creation": "2021-02-12 15:55:58.252902", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "member" - ], - "fields": [ - { - "fieldname": "member", - "fieldtype": "Link", - "in_list_view": 1, - "label": "Member", - "options": "User" - } - ], - "index_web_pages_for_search": 1, - "istable": 1, - "links": [], - "modified": "2021-05-21 12:15:51.286478", - "modified_by": "Administrator", - "module": "Community", - "name": "Community Event Volunteer", - "owner": "Administrator", - "permissions": [], - "quick_entry": 1, - "sort_field": "modified", - "sort_order": "DESC", - "track_changes": 1 -} \ No newline at end of file diff --git a/lms/community/doctype/community_event_volunteer/community_event_volunteer.py b/lms/community/doctype/community_event_volunteer/community_event_volunteer.py deleted file mode 100644 index 91f77c96..00000000 --- a/lms/community/doctype/community_event_volunteer/community_event_volunteer.py +++ /dev/null @@ -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.model.document import Document - -class CommunityEventVolunteer(Document): - pass diff --git a/lms/community/doctype/community_participant/__init__.py b/lms/community/doctype/community_participant/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/community/doctype/community_participant/community_participant.js b/lms/community/doctype/community_participant/community_participant.js deleted file mode 100644 index 0776770d..00000000 --- a/lms/community/doctype/community_participant/community_participant.js +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2021, Frappe and contributors -// For license information, please see license.txt - -frappe.ui.form.on('Community Participant', { - // refresh: function(frm) { - - // } -}); diff --git a/lms/community/doctype/community_participant/community_participant.json b/lms/community/doctype/community_participant/community_participant.json deleted file mode 100644 index e824b153..00000000 --- a/lms/community/doctype/community_participant/community_participant.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "actions": [], - "creation": "2021-02-15 11:04:02.748879", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "first_name", - "last_name", - "email", - "student", - "organization_college" - ], - "fields": [ - { - "fieldname": "first_name", - "fieldtype": "Data", - "in_list_view": 1, - "label": "First Name", - "reqd": 1 - }, - { - "fieldname": "last_name", - "fieldtype": "Data", - "in_list_view": 1, - "label": "Last Name", - "reqd": 1 - }, - { - "fieldname": "email", - "fieldtype": "Data", - "in_list_view": 1, - "label": "Email", - "options": "Email", - "reqd": 1 - }, - { - "default": "0", - "fieldname": "student", - "fieldtype": "Check", - "label": "Student" - }, - { - "fieldname": "organization_college", - "fieldtype": "Data", - "label": "Organization/College" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2021-02-15 11:04:02.748879", - "modified_by": "Administrator", - "module": "Community", - "name": "Community Participant", - "owner": "Administrator", - "permissions": [ - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "System Manager", - "share": 1, - "write": 1 - } - ], - "quick_entry": 1, - "sort_field": "modified", - "sort_order": "DESC", - "track_changes": 1 -} \ No newline at end of file diff --git a/lms/community/doctype/community_participant/community_participant.py b/lms/community/doctype/community_participant/community_participant.py deleted file mode 100644 index 1630ae50..00000000 --- a/lms/community/doctype/community_participant/community_participant.py +++ /dev/null @@ -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.model.document import Document - -class CommunityParticipant(Document): - pass diff --git a/lms/community/doctype/community_participant/test_community_participant.py b/lms/community/doctype/community_participant/test_community_participant.py deleted file mode 100644 index dd462f60..00000000 --- a/lms/community/doctype/community_participant/test_community_participant.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (c) 2021, Frappe and Contributors -# See license.txt -from __future__ import unicode_literals - -# import frappe -import unittest - -class TestCommunityParticipant(unittest.TestCase): - pass diff --git a/lms/community/doctype/community_speaker/__init__.py b/lms/community/doctype/community_speaker/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/community/doctype/community_speaker/community_speaker.js b/lms/community/doctype/community_speaker/community_speaker.js deleted file mode 100644 index e80e7b49..00000000 --- a/lms/community/doctype/community_speaker/community_speaker.js +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2021, Frappe and contributors -// For license information, please see license.txt - -frappe.ui.form.on('Community Speaker', { - // refresh: function(frm) { - - // } -}); diff --git a/lms/community/doctype/community_speaker/community_speaker.json b/lms/community/doctype/community_speaker/community_speaker.json deleted file mode 100644 index 881142e5..00000000 --- a/lms/community/doctype/community_speaker/community_speaker.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "actions": [], - "creation": "2021-02-15 10:56:59.876454", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "full_name", - "enabled", - "avatar", - "column_break_3", - "short_bio", - "bio" - ], - "fields": [ - { - "fieldname": "full_name", - "fieldtype": "Data", - "in_list_view": 1, - "label": "Full Name" - }, - { - "fieldname": "avatar", - "fieldtype": "Attach Image", - "label": "Avatar" - }, - { - "fieldname": "short_bio", - "fieldtype": "Data", - "label": "Short Bio" - }, - { - "fieldname": "bio", - "fieldtype": "Small Text", - "label": "Bio" - }, - { - "default": "0", - "fieldname": "enabled", - "fieldtype": "Check", - "label": "Enabled" - }, - { - "fieldname": "column_break_3", - "fieldtype": "Column Break" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2021-02-15 11:01:02.010360", - "modified_by": "Administrator", - "module": "Community", - "name": "Community Speaker", - "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 -} \ No newline at end of file diff --git a/lms/community/doctype/community_speaker/community_speaker.py b/lms/community/doctype/community_speaker/community_speaker.py deleted file mode 100644 index e4fc2765..00000000 --- a/lms/community/doctype/community_speaker/community_speaker.py +++ /dev/null @@ -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.model.document import Document - -class CommunitySpeaker(Document): - pass diff --git a/lms/community/doctype/community_speaker/test_community_speaker.py b/lms/community/doctype/community_speaker/test_community_speaker.py deleted file mode 100644 index 59c62702..00000000 --- a/lms/community/doctype/community_speaker/test_community_speaker.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (c) 2021, Frappe and Contributors -# See license.txt -from __future__ import unicode_literals - -# import frappe -import unittest - -class TestCommunitySpeaker(unittest.TestCase): - pass diff --git a/lms/community/doctype/community_sponsor/__init__.py b/lms/community/doctype/community_sponsor/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/community/doctype/community_sponsor/community_sponsor.js b/lms/community/doctype/community_sponsor/community_sponsor.js deleted file mode 100644 index dddb7898..00000000 --- a/lms/community/doctype/community_sponsor/community_sponsor.js +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2021, Frappe and contributors -// For license information, please see license.txt - -frappe.ui.form.on('Community Sponsor', { - // refresh: function(frm) { - - // } -}); diff --git a/lms/community/doctype/community_sponsor/community_sponsor.json b/lms/community/doctype/community_sponsor/community_sponsor.json deleted file mode 100644 index 3215075a..00000000 --- a/lms/community/doctype/community_sponsor/community_sponsor.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "actions": [], - "autoname": "field:sponsor", - "creation": "2021-02-15 10:46:16.271104", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "sponsor", - "website", - "image", - "speaker", - "timeslot", - "short_intro", - "pitch" - ], - "fields": [ - { - "fieldname": "sponsor", - "fieldtype": "Data", - "in_list_view": 1, - "label": "Sponsor", - "reqd": 1, - "unique": 1 - }, - { - "fieldname": "website", - "fieldtype": "Data", - "label": "Website" - }, - { - "fieldname": "image", - "fieldtype": "Attach Image", - "label": "Image" - }, - { - "fieldname": "speaker", - "fieldtype": "Data", - "label": "Speaker" - }, - { - "fieldname": "timeslot", - "fieldtype": "Datetime", - "label": "Timeslot" - }, - { - "fieldname": "short_intro", - "fieldtype": "Small Text", - "label": "Short Intro" - }, - { - "fieldname": "pitch", - "fieldtype": "Markdown Editor", - "label": "Pitch" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2021-02-15 10:46:16.271104", - "modified_by": "Administrator", - "module": "Community", - "name": "Community Sponsor", - "owner": "Administrator", - "permissions": [ - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "System Manager", - "share": 1, - "write": 1 - } - ], - "quick_entry": 1, - "sort_field": "modified", - "sort_order": "DESC", - "track_changes": 1 -} \ No newline at end of file diff --git a/lms/community/doctype/community_sponsor/community_sponsor.py b/lms/community/doctype/community_sponsor/community_sponsor.py deleted file mode 100644 index bd4feff8..00000000 --- a/lms/community/doctype/community_sponsor/community_sponsor.py +++ /dev/null @@ -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.model.document import Document - -class CommunitySponsor(Document): - pass diff --git a/lms/community/doctype/community_sponsor/test_community_sponsor.py b/lms/community/doctype/community_sponsor/test_community_sponsor.py deleted file mode 100644 index 033ac360..00000000 --- a/lms/community/doctype/community_sponsor/test_community_sponsor.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (c) 2021, Frappe and Contributors -# See license.txt -from __future__ import unicode_literals - -# import frappe -import unittest - -class TestCommunitySponsor(unittest.TestCase): - pass diff --git a/lms/community/doctype/community_talk/__init__.py b/lms/community/doctype/community_talk/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/community/doctype/community_talk/community_talk.js b/lms/community/doctype/community_talk/community_talk.js deleted file mode 100644 index efeca6b4..00000000 --- a/lms/community/doctype/community_talk/community_talk.js +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2021, Frappe and contributors -// For license information, please see license.txt - -frappe.ui.form.on('Community Talk', { - // refresh: function(frm) { - - // } -}); diff --git a/lms/community/doctype/community_talk/community_talk.json b/lms/community/doctype/community_talk/community_talk.json deleted file mode 100644 index 0df953ba..00000000 --- a/lms/community/doctype/community_talk/community_talk.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "actions": [], - "autoname": "field:topic", - "creation": "2021-02-18 16:06:59.882799", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "speaker", - "topic", - "video_link", - "date_and_time", - "event_type", - "event" - ], - "fields": [ - { - "fieldname": "speaker", - "fieldtype": "Data", - "in_list_view": 1, - "label": "Speaker", - "reqd": 1 - }, - { - "fieldname": "topic", - "fieldtype": "Data", - "in_list_view": 1, - "label": "Topic", - "reqd": 1, - "unique": 1 - }, - { - "fieldname": "video_link", - "fieldtype": "Data", - "label": "Video Link" - }, - { - "fieldname": "date_and_time", - "fieldtype": "Datetime", - "label": "Date and Time" - }, - { - "fieldname": "event_type", - "fieldtype": "Link", - "label": "Event Type", - "options": "DocType" - }, - { - "fieldname": "event", - "fieldtype": "Dynamic Link", - "label": "Event", - "options": "event_type" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2021-02-18 16:56:41.526184", - "modified_by": "Administrator", - "module": "Community", - "name": "Community Talk", - "owner": "Administrator", - "permissions": [ - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "System Manager", - "share": 1, - "write": 1 - } - ], - "quick_entry": 1, - "sort_field": "modified", - "sort_order": "DESC", - "track_changes": 1 -} \ No newline at end of file diff --git a/lms/community/doctype/community_talk/community_talk.py b/lms/community/doctype/community_talk/community_talk.py deleted file mode 100644 index 53d939e6..00000000 --- a/lms/community/doctype/community_talk/community_talk.py +++ /dev/null @@ -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.model.document import Document - -class CommunityTalk(Document): - pass diff --git a/lms/community/doctype/community_talk/test_community_talk.py b/lms/community/doctype/community_talk/test_community_talk.py deleted file mode 100644 index bd9902eb..00000000 --- a/lms/community/doctype/community_talk/test_community_talk.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (c) 2021, Frappe and Contributors -# See license.txt -from __future__ import unicode_literals - -# import frappe -import unittest - -class TestCommunityTalk(unittest.TestCase): - pass diff --git a/lms/community/doctype/tshirt_sizes/__init__.py b/lms/community/doctype/tshirt_sizes/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/community/doctype/tshirt_sizes/test_tshirt_sizes.py b/lms/community/doctype/tshirt_sizes/test_tshirt_sizes.py deleted file mode 100644 index 8fe5b122..00000000 --- a/lms/community/doctype/tshirt_sizes/test_tshirt_sizes.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (c) 2021, Frappe and Contributors -# See license.txt -from __future__ import unicode_literals - -# import frappe -import unittest - -class TestTShirtSizes(unittest.TestCase): - pass diff --git a/lms/community/doctype/tshirt_sizes/tshirt_sizes.js b/lms/community/doctype/tshirt_sizes/tshirt_sizes.js deleted file mode 100644 index af2f720a..00000000 --- a/lms/community/doctype/tshirt_sizes/tshirt_sizes.js +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2021, Frappe and contributors -// For license information, please see license.txt - -frappe.ui.form.on('TShirt Sizes', { - // refresh: function(frm) { - - // } -}); diff --git a/lms/community/doctype/tshirt_sizes/tshirt_sizes.json b/lms/community/doctype/tshirt_sizes/tshirt_sizes.json deleted file mode 100644 index ae427958..00000000 --- a/lms/community/doctype/tshirt_sizes/tshirt_sizes.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "actions": [], - "creation": "2021-02-25 17:52:49.813558", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "size", - "quantity" - ], - "fields": [ - { - "fieldname": "size", - "fieldtype": "Select", - "label": "Size", - "options": "S\nM\nL\nXL\nXXL\nXXXL" - }, - { - "fieldname": "quantity", - "fieldtype": "Int", - "label": "Quantity" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2021-02-25 17:52:49.813558", - "modified_by": "Administrator", - "module": "Community", - "name": "TShirt Sizes", - "owner": "Administrator", - "permissions": [ - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "System Manager", - "share": 1, - "write": 1 - } - ], - "quick_entry": 1, - "sort_field": "modified", - "sort_order": "DESC", - "track_changes": 1 -} \ No newline at end of file diff --git a/lms/community/doctype/tshirt_sizes/tshirt_sizes.py b/lms/community/doctype/tshirt_sizes/tshirt_sizes.py deleted file mode 100644 index 7825023a..00000000 --- a/lms/community/doctype/tshirt_sizes/tshirt_sizes.py +++ /dev/null @@ -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.model.document import Document - -class TShirtSizes(Document): - pass diff --git a/lms/community/utils.py b/lms/community/utils.py deleted file mode 100644 index cf189e48..00000000 --- a/lms/community/utils.py +++ /dev/null @@ -1 +0,0 @@ -import frappe diff --git a/lms/community/web_form/__init__.py b/lms/community/web_form/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/community/web_form/join_request/__init__.py b/lms/community/web_form/join_request/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/community/web_form/join_request/join_request.js b/lms/community/web_form/join_request/join_request.js deleted file mode 100644 index 699703c5..00000000 --- a/lms/community/web_form/join_request/join_request.js +++ /dev/null @@ -1,3 +0,0 @@ -frappe.ready(function() { - // bind events here -}) \ No newline at end of file diff --git a/lms/community/web_form/join_request/join_request.json b/lms/community/web_form/join_request/join_request.json deleted file mode 100644 index 16512e81..00000000 --- a/lms/community/web_form/join_request/join_request.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "accept_payment": 0, - "allow_comments": 0, - "allow_delete": 0, - "allow_edit": 0, - "allow_incomplete": 0, - "allow_multiple": 0, - "allow_print": 0, - "amount": 0.0, - "amount_based_on_field": 0, - "apply_document_permissions": 0, - "button_label": "Send Request", - "client_script": "$('.page-header h2').html(`Request to Join \"${frappe.utils.get_url_arg('project_name')}\"`);", - "creation": "2021-02-17 13:20:08.548735", - "doc_type": "Community Project Member", - "docstatus": 0, - "doctype": "Web Form", - "idx": 0, - "is_standard": 1, - "login_required": 0, - "max_attachment_size": 0, - "modified": "2021-02-17 13:50:35.153793", - "modified_by": "Administrator", - "module": "Community", - "name": "join-request", - "owner": "Administrator", - "payment_button_label": "Buy Now", - "published": 1, - "route": "join-request", - "route_to_success_link": 0, - "show_attachments": 0, - "show_in_grid": 0, - "show_sidebar": 0, - "sidebar_items": [], - "success_url": "/join-request", - "title": "Join Request", - "web_form_fields": [ - { - "allow_read_on_all_link_options": 0, - "fieldname": "project", - "fieldtype": "Link", - "hidden": 0, - "label": "Project", - "max_length": 0, - "max_value": 0, - "options": "Community Project", - "read_only": 0, - "reqd": 1, - "show_in_filter": 0 - }, - { - "allow_read_on_all_link_options": 0, - "fieldname": "intro", - "fieldtype": "Small Text", - "hidden": 0, - "label": "Intro", - "max_length": 0, - "max_value": 0, - "read_only": 0, - "reqd": 1, - "show_in_filter": 0 - } - ] -} \ No newline at end of file diff --git a/lms/community/web_form/join_request/join_request.py b/lms/community/web_form/join_request/join_request.py deleted file mode 100644 index 2334f8b2..00000000 --- a/lms/community/web_form/join_request/join_request.py +++ /dev/null @@ -1,7 +0,0 @@ -from __future__ import unicode_literals - -import frappe - -def get_context(context): - # do your magic here - pass diff --git a/lms/community/web_form/project_update/__init__.py b/lms/community/web_form/project_update/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/community/web_form/project_update/project_update.js b/lms/community/web_form/project_update/project_update.js deleted file mode 100644 index 35010cf7..00000000 --- a/lms/community/web_form/project_update/project_update.js +++ /dev/null @@ -1,8 +0,0 @@ -frappe.ready(function () { - // bind events here - frappe.web_form.success_url = `hackathons/project?project=${frappe.utils.get_url_arg('project')}&hackathon=${frappe.utils.get_url_arg('hackathon')}`; - - $('.breadcrumb-container') - .html(`Back to my project`) - .addClass('py-4'); -}) \ No newline at end of file diff --git a/lms/community/web_form/project_update/project_update.json b/lms/community/web_form/project_update/project_update.json deleted file mode 100644 index 7a3929f3..00000000 --- a/lms/community/web_form/project_update/project_update.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "accept_payment": 0, - "allow_comments": 0, - "allow_delete": 0, - "allow_edit": 0, - "allow_incomplete": 0, - "allow_multiple": 0, - "allow_print": 0, - "amount": 0.0, - "amount_based_on_field": 0, - "apply_document_permissions": 0, - "button_label": "Submit", - "creation": "2021-02-18 13:15:09.464515", - "doc_type": "Community Project Update", - "docstatus": 0, - "doctype": "Web Form", - "idx": 0, - "is_standard": 1, - "login_required": 1, - "max_attachment_size": 0, - "modified": "2021-02-18 13:23:41.023545", - "modified_by": "Administrator", - "module": "Community", - "name": "project-update", - "owner": "Administrator", - "payment_button_label": "Buy Now", - "published": 1, - "route": "project-update", - "route_to_success_link": 0, - "show_attachments": 0, - "show_in_grid": 0, - "show_sidebar": 0, - "sidebar_items": [], - "success_url": "/project-update", - "title": "Project Update", - "web_form_fields": [ - { - "allow_read_on_all_link_options": 0, - "fieldname": "project", - "fieldtype": "Link", - "hidden": 0, - "label": "Project", - "max_length": 0, - "max_value": 0, - "options": "Community Project", - "read_only": 0, - "reqd": 1, - "show_in_filter": 0 - }, - { - "allow_read_on_all_link_options": 0, - "fieldname": "update", - "fieldtype": "Data", - "hidden": 0, - "label": "Update", - "max_length": 0, - "max_value": 0, - "read_only": 0, - "reqd": 1, - "show_in_filter": 0 - } - ] -} \ No newline at end of file diff --git a/lms/community/web_form/project_update/project_update.py b/lms/community/web_form/project_update/project_update.py deleted file mode 100644 index 2334f8b2..00000000 --- a/lms/community/web_form/project_update/project_update.py +++ /dev/null @@ -1,7 +0,0 @@ -from __future__ import unicode_literals - -import frappe - -def get_context(context): - # do your magic here - pass diff --git a/lms/community/web_template/__init__.py b/lms/community/web_template/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/community/web_template/multiple_testimonials/__init__.py b/lms/community/web_template/multiple_testimonials/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/community/web_template/multiple_testimonials/multiple_testimonials.html b/lms/community/web_template/multiple_testimonials/multiple_testimonials.html deleted file mode 100644 index ff7e150b..00000000 --- a/lms/community/web_template/multiple_testimonials/multiple_testimonials.html +++ /dev/null @@ -1,47 +0,0 @@ -
{{ _(title) }}
- diff --git a/lms/community/web_template/multiple_testimonials/multiple_testimonials.json b/lms/community/web_template/multiple_testimonials/multiple_testimonials.json deleted file mode 100644 index 5d4db8f0..00000000 --- a/lms/community/web_template/multiple_testimonials/multiple_testimonials.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "__unsaved": 1, - "creation": "2021-11-16 15:22:21.788234", - "docstatus": 0, - "doctype": "Web Template", - "fields": [ - { - "__islocal": 1, - "__unsaved": 1, - "fieldname": "title", - "fieldtype": "Data", - "label": "Title", - "reqd": 0 - }, - { - "__islocal": 1, - "__unsaved": 1, - "fieldname": "testimonials_table", - "fieldtype": "Table Break", - "label": "Testimonials", - "reqd": 0 - }, - { - "__islocal": 1, - "__unsaved": 1, - "fieldname": "testimonials", - "fieldtype": "Link", - "label": "Testimonials", - "options": "LMS Course Review", - "reqd": 0 - } - ], - "idx": 0, - "modified": "2021-11-16 17:17:49.089989", - "modified_by": "Administrator", - "module": "Community", - "name": "Multiple Testimonials", - "owner": "Administrator", - "standard": 1, - "template": "", - "type": "Section" -} \ No newline at end of file diff --git a/lms/community/widgets/Avatar.html b/lms/community/widgets/Avatar.html deleted file mode 100644 index 459f13d6..00000000 --- a/lms/community/widgets/Avatar.html +++ /dev/null @@ -1,14 +0,0 @@ -{% set color = member.get_palette() %} - - - {% if member.user_image %} - - - {% else %} - - {{ frappe.utils.get_abbr(member.full_name) }} - - {% endif %} - - diff --git a/lms/conference/__init__.py b/lms/conference/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/conference/doctype/__init__.py b/lms/conference/doctype/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/conference/doctype/community_conference/__init__.py b/lms/conference/doctype/community_conference/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/conference/doctype/community_conference/community_conference.js b/lms/conference/doctype/community_conference/community_conference.js deleted file mode 100644 index f8b9c511..00000000 --- a/lms/conference/doctype/community_conference/community_conference.js +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2021, FOSS United and contributors -// For license information, please see license.txt - -frappe.ui.form.on('Community Conference', { - // refresh: function(frm) { - - // } -}); diff --git a/lms/conference/doctype/community_conference/community_conference.json b/lms/conference/doctype/community_conference/community_conference.json deleted file mode 100644 index a52bfacf..00000000 --- a/lms/conference/doctype/community_conference/community_conference.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "actions": [], - "autoname": "field:conference_name", - "creation": "2021-02-25 17:12:51.981534", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "conference_name", - "live_stream_url", - "conference_details" - ], - "fields": [ - { - "fieldname": "conference_name", - "fieldtype": "Data", - "label": "Conference Name", - "unique": 1 - }, - { - "fieldname": "live_stream_url", - "fieldtype": "Data", - "label": "Live Stream URL" - }, - { - "fieldname": "conference_details", - "fieldtype": "Markdown Editor", - "label": "Conference Details" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2021-04-06 18:30:18.228083", - "modified_by": "Administrator", - "module": "Conference", - "name": "Community Conference", - "owner": "Administrator", - "permissions": [ - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "System Manager", - "share": 1, - "write": 1 - } - ], - "quick_entry": 1, - "sort_field": "modified", - "sort_order": "DESC", - "track_changes": 1 -} \ No newline at end of file diff --git a/lms/conference/doctype/community_conference/community_conference.py b/lms/conference/doctype/community_conference/community_conference.py deleted file mode 100644 index a463b4cb..00000000 --- a/lms/conference/doctype/community_conference/community_conference.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- 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 CommunityConference(Document): - pass diff --git a/lms/conference/doctype/community_conference/test_community_conference.py b/lms/conference/doctype/community_conference/test_community_conference.py deleted file mode 100644 index 97532c29..00000000 --- a/lms/conference/doctype/community_conference/test_community_conference.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (c) 2021, FOSS United and Contributors -# See license.txt -from __future__ import unicode_literals - -# import frappe -import unittest - -class TestCommunityConference(unittest.TestCase): - pass diff --git a/lms/conference/doctype/community_conference_participant/__init__.py b/lms/conference/doctype/community_conference_participant/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/conference/doctype/community_conference_participant/community_conference_participant.js b/lms/conference/doctype/community_conference_participant/community_conference_participant.js deleted file mode 100644 index 27b4fce2..00000000 --- a/lms/conference/doctype/community_conference_participant/community_conference_participant.js +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2021, FOSS United and contributors -// For license information, please see license.txt - -frappe.ui.form.on('Community Conference Participant', { - // refresh: function(frm) { - - // } -}); diff --git a/lms/conference/doctype/community_conference_participant/community_conference_participant.json b/lms/conference/doctype/community_conference_participant/community_conference_participant.json deleted file mode 100644 index edef1f4b..00000000 --- a/lms/conference/doctype/community_conference_participant/community_conference_participant.json +++ /dev/null @@ -1,147 +0,0 @@ -{ - "actions": [], - "autoname": "CON-.YYYY.-.###", - "creation": "2021-02-25 17:51:23.959033", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "participant_details", - "participant_name", - "participant_designation", - "column_break_4", - "email", - "conference_details", - "year", - "full_conference_tickets", - "user_conference_tickets", - "paid", - "column_break_11", - "tshirt_table", - "tshirt_size", - "currency", - "amount", - "thank_you_email_sent" - ], - "fields": [ - { - "fieldname": "participant_details", - "fieldtype": "Section Break", - "label": "Participant Details" - }, - { - "fieldname": "participant_name", - "fieldtype": "Data", - "in_list_view": 1, - "label": "Participant Name", - "reqd": 1 - }, - { - "fieldname": "participant_designation", - "fieldtype": "Select", - "label": "Participant Designation", - "options": "\nCxO\nAnalyst\nConsultant\nDeveloper\nSystem Administrator\nOther" - }, - { - "fieldname": "column_break_4", - "fieldtype": "Column Break" - }, - { - "fieldname": "email", - "fieldtype": "Data", - "in_list_view": 1, - "label": "Email", - "options": "Email", - "reqd": 1 - }, - { - "fieldname": "conference_details", - "fieldtype": "Section Break", - "label": "Conference Details" - }, - { - "fieldname": "year", - "fieldtype": "Select", - "label": "Year", - "options": "\n2017\n2018\n2019\n2020\n2021\n2022\n2023\n2024\n2025" - }, - { - "fieldname": "full_conference_tickets", - "fieldtype": "Int", - "in_list_view": 1, - "label": "Full Conference Tickets", - "reqd": 1 - }, - { - "fieldname": "user_conference_tickets", - "fieldtype": "Int", - "label": "User Conference Tickets" - }, - { - "default": "0", - "fieldname": "paid", - "fieldtype": "Check", - "label": "Paid" - }, - { - "fieldname": "column_break_11", - "fieldtype": "Column Break" - }, - { - "fieldname": "tshirt_table", - "fieldtype": "Data", - "label": "T-Shirt Sizes" - }, - { - "fieldname": "tshirt_size", - "fieldtype": "Select", - "label": "T-Shirt Size", - "options": "S\nM\nL\nXL\nXXL\nXXXL" - }, - { - "fieldname": "currency", - "fieldtype": "Select", - "in_list_view": 1, - "label": "Currency", - "options": "USD\nINR", - "reqd": 1 - }, - { - "fieldname": "amount", - "fieldtype": "Currency", - "label": "Amount", - "reqd": 1 - }, - { - "default": "0", - "fieldname": "thank_you_email_sent", - "fieldtype": "Check", - "label": "Thank You Email Sent" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2021-03-04 20:13:42.151103", - "modified_by": "Administrator", - "module": "Conference", - "name": "Community Conference Participant", - "owner": "Administrator", - "permissions": [ - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "System Manager", - "share": 1, - "write": 1 - } - ], - "quick_entry": 1, - "sort_field": "modified", - "sort_order": "DESC", - "track_changes": 1 -} \ No newline at end of file diff --git a/lms/conference/doctype/community_conference_participant/community_conference_participant.py b/lms/conference/doctype/community_conference_participant/community_conference_participant.py deleted file mode 100644 index f01dd564..00000000 --- a/lms/conference/doctype/community_conference_participant/community_conference_participant.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- 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 CommunityConferenceParticipant(Document): - pass diff --git a/lms/conference/doctype/community_conference_participant/test_community_conference_participant.py b/lms/conference/doctype/community_conference_participant/test_community_conference_participant.py deleted file mode 100644 index 6c67e091..00000000 --- a/lms/conference/doctype/community_conference_participant/test_community_conference_participant.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (c) 2021, FOSS United and Contributors -# See license.txt -from __future__ import unicode_literals - -# import frappe -import unittest - -class TestCommunityConferenceParticipant(unittest.TestCase): - pass diff --git a/lms/conference/doctype/community_conference_request/__init__.py b/lms/conference/doctype/community_conference_request/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/conference/doctype/community_conference_request/community_conference_request.js b/lms/conference/doctype/community_conference_request/community_conference_request.js deleted file mode 100644 index f842fe79..00000000 --- a/lms/conference/doctype/community_conference_request/community_conference_request.js +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2021, FOSS United and contributors -// For license information, please see license.txt - -frappe.ui.form.on('Community Conference Request', { - // refresh: function(frm) { - - // } -}); diff --git a/lms/conference/doctype/community_conference_request/community_conference_request.json b/lms/conference/doctype/community_conference_request/community_conference_request.json deleted file mode 100644 index 46624a04..00000000 --- a/lms/conference/doctype/community_conference_request/community_conference_request.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "actions": [], - "creation": "2021-02-25 17:19:10.378290", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "contact_name", - "contact_number", - "email", - "organization_name", - "request_type", - "message" - ], - "fields": [ - { - "fieldname": "contact_name", - "fieldtype": "Data", - "label": "Contact Name" - }, - { - "fieldname": "contact_number", - "fieldtype": "Data", - "label": "Contact Number" - }, - { - "fieldname": "email", - "fieldtype": "Data", - "label": "Email" - }, - { - "fieldname": "organization_name", - "fieldtype": "Data", - "label": "Organization Name" - }, - { - "fieldname": "request_type", - "fieldtype": "Select", - "label": "Request Type", - "options": "Sponsorship\nExhibit Program" - }, - { - "fieldname": "message", - "fieldtype": "Text Editor", - "label": "Message" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2021-03-04 20:13:26.130017", - "modified_by": "Administrator", - "module": "Conference", - "name": "Community Conference Request", - "owner": "Administrator", - "permissions": [ - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "System Manager", - "share": 1, - "write": 1 - } - ], - "quick_entry": 1, - "sort_field": "modified", - "sort_order": "DESC", - "track_changes": 1 -} \ No newline at end of file diff --git a/lms/conference/doctype/community_conference_request/community_conference_request.py b/lms/conference/doctype/community_conference_request/community_conference_request.py deleted file mode 100644 index 9d5d7366..00000000 --- a/lms/conference/doctype/community_conference_request/community_conference_request.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- 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 CommunityConferenceRequest(Document): - pass diff --git a/lms/conference/doctype/community_conference_request/test_community_conference_request.py b/lms/conference/doctype/community_conference_request/test_community_conference_request.py deleted file mode 100644 index 976c13ef..00000000 --- a/lms/conference/doctype/community_conference_request/test_community_conference_request.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (c) 2021, FOSS United and Contributors -# See license.txt -from __future__ import unicode_literals - -# import frappe -import unittest - -class TestCommunityConferenceRequest(unittest.TestCase): - pass diff --git a/lms/event_management/__init__.py b/lms/event_management/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/event_management/doctype/__init__.py b/lms/event_management/doctype/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/event_management/doctype/attendee/__init__.py b/lms/event_management/doctype/attendee/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/event_management/doctype/attendee/attendee.js b/lms/event_management/doctype/attendee/attendee.js deleted file mode 100644 index ffd0ce8e..00000000 --- a/lms/event_management/doctype/attendee/attendee.js +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) 2021, FOSS United and contributors -// For license information, please see license.txt - -frappe.ui.form.on('Attendee', { - onload: function (frm) { - frm.set_query('user', function (doc) { - return { - filters: { - "ignore_user_type": 1, - } - }; - }); - } -}); diff --git a/lms/event_management/doctype/attendee/attendee.json b/lms/event_management/doctype/attendee/attendee.json deleted file mode 100644 index 5152edaa..00000000 --- a/lms/event_management/doctype/attendee/attendee.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "actions": [], - "creation": "2021-08-11 10:07:53.262504", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "user", - "full_name", - "column_break_3", - "company", - "is_paid", - "section_break_6", - "what_are_you_hoping_to_learn" - ], - "fields": [ - { - "fieldname": "company", - "fieldtype": "Data", - "label": "Company" - }, - { - "fieldname": "what_are_you_hoping_to_learn", - "fieldtype": "Text", - "label": "What are you hoping to learn?" - }, - { - "fieldname": "user", - "fieldtype": "Link", - "label": "User", - "options": "User" - }, - { - "fetch_from": "user.full_name", - "fieldname": "full_name", - "fieldtype": "Data", - "label": "Full Name", - "read_only": 1 - }, - { - "default": "0", - "fieldname": "is_paid", - "fieldtype": "Check", - "label": "Is Paid" - }, - { - "fieldname": "column_break_3", - "fieldtype": "Column Break" - }, - { - "fieldname": "section_break_6", - "fieldtype": "Section Break" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2021-08-20 17:03:09.741997", - "modified_by": "Administrator", - "module": "Event Management", - "name": "Attendee", - "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", - "title_field": "user", - "track_changes": 1 -} \ No newline at end of file diff --git a/lms/event_management/doctype/attendee/attendee.py b/lms/event_management/doctype/attendee/attendee.py deleted file mode 100644 index e883ee2a..00000000 --- a/lms/event_management/doctype/attendee/attendee.py +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) 2021, FOSS United and contributors -# For license information, please see license.txt - -# import frappe -from frappe.model.document import Document - -class Attendee(Document): - pass diff --git a/lms/event_management/doctype/attendee/test_attendee.py b/lms/event_management/doctype/attendee/test_attendee.py deleted file mode 100644 index 92678d90..00000000 --- a/lms/event_management/doctype/attendee/test_attendee.py +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) 2021, FOSS United and Contributors -# See license.txt - -# import frappe -import unittest - -class TestAttendee(unittest.TestCase): - pass diff --git a/lms/event_management/doctype/event_details/__init__.py b/lms/event_management/doctype/event_details/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/event_management/doctype/event_details/event_details.js b/lms/event_management/doctype/event_details/event_details.js deleted file mode 100644 index 1d2a2098..00000000 --- a/lms/event_management/doctype/event_details/event_details.js +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2021, FOSS United and contributors -// For license information, please see license.txt - -frappe.ui.form.on('Event Details', { - // refresh: function(frm) { - - // } -}); diff --git a/lms/event_management/doctype/event_details/event_details.json b/lms/event_management/doctype/event_details/event_details.json deleted file mode 100644 index d9566509..00000000 --- a/lms/event_management/doctype/event_details/event_details.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "actions": [], - "autoname": "field:event_name", - "creation": "2021-08-11 10:05:41.072432", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "event_name", - "start_date", - "end_date", - "event_description" - ], - "fields": [ - { - "fieldname": "event_name", - "fieldtype": "Data", - "in_list_view": 1, - "label": "Event Name", - "reqd": 1, - "unique": 1 - }, - { - "fieldname": "start_date", - "fieldtype": "Date", - "in_list_view": 1, - "label": "Start Date", - "reqd": 1 - }, - { - "fieldname": "end_date", - "fieldtype": "Date", - "in_list_view": 1, - "label": "End Date", - "reqd": 1 - }, - { - "fieldname": "event_description", - "fieldtype": "Markdown Editor", - "in_list_view": 1, - "label": "Event Description" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2021-08-18 23:51:30.432691", - "modified_by": "Administrator", - "module": "Event Management", - "name": "Event Details", - "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 -} \ No newline at end of file diff --git a/lms/event_management/doctype/event_details/event_details.py b/lms/event_management/doctype/event_details/event_details.py deleted file mode 100644 index 7e2f9c9b..00000000 --- a/lms/event_management/doctype/event_details/event_details.py +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) 2021, FOSS United and contributors -# For license information, please see license.txt - -# import frappe -from frappe.model.document import Document - -class EventDetails(Document): - pass diff --git a/lms/event_management/doctype/event_details/test_event_details.py b/lms/event_management/doctype/event_details/test_event_details.py deleted file mode 100644 index 00aa9a67..00000000 --- a/lms/event_management/doctype/event_details/test_event_details.py +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) 2021, FOSS United and Contributors -# See license.txt - -# import frappe -import unittest - -class TestEventDetails(unittest.TestCase): - pass diff --git a/lms/event_management/doctype/event_ticket/__init__.py b/lms/event_management/doctype/event_ticket/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/event_management/doctype/event_ticket/event_ticket.js b/lms/event_management/doctype/event_ticket/event_ticket.js deleted file mode 100644 index 48656188..00000000 --- a/lms/event_management/doctype/event_ticket/event_ticket.js +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2021, FOSS United and contributors -// For license information, please see license.txt - -frappe.ui.form.on('Event Ticket', { - // refresh: function(frm) { - - // } -}); diff --git a/lms/event_management/doctype/event_ticket/event_ticket.json b/lms/event_management/doctype/event_ticket/event_ticket.json deleted file mode 100644 index 5709601c..00000000 --- a/lms/event_management/doctype/event_ticket/event_ticket.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "actions": [], - "creation": "2021-08-11 11:17:28.452289", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "event", - "ticket", - "attendee" - ], - "fields": [ - { - "fieldname": "ticket", - "fieldtype": "Data", - "label": "Ticket" - }, - { - "fieldname": "attendee", - "fieldtype": "Link", - "label": "attendee", - "options": "Attendee" - }, - { - "fieldname": "event", - "fieldtype": "Link", - "label": "Event", - "options": "Event Details" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2021-08-20 13:38:28.688115", - "modified_by": "Administrator", - "module": "Event Management", - "name": "Event Ticket", - "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 -} \ No newline at end of file diff --git a/lms/event_management/doctype/event_ticket/event_ticket.py b/lms/event_management/doctype/event_ticket/event_ticket.py deleted file mode 100644 index 063eca2f..00000000 --- a/lms/event_management/doctype/event_ticket/event_ticket.py +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) 2021, FOSS United and contributors -# For license information, please see license.txt - -# import frappe -from frappe.model.document import Document - -class EventTicket(Document): - pass diff --git a/lms/event_management/doctype/event_ticket/test_event_ticket.py b/lms/event_management/doctype/event_ticket/test_event_ticket.py deleted file mode 100644 index 987b32dc..00000000 --- a/lms/event_management/doctype/event_ticket/test_event_ticket.py +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) 2021, FOSS United and Contributors -# See license.txt - -# import frappe -import unittest - -class TestEventTicket(unittest.TestCase): - pass diff --git a/lms/event_management/doctype/exhibitor/__init__.py b/lms/event_management/doctype/exhibitor/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/event_management/doctype/exhibitor/exhibitor.js b/lms/event_management/doctype/exhibitor/exhibitor.js deleted file mode 100644 index 598b4d31..00000000 --- a/lms/event_management/doctype/exhibitor/exhibitor.js +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2021, FOSS United and contributors -// For license information, please see license.txt - -frappe.ui.form.on('Exhibitor', { - // refresh: function(frm) { - - // } -}); diff --git a/lms/event_management/doctype/exhibitor/exhibitor.json b/lms/event_management/doctype/exhibitor/exhibitor.json deleted file mode 100644 index f5562c10..00000000 --- a/lms/event_management/doctype/exhibitor/exhibitor.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "actions": [], - "creation": "2021-08-16 16:26:46.189119", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "event", - "is_paid", - "column_break_3", - "user", - "full_name", - "company", - "section_break_7", - "description" - ], - "fields": [ - { - "fetch_from": "user.full_name", - "fieldname": "full_name", - "fieldtype": "Data", - "label": "Full Name", - "read_only": 1 - }, - { - "fieldname": "company", - "fieldtype": "Data", - "label": "Company " - }, - { - "fieldname": "description", - "fieldtype": "Text Editor", - "label": "Description" - }, - { - "default": "0", - "fieldname": "is_paid", - "fieldtype": "Check", - "label": "Is Paid" - }, - { - "fieldname": "user", - "fieldtype": "Link", - "label": "User", - "options": "User" - }, - { - "fieldname": "event", - "fieldtype": "Link", - "label": "Event", - "options": "Event Details" - }, - { - "fieldname": "column_break_3", - "fieldtype": "Column Break" - }, - { - "fieldname": "section_break_7", - "fieldtype": "Section Break" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2021-08-20 16:32:58.031324", - "modified_by": "Administrator", - "module": "Event Management", - "name": "Exhibitor", - "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", - "title_field": "user", - "track_changes": 1 -} \ No newline at end of file diff --git a/lms/event_management/doctype/exhibitor/exhibitor.py b/lms/event_management/doctype/exhibitor/exhibitor.py deleted file mode 100644 index d75e2e20..00000000 --- a/lms/event_management/doctype/exhibitor/exhibitor.py +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) 2021, FOSS United and contributors -# For license information, please see license.txt - -# import frappe -from frappe.model.document import Document - -class Exhibitor(Document): - pass diff --git a/lms/event_management/doctype/exhibitor/test_exhibitor.py b/lms/event_management/doctype/exhibitor/test_exhibitor.py deleted file mode 100644 index 9c391d62..00000000 --- a/lms/event_management/doctype/exhibitor/test_exhibitor.py +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) 2021, FOSS United and Contributors -# See license.txt - -# import frappe -import unittest - -class TestExhibitor(unittest.TestCase): - pass diff --git a/lms/event_management/doctype/host/__init__.py b/lms/event_management/doctype/host/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/event_management/doctype/host/host.js b/lms/event_management/doctype/host/host.js deleted file mode 100644 index ab3acc05..00000000 --- a/lms/event_management/doctype/host/host.js +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2021, FOSS United and contributors -// For license information, please see license.txt - -frappe.ui.form.on('Host', { - // refresh: function(frm) { - - // } -}); diff --git a/lms/event_management/doctype/host/host.json b/lms/event_management/doctype/host/host.json deleted file mode 100644 index cbb96c7e..00000000 --- a/lms/event_management/doctype/host/host.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "actions": [], - "creation": "2021-08-11 10:51:47.234690", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "event", - "user", - "full_name" - ], - "fields": [ - { - "fieldname": "event", - "fieldtype": "Link", - "label": "Event", - "options": "Event Details" - }, - { - "fieldname": "full_name", - "fieldtype": "Data", - "in_list_view": 1, - "label": "Full Name", - "unique": 1 - }, - { - "fieldname": "user", - "fieldtype": "Data", - "label": "User" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2021-08-20 17:03:26.733195", - "modified_by": "Administrator", - "module": "Event Management", - "name": "Host", - "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", - "title_field": "user", - "track_changes": 1 -} \ No newline at end of file diff --git a/lms/event_management/doctype/host/host.py b/lms/event_management/doctype/host/host.py deleted file mode 100644 index f2cc77df..00000000 --- a/lms/event_management/doctype/host/host.py +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) 2021, FOSS United and contributors -# For license information, please see license.txt - -# import frappe -from frappe.model.document import Document - -class Host(Document): - pass diff --git a/lms/event_management/doctype/host/test_host.py b/lms/event_management/doctype/host/test_host.py deleted file mode 100644 index f3b03f13..00000000 --- a/lms/event_management/doctype/host/test_host.py +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) 2021, FOSS United and Contributors -# See license.txt - -# import frappe -import unittest - -class TestHost(unittest.TestCase): - pass diff --git a/lms/event_management/doctype/speaker/__init__.py b/lms/event_management/doctype/speaker/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/event_management/doctype/speaker/speaker.js b/lms/event_management/doctype/speaker/speaker.js deleted file mode 100644 index 1736857c..00000000 --- a/lms/event_management/doctype/speaker/speaker.js +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) 2021, FOSS United and contributors -// For license information, please see license.txt - -frappe.ui.form.on('Speaker', { - onload: function (frm) { - frm.set_query('user', function (doc) { - return { - filters: { - "ignore_user_type": 1, - } - }; - }); - } -}); diff --git a/lms/event_management/doctype/speaker/speaker.json b/lms/event_management/doctype/speaker/speaker.json deleted file mode 100644 index e000c4a3..00000000 --- a/lms/event_management/doctype/speaker/speaker.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "actions": [], - "creation": "2021-08-11 10:37:32.124651", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "event", - "company", - "column_break_8", - "user", - "full_name" - ], - "fields": [ - { - "fieldname": "user", - "fieldtype": "Link", - "in_list_view": 1, - "label": "User", - "options": "User" - }, - { - "fetch_from": "user.full_name", - "fieldname": "full_name", - "fieldtype": "Data", - "in_list_view": 1, - "label": "Full Name", - "read_only": 1 - }, - { - "fieldname": "company", - "fieldtype": "Data", - "in_list_view": 1, - "label": "Company" - }, - { - "fieldname": "column_break_8", - "fieldtype": "Column Break" - }, - { - "fieldname": "event", - "fieldtype": "Link", - "label": "Event", - "options": "Event Details" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2021-08-20 16:53:43.968260", - "modified_by": "Administrator", - "module": "Event Management", - "name": "Speaker", - "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", - "title_field": "user", - "track_changes": 1 -} \ No newline at end of file diff --git a/lms/event_management/doctype/speaker/speaker.py b/lms/event_management/doctype/speaker/speaker.py deleted file mode 100644 index fb99b3d5..00000000 --- a/lms/event_management/doctype/speaker/speaker.py +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) 2021, FOSS United and contributors -# For license information, please see license.txt - -# import frappe -from frappe.model.document import Document - -class Speaker(Document): - pass diff --git a/lms/event_management/doctype/speaker/test_speaker.py b/lms/event_management/doctype/speaker/test_speaker.py deleted file mode 100644 index 0e802137..00000000 --- a/lms/event_management/doctype/speaker/test_speaker.py +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) 2021, FOSS United and Contributors -# See license.txt - -# import frappe -import unittest - -class TestSpeaker(unittest.TestCase): - pass diff --git a/lms/event_management/doctype/talk/__init__.py b/lms/event_management/doctype/talk/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/event_management/doctype/talk/talk.js b/lms/event_management/doctype/talk/talk.js deleted file mode 100644 index 3550ddcd..00000000 --- a/lms/event_management/doctype/talk/talk.js +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2021, FOSS United and contributors -// For license information, please see license.txt - -frappe.ui.form.on('Talk', { - // refresh: function(frm) { - - // } -}); diff --git a/lms/event_management/doctype/talk/talk.json b/lms/event_management/doctype/talk/talk.json deleted file mode 100644 index c09b583f..00000000 --- a/lms/event_management/doctype/talk/talk.json +++ /dev/null @@ -1,139 +0,0 @@ -{ - "actions": [], - "creation": "2021-08-18 08:42:58.711932", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "event", - "title", - "url", - "column_break_5", - "speaker", - "category", - "thumbnail", - "schedule_section", - "date", - "status", - "column_break_11", - "start_time", - "end_time", - "section_break_9", - "about", - "attachment", - "name_of_the_speaker" - ], - "fields": [ - { - "fieldname": "title", - "fieldtype": "Data", - "label": "Title" - }, - { - "fieldname": "name_of_the_speaker", - "fieldtype": "Data", - "label": "Name of the Speaker" - }, - { - "fieldname": "url", - "fieldtype": "Data", - "label": "Video Embed Link" - }, - { - "fieldname": "thumbnail", - "fieldtype": "Attach", - "label": "Preview Image" - }, - { - "fieldname": "event", - "fieldtype": "Link", - "label": "Event", - "options": "Event Details" - }, - { - "fieldname": "about", - "fieldtype": "Text", - "label": "About the Talk" - }, - { - "fieldname": "attachment", - "fieldtype": "Attach", - "label": "Attachment" - }, - { - "fieldname": "speaker", - "fieldtype": "Link", - "label": "Speaker", - "options": "Speaker" - }, - { - "default": "Pending", - "fieldname": "status", - "fieldtype": "Select", - "in_list_view": 1, - "label": "Status", - "options": "Pending\nApproved\nRejected" - }, - { - "fieldname": "column_break_5", - "fieldtype": "Column Break" - }, - { - "fieldname": "section_break_9", - "fieldtype": "Section Break" - }, - { - "fieldname": "category", - "fieldtype": "Data", - "label": "Category" - }, - { - "fieldname": "schedule_section", - "fieldtype": "Section Break" - }, - { - "fieldname": "date", - "fieldtype": "Date", - "label": "Date" - }, - { - "fieldname": "column_break_11", - "fieldtype": "Column Break" - }, - { - "fieldname": "start_time", - "fieldtype": "Time", - "label": "Start Time" - }, - { - "fieldname": "end_time", - "fieldtype": "Time", - "label": "End Time" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2021-08-24 16:47:34.557010", - "modified_by": "Administrator", - "module": "Event Management", - "name": "Talk", - "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", - "title_field": "title", - "track_changes": 1 -} \ No newline at end of file diff --git a/lms/event_management/doctype/talk/talk.py b/lms/event_management/doctype/talk/talk.py deleted file mode 100644 index 5ecbfe68..00000000 --- a/lms/event_management/doctype/talk/talk.py +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright (c) 2021, FOSS United and contributors -# For license information, please see license.txt - -import frappe -from frappe.model.document import Document - -class Talk(Document): - def before_save(self): - if not self.speaker: - self.save_speaker() - - def save_speaker(self): - exists = frappe.db.exists({ - 'doctype': 'Speaker', - 'user': frappe.session.user - }) - - if exists: - self.speaker = frappe.db.get_value( - 'Speaker', {'user': frappe.session.user}, ["name"]) - - else: - speaker = frappe.get_doc({ - "doctype": "Speaker", - "event": self.event, - "user": frappe.session.user - }) - speaker.save(ignore_permissions=True) - self.speaker = speaker.name diff --git a/lms/event_management/doctype/talk/test_talk.py b/lms/event_management/doctype/talk/test_talk.py deleted file mode 100644 index 5be72d5e..00000000 --- a/lms/event_management/doctype/talk/test_talk.py +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) 2021, FOSS United and Contributors -# See license.txt - -# import frappe -import unittest - -class TestTalk(unittest.TestCase): - pass diff --git a/lms/event_management/web_form/__init__.py b/lms/event_management/web_form/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/event_management/web_form/attendee_registration/__init__.py b/lms/event_management/web_form/attendee_registration/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/event_management/web_form/attendee_registration/attendee_registration.js b/lms/event_management/web_form/attendee_registration/attendee_registration.js deleted file mode 100644 index b1032fda..00000000 --- a/lms/event_management/web_form/attendee_registration/attendee_registration.js +++ /dev/null @@ -1,11 +0,0 @@ -frappe.ready(function () { - frappe.web_form.after_load = () => { - frappe.web_form.set_value("user", frappe.session.user); - } - - frappe.web_form.after_save = () => { - setTimeout(function () { - window.location.href = '/about'; - }, 2000); - } -}) \ No newline at end of file diff --git a/lms/event_management/web_form/attendee_registration/attendee_registration.json b/lms/event_management/web_form/attendee_registration/attendee_registration.json deleted file mode 100644 index 6c47d185..00000000 --- a/lms/event_management/web_form/attendee_registration/attendee_registration.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "accept_payment": 0, - "allow_comments": 0, - "allow_delete": 0, - "allow_edit": 0, - "allow_incomplete": 0, - "allow_multiple": 0, - "allow_print": 0, - "amount": 0.0, - "amount_based_on_field": 0, - "apply_document_permissions": 0, - "button_label": "", - "creation": "2021-08-19 15:26:56.594526", - "custom_css": "[data-doctype=\"Web Form\"] {\n max-width: 720px;\n margin: 6rem auto;\n}", - "doc_type": "Attendee", - "docstatus": 0, - "doctype": "Web Form", - "idx": 0, - "is_standard": 1, - "login_required": 1, - "max_attachment_size": 0, - "modified": "2021-08-24 19:57:25.516319", - "modified_by": "Administrator", - "module": "Event Management", - "name": "attendee-registration", - "owner": "Administrator", - "payment_button_label": "Buy Now", - "published": 1, - "route": "attendee-registration", - "route_to_success_link": 1, - "show_attachments": 0, - "show_in_grid": 0, - "show_sidebar": 0, - "sidebar_items": [], - "success_url": "/about", - "title": "Attendee Registration", - "web_form_fields": [ - { - "allow_read_on_all_link_options": 0, - "default": "", - "fieldname": "user", - "fieldtype": "Data", - "hidden": 0, - "label": "User", - "max_length": 0, - "max_value": 0, - "options": "User", - "read_only": 1, - "reqd": 0, - "show_in_filter": 0 - }, - { - "allow_read_on_all_link_options": 0, - "fieldname": "company", - "fieldtype": "Data", - "hidden": 0, - "label": "Company", - "max_length": 0, - "max_value": 0, - "read_only": 0, - "reqd": 0, - "show_in_filter": 0 - }, - { - "allow_read_on_all_link_options": 0, - "fieldname": "what_are_you_hoping_to_learn", - "fieldtype": "Text", - "hidden": 0, - "label": "What are you hoping to learn", - "max_length": 0, - "max_value": 0, - "read_only": 0, - "reqd": 0, - "show_in_filter": 0 - } - ] -} diff --git a/lms/event_management/web_form/attendee_registration/attendee_registration.py b/lms/event_management/web_form/attendee_registration/attendee_registration.py deleted file mode 100644 index e1ada619..00000000 --- a/lms/event_management/web_form/attendee_registration/attendee_registration.py +++ /dev/null @@ -1,5 +0,0 @@ -import frappe - -def get_context(context): - # do your magic here - pass diff --git a/lms/event_management/web_form/exhibitor_registration/__init__.py b/lms/event_management/web_form/exhibitor_registration/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/event_management/web_form/exhibitor_registration/exhibitor_registration.js b/lms/event_management/web_form/exhibitor_registration/exhibitor_registration.js deleted file mode 100644 index 9d495644..00000000 --- a/lms/event_management/web_form/exhibitor_registration/exhibitor_registration.js +++ /dev/null @@ -1,12 +0,0 @@ -frappe.ready(function () { - - frappe.web_form.after_load = () => { - frappe.web_form.set_value("user", frappe.session.user); - } - - frappe.web_form.after_save = () => { - setTimeout(function () { - window.location.href = '/about'; - }, 2000); - } -}) diff --git a/lms/event_management/web_form/exhibitor_registration/exhibitor_registration.json b/lms/event_management/web_form/exhibitor_registration/exhibitor_registration.json deleted file mode 100644 index cba14dfe..00000000 --- a/lms/event_management/web_form/exhibitor_registration/exhibitor_registration.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "accept_payment": 0, - "allow_comments": 0, - "allow_delete": 0, - "allow_edit": 0, - "allow_incomplete": 0, - "allow_multiple": 0, - "allow_print": 0, - "amount": 0.0, - "amount_based_on_field": 0, - "apply_document_permissions": 0, - "button_label": "Save", - "creation": "2021-08-16 16:27:06.566564", - "custom_css": "[data-doctype=\"Web Form\"] {\n max-width: 720px;\n margin: 6rem auto;\n}", - "doc_type": "Exhibitor", - "docstatus": 0, - "doctype": "Web Form", - "idx": 0, - "is_standard": 1, - "login_required": 1, - "max_attachment_size": 0, - "modified": "2021-08-23 10:12:24.038572", - "modified_by": "Administrator", - "module": "Event Management", - "name": "exhibitor-registration", - "owner": "Administrator", - "payment_button_label": "Buy Now", - "published": 1, - "route": "exhibitor-registration", - "route_to_success_link": 0, - "show_attachments": 0, - "show_in_grid": 0, - "show_sidebar": 0, - "sidebar_items": [], - "success_url": "", - "title": "Exhibitor Registration", - "web_form_fields": [ - { - "allow_read_on_all_link_options": 0, - "fieldname": "user", - "fieldtype": "Data", - "hidden": 0, - "label": "User", - "max_length": 0, - "max_value": 0, - "options": "User", - "read_only": 1, - "reqd": 0, - "show_in_filter": 0 - }, - { - "allow_read_on_all_link_options": 0, - "fieldname": "company", - "fieldtype": "Data", - "hidden": 0, - "label": "Company ", - "max_length": 0, - "max_value": 0, - "read_only": 0, - "reqd": 0, - "show_in_filter": 0 - }, - { - "allow_read_on_all_link_options": 0, - "fieldname": "description", - "fieldtype": "Text Editor", - "hidden": 0, - "label": "Description", - "max_length": 0, - "max_value": 0, - "read_only": 0, - "reqd": 0, - "show_in_filter": 0 - } - ] -} \ No newline at end of file diff --git a/lms/event_management/web_form/exhibitor_registration/exhibitor_registration.py b/lms/event_management/web_form/exhibitor_registration/exhibitor_registration.py deleted file mode 100644 index e1ada619..00000000 --- a/lms/event_management/web_form/exhibitor_registration/exhibitor_registration.py +++ /dev/null @@ -1,5 +0,0 @@ -import frappe - -def get_context(context): - # do your magic here - pass diff --git a/lms/event_management/web_form/purpose_a_talk/__init__.py b/lms/event_management/web_form/purpose_a_talk/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/event_management/web_form/purpose_a_talk/purpose_a_talk.js b/lms/event_management/web_form/purpose_a_talk/purpose_a_talk.js deleted file mode 100644 index b1032fda..00000000 --- a/lms/event_management/web_form/purpose_a_talk/purpose_a_talk.js +++ /dev/null @@ -1,11 +0,0 @@ -frappe.ready(function () { - frappe.web_form.after_load = () => { - frappe.web_form.set_value("user", frappe.session.user); - } - - frappe.web_form.after_save = () => { - setTimeout(function () { - window.location.href = '/about'; - }, 2000); - } -}) \ No newline at end of file diff --git a/lms/event_management/web_form/purpose_a_talk/purpose_a_talk.json b/lms/event_management/web_form/purpose_a_talk/purpose_a_talk.json deleted file mode 100644 index c3bb2c6e..00000000 --- a/lms/event_management/web_form/purpose_a_talk/purpose_a_talk.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "accept_payment": 0, - "allow_comments": 0, - "allow_delete": 0, - "allow_edit": 0, - "allow_incomplete": 0, - "allow_multiple": 0, - "allow_print": 0, - "amount": 0.0, - "amount_based_on_field": 0, - "apply_document_permissions": 0, - "button_label": "Submit", - "client_script": "", - "creation": "2021-08-19 15:16:22.341723", - "custom_css": "[data-doctype=\"Web Form\"] {\n max-width: 720px;\n margin: 6rem auto;\n}", - "doc_type": "Talk", - "docstatus": 0, - "doctype": "Web Form", - "idx": 0, - "is_standard": 1, - "login_required": 1, - "max_attachment_size": 0, - "modified": "2021-08-24 19:57:06.806994", - "modified_by": "Administrator", - "module": "Event Management", - "name": "purpose-a-talk", - "owner": "Administrator", - "payment_button_label": "Buy Now", - "published": 1, - "route": "propose-talk", - "route_to_success_link": 0, - "show_attachments": 0, - "show_in_grid": 0, - "show_sidebar": 0, - "sidebar_items": [], - "success_message": "Talk Submitted!", - "success_url": "/purpose-a-talk", - "title": "Propose a Talk", - "web_form_fields": [ - { - "allow_read_on_all_link_options": 0, - "fieldname": "title", - "fieldtype": "Data", - "hidden": 0, - "label": "Title", - "max_length": 0, - "max_value": 0, - "read_only": 0, - "reqd": 1, - "show_in_filter": 0 - }, - { - "allow_read_on_all_link_options": 0, - "fieldname": "category", - "fieldtype": "Data", - "hidden": 0, - "label": "Category", - "max_length": 0, - "max_value": 0, - "read_only": 0, - "reqd": 0, - "show_in_filter": 0 - }, - { - "allow_read_on_all_link_options": 0, - "fieldname": "event", - "fieldtype": "Data", - "hidden": 0, - "label": "Event", - "max_length": 0, - "max_value": 0, - "options": "Event Details", - "read_only": 1, - "reqd": 0, - "show_in_filter": 0 - }, - { - "allow_read_on_all_link_options": 0, - "fieldname": "thumbnail", - "fieldtype": "Attach", - "hidden": 0, - "label": "Preview Image", - "max_length": 0, - "max_value": 0, - "read_only": 0, - "reqd": 0, - "show_in_filter": 0 - }, - { - "allow_read_on_all_link_options": 0, - "fieldname": "about", - "fieldtype": "Text Editor", - "hidden": 0, - "label": "About", - "max_length": 0, - "max_value": 0, - "read_only": 0, - "reqd": 1, - "show_in_filter": 0 - } - ] -} \ No newline at end of file diff --git a/lms/event_management/web_form/purpose_a_talk/purpose_a_talk.py b/lms/event_management/web_form/purpose_a_talk/purpose_a_talk.py deleted file mode 100644 index e1ada619..00000000 --- a/lms/event_management/web_form/purpose_a_talk/purpose_a_talk.py +++ /dev/null @@ -1,5 +0,0 @@ -import frappe - -def get_context(context): - # do your magic here - pass diff --git a/lms/event_management/web_form/speaker_registration/__init__.py b/lms/event_management/web_form/speaker_registration/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/event_management/web_form/speaker_registration/speaker_registration.js b/lms/event_management/web_form/speaker_registration/speaker_registration.js deleted file mode 100644 index 52cbfe0e..00000000 --- a/lms/event_management/web_form/speaker_registration/speaker_registration.js +++ /dev/null @@ -1,10 +0,0 @@ -frappe.ready(function () { - frappe.web_form.after_load = () => { - frappe.web_form.set_value("user", frappe.session.user); - } - frappe.web_form.after_save = () => { - setTimeout(function () { - window.location.href = '/event/conference2021/propose-talk'; - }, 2000); - } -}) \ No newline at end of file diff --git a/lms/event_management/web_form/speaker_registration/speaker_registration.json b/lms/event_management/web_form/speaker_registration/speaker_registration.json deleted file mode 100644 index d2e0ccfa..00000000 --- a/lms/event_management/web_form/speaker_registration/speaker_registration.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "accept_payment": 0, - "allow_comments": 0, - "allow_delete": 0, - "allow_edit": 0, - "allow_incomplete": 0, - "allow_multiple": 0, - "allow_print": 0, - "amount": 0.0, - "amount_based_on_field": 0, - "apply_document_permissions": 0, - "button_label": "Register", - "creation": "2021-08-19 15:29:01.167930", - "custom_css": "[data-doctype=\"Web Form\"] {\n max-width: 720px;\n margin: 6rem auto;\n}", - "doc_type": "Speaker", - "docstatus": 0, - "doctype": "Web Form", - "idx": 0, - "is_standard": 1, - "login_required": 1, - "max_attachment_size": 0, - "modified": "2021-08-20 16:16:51.107177", - "modified_by": "Administrator", - "module": "Event Management", - "name": "speaker-registration", - "owner": "Administrator", - "payment_button_label": "Buy Now", - "published": 1, - "route": "speaker-registration", - "route_to_success_link": 1, - "show_attachments": 0, - "show_in_grid": 0, - "show_sidebar": 0, - "sidebar_items": [], - "success_url": "/speaker-registration", - "title": "Speaker Registration", - "web_form_fields": [ - { - "allow_read_on_all_link_options": 0, - "fieldname": "event", - "fieldtype": "Link", - "hidden": 0, - "label": "Event", - "max_length": 0, - "max_value": 0, - "options": "Event Details", - "read_only": 1, - "reqd": 0, - "show_in_filter": 0 - }, - { - "allow_read_on_all_link_options": 0, - "fieldname": "user", - "fieldtype": "Link", - "hidden": 0, - "label": "User", - "max_length": 0, - "max_value": 0, - "options": "User", - "read_only": 1, - "reqd": 0, - "show_in_filter": 0 - }, - { - "allow_read_on_all_link_options": 0, - "fieldname": "full_name", - "fieldtype": "Data", - "hidden": 0, - "label": "Full Name", - "max_length": 0, - "max_value": 0, - "read_only": 0, - "reqd": 0, - "show_in_filter": 0 - }, - { - "allow_read_on_all_link_options": 0, - "fieldname": "company", - "fieldtype": "Data", - "hidden": 0, - "label": "Company", - "max_length": 0, - "max_value": 0, - "read_only": 0, - "reqd": 1, - "show_in_filter": 0 - } - ] -} \ No newline at end of file diff --git a/lms/event_management/web_form/speaker_registration/speaker_registration.py b/lms/event_management/web_form/speaker_registration/speaker_registration.py deleted file mode 100644 index e1ada619..00000000 --- a/lms/event_management/web_form/speaker_registration/speaker_registration.py +++ /dev/null @@ -1,5 +0,0 @@ -import frappe - -def get_context(context): - # do your magic here - pass diff --git a/lms/event_management/web_template/__init__.py b/lms/event_management/web_template/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/event_management/web_template/exhibitor_section/__init__.py b/lms/event_management/web_template/exhibitor_section/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/event_management/web_template/exhibitor_section/exhibitor_section.html b/lms/event_management/web_template/exhibitor_section/exhibitor_section.html deleted file mode 100644 index 94fc3684..00000000 --- a/lms/event_management/web_template/exhibitor_section/exhibitor_section.html +++ /dev/null @@ -1,28 +0,0 @@ -
-

{{title}}

- {%- if subtitle -%} -

{{ subtitle }}

- {%- endif -%} -
-
- {% for exhibitor in exhibitor_details %} - {% set exhibitor_doc = frappe.db.get_value("Exhibitor", exhibitor.exhibitor, ["user", "company"], as_dict= True) - %} - {% set member = frappe.get_doc("User", exhibitor_doc.user) %} - -
- {{ widgets.Avatar(member=member, avatar_class="avatar-large")}} -
- {{ member.full_name }} -
-
- {{exhibitor_doc.company}} -
- -
- {% endfor %} -
- -
-
diff --git a/lms/event_management/web_template/exhibitor_section/exhibitor_section.json b/lms/event_management/web_template/exhibitor_section/exhibitor_section.json deleted file mode 100644 index a0a87fa8..00000000 --- a/lms/event_management/web_template/exhibitor_section/exhibitor_section.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "__unsaved": 1, - "creation": "2021-08-13 15:05:41.606772", - "docstatus": 0, - "doctype": "Web Template", - "fields": [ - { - "fieldname": "title", - "fieldtype": "Data", - "label": "Title", - "reqd": 0 - }, - { - "fieldname": "subtitle", - "fieldtype": "Data", - "label": "Subtitle", - "reqd": 0 - }, - { - "fieldname": "event", - "fieldtype": "Link", - "label": "Event", - "options": "Event Details", - "reqd": 0 - }, - { - "fieldname": "exhibitor_details", - "fieldtype": "Table Break", - "label": "Exhibitor Details", - "reqd": 0 - }, - { - "fieldname": "exhibitor", - "fieldtype": "Link", - "label": "Exhibitor", - "options": "Exhibitor", - "reqd": 0 - } - ], - "idx": 1, - "modified": "2021-08-20 16:28:22.779057", - "modified_by": "Administrator", - "module": "Event Management", - "name": "Exhibitor Section", - "owner": "Administrator", - "standard": 1, - "template": "", - "type": "Section" -} \ No newline at end of file diff --git a/lms/event_management/web_template/host_section/__init__.py b/lms/event_management/web_template/host_section/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/event_management/web_template/host_section/host_section.html b/lms/event_management/web_template/host_section/host_section.html deleted file mode 100644 index 8fdcf95b..00000000 --- a/lms/event_management/web_template/host_section/host_section.html +++ /dev/null @@ -1,3 +0,0 @@ -
-

{{title}}

-
\ No newline at end of file diff --git a/lms/event_management/web_template/host_section/host_section.json b/lms/event_management/web_template/host_section/host_section.json deleted file mode 100644 index c423e397..00000000 --- a/lms/event_management/web_template/host_section/host_section.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "__unsaved": 1, - "creation": "2021-08-20 08:12:29.549625", - "docstatus": 0, - "doctype": "Web Template", - "fields": [ - { - "fieldname": "title", - "fieldtype": "Data", - "label": "Title", - "reqd": 0 - }, - { - "fieldname": "subtitle", - "fieldtype": "Data", - "label": "Subtitle", - "reqd": 0 - }, - { - "__unsaved": 1, - "fieldname": "hosts", - "fieldtype": "Table Break", - "label": "Hosts", - "reqd": 0 - }, - { - "fieldname": "host", - "fieldtype": "Link", - "label": "Host", - "options": "Host", - "reqd": 0 - } - ], - "idx": 0, - "modified": "2021-08-20 08:16:25.805456", - "modified_by": "Administrator", - "module": "Event Management", - "name": "Host Section", - "owner": "Administrator", - "standard": 1, - "template": "", - "type": "Section" -} \ No newline at end of file diff --git a/lms/event_management/web_template/speaker_section/__init__.py b/lms/event_management/web_template/speaker_section/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/event_management/web_template/speaker_section/speaker_section.html b/lms/event_management/web_template/speaker_section/speaker_section.html deleted file mode 100644 index ed35418a..00000000 --- a/lms/event_management/web_template/speaker_section/speaker_section.html +++ /dev/null @@ -1,30 +0,0 @@ -
-

{{section_title}}

- {%- if subtitle -%} -

{{ subtitle }}

- {%- endif -%} -
- {% for speaker in speaker_details %} - {% set speaker_doc = frappe.db.get_value("Speaker", speaker.speaker, ["user", "company"], as_dict= True) - %} - {% set member = frappe.get_doc("User", speaker_doc.user) %} - -
- {{ widgets.Avatar(member=member, avatar_class="avatar-large") }} - -
- {{ member.full_name }} -
-
- {{speaker_doc.company}} -
- -
- {% endfor %} -
- - - -
diff --git a/lms/event_management/web_template/speaker_section/speaker_section.json b/lms/event_management/web_template/speaker_section/speaker_section.json deleted file mode 100644 index 21a597b1..00000000 --- a/lms/event_management/web_template/speaker_section/speaker_section.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "__unsaved": 1, - "creation": "2021-08-12 21:15:14.492000", - "docstatus": 0, - "doctype": "Web Template", - "fields": [ - { - "fieldname": "section_title", - "fieldtype": "Data", - "label": "Section Title", - "reqd": 1 - }, - { - "fieldname": "subtitle", - "fieldtype": "Data", - "label": "Subtitle", - "reqd": 0 - }, - { - "fieldname": "event_", - "fieldtype": "Link", - "label": "Event ", - "options": "Event Details", - "reqd": 0 - }, - { - "fieldname": "speaker_details", - "fieldtype": "Table Break", - "label": "Speaker Details", - "reqd": 0 - }, - { - "fieldname": "speaker", - "fieldtype": "Link", - "label": "Speaker", - "options": "Speaker", - "reqd": 0 - } - ], - "idx": 1, - "modified": "2021-08-20 10:59:54.965714", - "modified_by": "Administrator", - "module": "Event Management", - "name": "Speaker Section", - "owner": "Administrator", - "standard": 1, - "template": "", - "type": "Section" -} \ No newline at end of file diff --git a/lms/event_management/web_template/talk_section/__init__.py b/lms/event_management/web_template/talk_section/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/event_management/web_template/talk_section/talk_section.html b/lms/event_management/web_template/talk_section/talk_section.html deleted file mode 100644 index f6ababe3..00000000 --- a/lms/event_management/web_template/talk_section/talk_section.html +++ /dev/null @@ -1,75 +0,0 @@ -
-
{{title}}
- {%- if subtitle -%} -

{{ subtitle }}

- {%- endif -%} -
- - {% for talk in talk_details %} - - {% set talk_doc = frappe.db.get_value('Talk', talk.talk, - ["title", "category", "speaker", "url", "thumbnail", "date", "start_time", "end_time"], as_dict=True) %} - {% set speaker_info = frappe.db.get_value("Speaker", talk_doc.speaker, ["user"], as_dict=True) %} - {% set member = frappe.get_doc("User", speaker_info.user) %} - - {% if talk_doc.thumbnail %} - {% set thumbnail = talk_doc.thumbnail %} - {% else %} - {% set video_id = talk_doc.url and talk_doc.url.split("/")[-1] %} - {% set thumbnail = video_id and "https://img.youtube.com/vi/" + video_id + "/maxresdefault.jpg" %} - {% endif %} - -
-
-
- {% for tag in talk_doc.category.split(",") %} -
{{ tag }}
- {% endfor %} -
- {% if not thumbnail %} -
{{ talk_doc.title[0] }}
- {% endif %} -
-
-
-
{{talk_doc.title}}
-
- {% if talk_doc.date %} - - - {{ frappe.utils.format_date(talk_doc.date, "medium") }} - - {% endif %} - - {% if talk_doc.start_time %} - - From: - {{ frappe.utils.format_time(talk_doc.start_time, "HH:mm") }} - - {% endif %} - {% if talk_doc.end_time %} - - To: - {{ frappe.utils.format_time(talk_doc.end_time, "HH:mm") }} - - {% endif %} - -
-
-
- {{ widgets.Avatar(member=member, avatar_class="avatar-small")}} - {{ member.full_name }} - -
- - -
-
- {% endfor %} - -
-
diff --git a/lms/event_management/web_template/talk_section/talk_section.json b/lms/event_management/web_template/talk_section/talk_section.json deleted file mode 100644 index 273624dd..00000000 --- a/lms/event_management/web_template/talk_section/talk_section.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "__unsaved": 1, - "creation": "2021-08-13 11:34:07.611034", - "docstatus": 0, - "doctype": "Web Template", - "fields": [ - { - "fieldname": "title", - "fieldtype": "Data", - "label": "Title", - "reqd": 1 - }, - { - "fieldname": "subtitle", - "fieldtype": "Data", - "label": "Subtitle", - "reqd": 0 - }, - { - "fieldname": "event", - "fieldtype": "Link", - "label": "Event", - "options": "Event Details", - "reqd": 1 - }, - { - "fieldname": "talk_details", - "fieldtype": "Table Break", - "label": "Talk Details", - "reqd": 0 - }, - { - "fieldname": "talk", - "fieldtype": "Link", - "label": "Talk", - "options": "Talk", - "reqd": 0 - } - ], - "idx": 1, - "modified": "2021-08-20 10:58:45.556636", - "modified_by": "Administrator", - "module": "Event Management", - "name": "Talk Section", - "owner": "Administrator", - "standard": 1, - "template": "", - "type": "Section" -} \ No newline at end of file diff --git a/lms/hackathon/README.md b/lms/hackathon/README.md deleted file mode 100644 index fce287f4..00000000 --- a/lms/hackathon/README.md +++ /dev/null @@ -1,35 +0,0 @@ -The Hackathon module allows Community Members to organize and manage hackathons. Community Members can view these hackathons on the portal. - - - -### Key Features: - -##### Organize Hackathons - -1. Hackathons can be created using the **Community Hackathon** doctype. -1. Enter the hackathon name, the organizer, the year and Save. - - - -##### Projects - -1. A Hackathon will have multiple Projects. -1. Projects can be created using the **Community Project** doctype from the desk. -1. Projects can also be created from the Portal using the Projects webform. -1. Enter details like Project Name, Project Short Intro, Project Description. -1. Attach important links like Repository Link, Demo Link, Telegram Id. -1. The checkbox Accepting Members can be used if you are still aceepting members for your project. - - - - -1. Projects are visible on the portal as well. - - - -##### Project Members - -1. Community Members can explore the projects of hackathons and decide if they want to join any project. -1. If the project is accepting members they can apply for the project from the web form available on the portal. - -1. Project owners can review the requests and accept/reject the members. diff --git a/lms/hackathon/__init__.py b/lms/hackathon/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/hackathon/doctype/__init__.py b/lms/hackathon/doctype/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/hackathon/doctype/community_hackathon/__init__.py b/lms/hackathon/doctype/community_hackathon/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/hackathon/doctype/community_hackathon/community_hackathon.js b/lms/hackathon/doctype/community_hackathon/community_hackathon.js deleted file mode 100644 index 5cfa6fd2..00000000 --- a/lms/hackathon/doctype/community_hackathon/community_hackathon.js +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2021, FOSS United and contributors -// For license information, please see license.txt - -frappe.ui.form.on('Community Hackathon', { - // refresh: function(frm) { - - // } -}); diff --git a/lms/hackathon/doctype/community_hackathon/community_hackathon.json b/lms/hackathon/doctype/community_hackathon/community_hackathon.json deleted file mode 100644 index c140f547..00000000 --- a/lms/hackathon/doctype/community_hackathon/community_hackathon.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "actions": [], - "autoname": "field:hackathon_name", - "creation": "2021-02-17 12:40:25.604012", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "hackathon_name", - "organizer", - "year" - ], - "fields": [ - { - "fieldname": "hackathon_name", - "fieldtype": "Data", - "in_list_view": 1, - "label": "Hackathon Name", - "reqd": 1, - "unique": 1 - }, - { - "fieldname": "organizer", - "fieldtype": "Link", - "label": "Organizer", - "options": "User" - }, - { - "fieldname": "year", - "fieldtype": "Select", - "label": "Year", - "options": "\n2021\n2022\n2023\n2024\n2025" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2021-05-21 12:22:26.619776", - "modified_by": "Administrator", - "module": "Hackathon", - "name": "Community Hackathon", - "owner": "Administrator", - "permissions": [ - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "System Manager", - "share": 1, - "write": 1 - } - ], - "quick_entry": 1, - "sort_field": "modified", - "sort_order": "DESC", - "track_changes": 1 -} \ No newline at end of file diff --git a/lms/hackathon/doctype/community_hackathon/community_hackathon.py b/lms/hackathon/doctype/community_hackathon/community_hackathon.py deleted file mode 100644 index 8432cb71..00000000 --- a/lms/hackathon/doctype/community_hackathon/community_hackathon.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- 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 CommunityHackathon(Document): - pass diff --git a/lms/hackathon/doctype/community_hackathon/test_community_hackathon.py b/lms/hackathon/doctype/community_hackathon/test_community_hackathon.py deleted file mode 100644 index e38b48d9..00000000 --- a/lms/hackathon/doctype/community_hackathon/test_community_hackathon.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (c) 2021, FOSS United and Contributors -# See license.txt -from __future__ import unicode_literals - -# import frappe -import unittest - -class TestCommunityHackathon(unittest.TestCase): - pass diff --git a/lms/hackathon/doctype/community_project/__init__.py b/lms/hackathon/doctype/community_project/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/hackathon/doctype/community_project/community_project.js b/lms/hackathon/doctype/community_project/community_project.js deleted file mode 100644 index 95c396ea..00000000 --- a/lms/hackathon/doctype/community_project/community_project.js +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2021, FOSS United and contributors -// For license information, please see license.txt - -frappe.ui.form.on('Community Project', { - // refresh: function(frm) { - - // } -}); diff --git a/lms/hackathon/doctype/community_project/community_project.json b/lms/hackathon/doctype/community_project/community_project.json deleted file mode 100644 index 458168d9..00000000 --- a/lms/hackathon/doctype/community_project/community_project.json +++ /dev/null @@ -1,144 +0,0 @@ -{ - "actions": [], - "allow_import": 1, - "autoname": "field:project_name", - "creation": "2021-02-12 18:28:33.440328", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "disabled", - "column_break_2", - "accepting_members", - "section_break_4", - "project_name", - "project_short_intro", - "project_description", - "section_break_8", - "repository_link", - "video_link", - "column_break_11", - "hackathon", - "telegram_id", - "likes", - "project_search" - ], - "fields": [ - { - "default": "0", - "fieldname": "disabled", - "fieldtype": "Check", - "label": "Disabled" - }, - { - "fieldname": "project_name", - "fieldtype": "Data", - "in_list_view": 1, - "label": "Project Name", - "reqd": 1, - "unique": 1 - }, - { - "fieldname": "project_short_intro", - "fieldtype": "Small Text", - "label": "Project Short Intro" - }, - { - "fieldname": "repository_link", - "fieldtype": "Small Text", - "label": "Repository Link" - }, - { - "fieldname": "video_link", - "fieldtype": "Data", - "label": "Video Link" - }, - { - "fieldname": "telegram_id", - "fieldtype": "Data", - "label": "Telegram Id" - }, - { - "fieldname": "project_description", - "fieldtype": "Markdown Editor", - "label": "Project Description" - }, - { - "fieldname": "hackathon", - "fieldtype": "Link", - "label": "Hackathon", - "options": "Community Hackathon" - }, - { - "default": "0", - "fieldname": "accepting_members", - "fieldtype": "Check", - "label": "Accepting Members" - }, - { - "fieldname": "likes", - "fieldtype": "Int", - "label": "Likes", - "read_only": 1 - }, - { - "fieldname": "project_search", - "fieldtype": "Small Text", - "hidden": 1, - "label": "Project Search" - }, - { - "fieldname": "column_break_2", - "fieldtype": "Column Break" - }, - { - "fieldname": "section_break_4", - "fieldtype": "Section Break" - }, - { - "fieldname": "section_break_8", - "fieldtype": "Section Break" - }, - { - "fieldname": "column_break_11", - "fieldtype": "Column Break" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2021-04-20 13:22:17.248521", - "modified_by": "Administrator", - "module": "Hackathon", - "name": "Community Project", - "owner": "Administrator", - "permissions": [ - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "System Manager", - "share": 1, - "write": 1 - }, - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "Participant", - "share": 1, - "write": 1 - } - ], - "quick_entry": 1, - "sort_field": "modified", - "sort_order": "DESC", - "track_changes": 1 -} \ No newline at end of file diff --git a/lms/hackathon/doctype/community_project/community_project.py b/lms/hackathon/doctype/community_project/community_project.py deleted file mode 100644 index b0d1f231..00000000 --- a/lms/hackathon/doctype/community_project/community_project.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- 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 CommunityProject(Document): - pass diff --git a/lms/hackathon/doctype/community_project/test_community_project.py b/lms/hackathon/doctype/community_project/test_community_project.py deleted file mode 100644 index 0525d34e..00000000 --- a/lms/hackathon/doctype/community_project/test_community_project.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (c) 2021, FOSS United and Contributors -# See license.txt -from __future__ import unicode_literals - -# import frappe -import unittest - -class TestCommunityProject(unittest.TestCase): - pass diff --git a/lms/hackathon/doctype/community_project_evaluation/__init__.py b/lms/hackathon/doctype/community_project_evaluation/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/hackathon/doctype/community_project_evaluation/community_project_evaluation.js b/lms/hackathon/doctype/community_project_evaluation/community_project_evaluation.js deleted file mode 100644 index 0b7edf19..00000000 --- a/lms/hackathon/doctype/community_project_evaluation/community_project_evaluation.js +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2021, FOSS United and contributors -// For license information, please see license.txt - -frappe.ui.form.on('Community Project Evaluation', { - // refresh: function(frm) { - - // } -}); diff --git a/lms/hackathon/doctype/community_project_evaluation/community_project_evaluation.json b/lms/hackathon/doctype/community_project_evaluation/community_project_evaluation.json deleted file mode 100644 index 868b961b..00000000 --- a/lms/hackathon/doctype/community_project_evaluation/community_project_evaluation.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "actions": [], - "autoname": "format:EVAL-{#####}", - "creation": "2021-02-12 19:44:57.467599", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "project", - "status", - "evaluated_by", - "telegram_id", - "column_break_5", - "update", - "section_break_7", - "evaluation_comment", - "overall_rating", - "section_break_10", - "impact_of_project", - "completion", - "quality_of_code", - "quality_of_", - "column_break_15", - "difficulty", - "future_viability", - "total_score" - ], - "fields": [ - { - "fieldname": "project", - "fieldtype": "Link", - "in_list_view": 1, - "label": "Project", - "options": "Community Project", - "reqd": 1 - }, - { - "fieldname": "status", - "fieldtype": "Select", - "label": "Status", - "options": "\nPending\nPreliminary\nComplete" - }, - { - "fieldname": "evaluated_by", - "fieldtype": "Link", - "label": "Evaluated By", - "options": "User" - }, - { - "fieldname": "telegram_id", - "fieldtype": "Small Text", - "label": "Telegram Id" - }, - { - "fieldname": "column_break_5", - "fieldtype": "Column Break" - }, - { - "fieldname": "update", - "fieldtype": "Small Text", - "in_list_view": 1, - "label": "Update", - "reqd": 1 - }, - { - "fieldname": "section_break_7", - "fieldtype": "Section Break" - }, - { - "fieldname": "evaluation_comment", - "fieldtype": "Small Text", - "label": "Evaluation Comment" - }, - { - "fieldname": "overall_rating", - "fieldtype": "Int", - "label": "Overall Rating" - }, - { - "fieldname": "section_break_10", - "fieldtype": "Section Break", - "label": "Score" - }, - { - "fieldname": "impact_of_project", - "fieldtype": "Int", - "label": "Impact of Project" - }, - { - "fieldname": "completion", - "fieldtype": "Int", - "label": "Completion" - }, - { - "fieldname": "quality_of_code", - "fieldtype": "Int", - "label": "Quality of Code" - }, - { - "fieldname": "quality_of_", - "fieldtype": "Int", - "label": "Quality of Presentation" - }, - { - "fieldname": "column_break_15", - "fieldtype": "Column Break" - }, - { - "fieldname": "difficulty", - "fieldtype": "Int", - "label": "Difficulty" - }, - { - "fieldname": "future_viability", - "fieldtype": "Int", - "label": "Future Viability" - }, - { - "fieldname": "total_score", - "fieldtype": "Int", - "label": "Total Score" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2021-03-04 19:56:53.757808", - "modified_by": "Administrator", - "module": "Hackathon", - "name": "Community Project Evaluation", - "owner": "Administrator", - "permissions": [ - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "System Manager", - "share": 1, - "write": 1 - }, - { - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "Participant", - "share": 1, - "write": 1 - }, - { - "create": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "Evaluator", - "share": 1, - "write": 1 - } - ], - "sort_field": "modified", - "sort_order": "DESC", - "track_changes": 1 -} \ No newline at end of file diff --git a/lms/hackathon/doctype/community_project_evaluation/community_project_evaluation.py b/lms/hackathon/doctype/community_project_evaluation/community_project_evaluation.py deleted file mode 100644 index bdf5e2ab..00000000 --- a/lms/hackathon/doctype/community_project_evaluation/community_project_evaluation.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- 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 CommunityProjectEvaluation(Document): - pass diff --git a/lms/hackathon/doctype/community_project_evaluation/test_community_project_evaluation.py b/lms/hackathon/doctype/community_project_evaluation/test_community_project_evaluation.py deleted file mode 100644 index f900a766..00000000 --- a/lms/hackathon/doctype/community_project_evaluation/test_community_project_evaluation.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (c) 2021, FOSS United and Contributors -# See license.txt -from __future__ import unicode_literals - -# import frappe -import unittest - -class TestCommunityProjectEvaluation(unittest.TestCase): - pass diff --git a/lms/hackathon/doctype/community_project_like/__init__.py b/lms/hackathon/doctype/community_project_like/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/hackathon/doctype/community_project_like/community_project_like.js b/lms/hackathon/doctype/community_project_like/community_project_like.js deleted file mode 100644 index d35c22f0..00000000 --- a/lms/hackathon/doctype/community_project_like/community_project_like.js +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2021, FOSS United and contributors -// For license information, please see license.txt - -frappe.ui.form.on('Community Project Like', { - // refresh: function(frm) { - - // } -}); diff --git a/lms/hackathon/doctype/community_project_like/community_project_like.json b/lms/hackathon/doctype/community_project_like/community_project_like.json deleted file mode 100644 index 0c0af277..00000000 --- a/lms/hackathon/doctype/community_project_like/community_project_like.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "actions": [], - "creation": "2021-02-12 18:43:24.206708", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "project" - ], - "fields": [ - { - "fieldname": "project", - "fieldtype": "Link", - "label": "Project", - "options": "Community Project" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2021-03-04 18:55:51.877522", - "modified_by": "Administrator", - "module": "Hackathon", - "name": "Community Project Like", - "owner": "Administrator", - "permissions": [ - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "System Manager", - "share": 1, - "write": 1 - } - ], - "quick_entry": 1, - "sort_field": "modified", - "sort_order": "DESC", - "track_changes": 1 -} \ No newline at end of file diff --git a/lms/hackathon/doctype/community_project_like/community_project_like.py b/lms/hackathon/doctype/community_project_like/community_project_like.py deleted file mode 100644 index aa91d1f6..00000000 --- a/lms/hackathon/doctype/community_project_like/community_project_like.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- 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 CommunityProjectLike(Document): - pass diff --git a/lms/hackathon/doctype/community_project_like/test_community_project_like.py b/lms/hackathon/doctype/community_project_like/test_community_project_like.py deleted file mode 100644 index c055ab4a..00000000 --- a/lms/hackathon/doctype/community_project_like/test_community_project_like.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (c) 2021, FOSS United and Contributors -# See license.txt -from __future__ import unicode_literals - -# import frappe -import unittest - -class TestCommunityProjectLike(unittest.TestCase): - pass diff --git a/lms/hackathon/doctype/community_project_member/__init__.py b/lms/hackathon/doctype/community_project_member/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/hackathon/doctype/community_project_member/community_project_member.js b/lms/hackathon/doctype/community_project_member/community_project_member.js deleted file mode 100644 index 1249caa9..00000000 --- a/lms/hackathon/doctype/community_project_member/community_project_member.js +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2021, FOSS United and contributors -// For license information, please see license.txt - -frappe.ui.form.on('Community Project Member', { - // refresh: function(frm) { - - // } -}); diff --git a/lms/hackathon/doctype/community_project_member/community_project_member.json b/lms/hackathon/doctype/community_project_member/community_project_member.json deleted file mode 100644 index 739900c8..00000000 --- a/lms/hackathon/doctype/community_project_member/community_project_member.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "actions": [], - "creation": "2021-02-12 18:36:08.324156", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "project", - "intro", - "status", - "project_owner" - ], - "fields": [ - { - "fieldname": "project", - "fieldtype": "Link", - "in_list_view": 1, - "label": "Project", - "options": "Community Project", - "reqd": 1 - }, - { - "fieldname": "intro", - "fieldtype": "Small Text", - "in_list_view": 1, - "label": "Intro", - "reqd": 1 - }, - { - "default": "Pending", - "fieldname": "status", - "fieldtype": "Select", - "label": "Status", - "options": "Pending\nAccepted\nRejected" - }, - { - "fieldname": "project_owner", - "fieldtype": "Data", - "label": "Project Owner", - "options": "Email" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2021-03-04 19:44:09.832170", - "modified_by": "Administrator", - "module": "Hackathon", - "name": "Community Project Member", - "owner": "Administrator", - "permissions": [ - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "System Manager", - "share": 1, - "write": 1 - }, - { - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "Participant", - "share": 1 - } - ], - "quick_entry": 1, - "sort_field": "modified", - "sort_order": "DESC", - "track_changes": 1 -} \ No newline at end of file diff --git a/lms/hackathon/doctype/community_project_member/community_project_member.py b/lms/hackathon/doctype/community_project_member/community_project_member.py deleted file mode 100644 index 6068c39c..00000000 --- a/lms/hackathon/doctype/community_project_member/community_project_member.py +++ /dev/null @@ -1,17 +0,0 @@ -# -*- 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 -from frappe import _ - -class CommunityProjectMember(Document): - def validate(self): - self.validate_if_already_member() - - def validate_if_already_member(self): - if frappe.get_all("Community Project Member", {"owner": self.owner}): - frappe.throw(_("You have already applied for the membership of this project.")) - diff --git a/lms/hackathon/doctype/community_project_member/test_community_project_member.py b/lms/hackathon/doctype/community_project_member/test_community_project_member.py deleted file mode 100644 index 456c6c9a..00000000 --- a/lms/hackathon/doctype/community_project_member/test_community_project_member.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (c) 2021, FOSS United and Contributors -# See license.txt -from __future__ import unicode_literals - -# import frappe -import unittest - -class TestCommunityProjectMember(unittest.TestCase): - pass diff --git a/lms/hackathon/doctype/community_project_update/__init__.py b/lms/hackathon/doctype/community_project_update/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/hackathon/doctype/community_project_update/community_project_update.js b/lms/hackathon/doctype/community_project_update/community_project_update.js deleted file mode 100644 index e50788a4..00000000 --- a/lms/hackathon/doctype/community_project_update/community_project_update.js +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2021, FOSS United and contributors -// For license information, please see license.txt - -frappe.ui.form.on('Community Project Update', { - // refresh: function(frm) { - - // } -}); diff --git a/lms/hackathon/doctype/community_project_update/community_project_update.json b/lms/hackathon/doctype/community_project_update/community_project_update.json deleted file mode 100644 index fc9fc50c..00000000 --- a/lms/hackathon/doctype/community_project_update/community_project_update.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "actions": [], - "creation": "2021-02-12 18:45:56.750969", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "project", - "update" - ], - "fields": [ - { - "fieldname": "project", - "fieldtype": "Link", - "in_list_view": 1, - "label": "Project", - "options": "Community Project", - "reqd": 1 - }, - { - "fieldname": "update", - "fieldtype": "Markdown Editor", - "in_list_view": 1, - "label": "Update", - "reqd": 1 - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2021-03-04 19:43:10.886773", - "modified_by": "Administrator", - "module": "Hackathon", - "name": "Community Project Update", - "owner": "Administrator", - "permissions": [ - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "System Manager", - "share": 1, - "write": 1 - } - ], - "quick_entry": 1, - "sort_field": "modified", - "sort_order": "DESC", - "track_changes": 1 -} \ No newline at end of file diff --git a/lms/hackathon/doctype/community_project_update/community_project_update.py b/lms/hackathon/doctype/community_project_update/community_project_update.py deleted file mode 100644 index 6830688d..00000000 --- a/lms/hackathon/doctype/community_project_update/community_project_update.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- 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 CommunityProjectUpdate(Document): - pass diff --git a/lms/hackathon/doctype/community_project_update/test_community_project_update.py b/lms/hackathon/doctype/community_project_update/test_community_project_update.py deleted file mode 100644 index 465ee136..00000000 --- a/lms/hackathon/doctype/community_project_update/test_community_project_update.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (c) 2021, FOSS United and Contributors -# See license.txt -from __future__ import unicode_literals - -# import frappe -import unittest - -class TestCommunityProjectUpdate(unittest.TestCase): - pass diff --git a/lms/hackathon/images/community-hackathon.png b/lms/hackathon/images/community-hackathon.png deleted file mode 100644 index 028089fb..00000000 Binary files a/lms/hackathon/images/community-hackathon.png and /dev/null differ diff --git a/lms/hackathon/images/hackathons-portal.png b/lms/hackathon/images/hackathons-portal.png deleted file mode 100644 index ce787db5..00000000 Binary files a/lms/hackathon/images/hackathons-portal.png and /dev/null differ diff --git a/lms/hackathon/images/project-1.png b/lms/hackathon/images/project-1.png deleted file mode 100644 index 49826d18..00000000 Binary files a/lms/hackathon/images/project-1.png and /dev/null differ diff --git a/lms/hackathon/images/project-2.png b/lms/hackathon/images/project-2.png deleted file mode 100644 index c36d18ea..00000000 Binary files a/lms/hackathon/images/project-2.png and /dev/null differ diff --git a/lms/hackathon/images/project-details.png b/lms/hackathon/images/project-details.png deleted file mode 100644 index f0240d89..00000000 Binary files a/lms/hackathon/images/project-details.png and /dev/null differ diff --git a/lms/hackathon/images/project-join-request.png b/lms/hackathon/images/project-join-request.png deleted file mode 100644 index 320c8ba8..00000000 Binary files a/lms/hackathon/images/project-join-request.png and /dev/null differ diff --git a/lms/hackathon/images/project-portal.png b/lms/hackathon/images/project-portal.png deleted file mode 100644 index 977f3393..00000000 Binary files a/lms/hackathon/images/project-portal.png and /dev/null differ diff --git a/lms/hackathon/web_form/__init__.py b/lms/hackathon/web_form/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/hackathon/web_form/join_request/__init__.py b/lms/hackathon/web_form/join_request/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/hackathon/web_form/join_request/join_request.js b/lms/hackathon/web_form/join_request/join_request.js deleted file mode 100644 index 699703c5..00000000 --- a/lms/hackathon/web_form/join_request/join_request.js +++ /dev/null @@ -1,3 +0,0 @@ -frappe.ready(function() { - // bind events here -}) \ No newline at end of file diff --git a/lms/hackathon/web_form/join_request/join_request.json b/lms/hackathon/web_form/join_request/join_request.json deleted file mode 100644 index dc7f1cb3..00000000 --- a/lms/hackathon/web_form/join_request/join_request.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "accept_payment": 0, - "allow_comments": 0, - "allow_delete": 0, - "allow_edit": 0, - "allow_incomplete": 0, - "allow_multiple": 0, - "allow_print": 0, - "amount": 0.0, - "amount_based_on_field": 0, - "apply_document_permissions": 0, - "button_label": "Send Request", - "client_script": "$('.page-header h2').html(`Request to Join \"${frappe.utils.get_url_arg('project_name')}\"`);", - "creation": "2021-02-17 13:20:08.548735", - "doc_type": "Community Project Member", - "docstatus": 0, - "doctype": "Web Form", - "idx": 0, - "is_standard": 1, - "login_required": 1, - "max_attachment_size": 0, - "modified": "2021-04-14 13:52:46.135536", - "modified_by": "Administrator", - "module": "Hackathon", - "name": "join-request", - "owner": "Administrator", - "payment_button_label": "Buy Now", - "published": 1, - "route": "join-request", - "route_to_success_link": 0, - "show_attachments": 0, - "show_in_grid": 0, - "show_sidebar": 0, - "sidebar_items": [], - "success_url": "/join-request", - "title": "Join Request", - "web_form_fields": [ - { - "allow_read_on_all_link_options": 0, - "fieldname": "project", - "fieldtype": "Link", - "hidden": 0, - "label": "Project", - "max_length": 0, - "max_value": 0, - "options": "Community Project", - "read_only": 0, - "reqd": 1, - "show_in_filter": 0 - }, - { - "allow_read_on_all_link_options": 0, - "fieldname": "intro", - "fieldtype": "Small Text", - "hidden": 0, - "label": "Intro", - "max_length": 0, - "max_value": 0, - "read_only": 0, - "reqd": 1, - "show_in_filter": 0 - } - ] -} \ No newline at end of file diff --git a/lms/hackathon/web_form/join_request/join_request.py b/lms/hackathon/web_form/join_request/join_request.py deleted file mode 100644 index 2334f8b2..00000000 --- a/lms/hackathon/web_form/join_request/join_request.py +++ /dev/null @@ -1,7 +0,0 @@ -from __future__ import unicode_literals - -import frappe - -def get_context(context): - # do your magic here - pass diff --git a/lms/hackathon/web_form/project/__init__.py b/lms/hackathon/web_form/project/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/hackathon/web_form/project/project.js b/lms/hackathon/web_form/project/project.js deleted file mode 100644 index 699703c5..00000000 --- a/lms/hackathon/web_form/project/project.js +++ /dev/null @@ -1,3 +0,0 @@ -frappe.ready(function() { - // bind events here -}) \ No newline at end of file diff --git a/lms/hackathon/web_form/project/project.json b/lms/hackathon/web_form/project/project.json deleted file mode 100644 index 2904595f..00000000 --- a/lms/hackathon/web_form/project/project.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "accept_payment": 0, - "allow_comments": 0, - "allow_delete": 0, - "allow_edit": 1, - "allow_incomplete": 0, - "allow_multiple": 0, - "allow_print": 0, - "amount": 0.0, - "amount_based_on_field": 0, - "apply_document_permissions": 0, - "button_label": "Save", - "creation": "2021-04-14 13:11:50.606310", - "doc_type": "Community Project", - "docstatus": 0, - "doctype": "Web Form", - "idx": 0, - "introduction_text": "

Add details about your project.


Note: If you save this project, you won't be able to join another one. If your teammates have already created the project, join it instead.

", - "is_standard": 1, - "login_required": 1, - "max_attachment_size": 0, - "modified": "2021-04-14 13:11:50.606310", - "modified_by": "Administrator", - "module": "Hackathon", - "name": "project", - "owner": "Administrator", - "payment_button_label": "Buy Now", - "published": 1, - "route": "edit-project", - "route_to_success_link": 0, - "show_attachments": 0, - "show_in_grid": 0, - "show_sidebar": 0, - "sidebar_items": [], - "success_url": "/project", - "title": "Project", - "web_form_fields": [ - { - "allow_read_on_all_link_options": 0, - "fieldtype": "Attach", - "hidden": 0, - "max_length": 0, - "max_value": 0, - "read_only": 0, - "reqd": 0, - "show_in_filter": 0 - } - ] -} \ No newline at end of file diff --git a/lms/hackathon/web_form/project/project.py b/lms/hackathon/web_form/project/project.py deleted file mode 100644 index 2334f8b2..00000000 --- a/lms/hackathon/web_form/project/project.py +++ /dev/null @@ -1,7 +0,0 @@ -from __future__ import unicode_literals - -import frappe - -def get_context(context): - # do your magic here - pass diff --git a/lms/hackathon/web_form/project_update/__init__.py b/lms/hackathon/web_form/project_update/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/hackathon/web_form/project_update/project_update.js b/lms/hackathon/web_form/project_update/project_update.js deleted file mode 100644 index 699703c5..00000000 --- a/lms/hackathon/web_form/project_update/project_update.js +++ /dev/null @@ -1,3 +0,0 @@ -frappe.ready(function() { - // bind events here -}) \ No newline at end of file diff --git a/lms/hackathon/web_form/project_update/project_update.json b/lms/hackathon/web_form/project_update/project_update.json deleted file mode 100644 index 10d97a9b..00000000 --- a/lms/hackathon/web_form/project_update/project_update.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "accept_payment": 0, - "allow_comments": 0, - "allow_delete": 0, - "allow_edit": 0, - "allow_incomplete": 0, - "allow_multiple": 0, - "allow_print": 0, - "amount": 0.0, - "amount_based_on_field": 0, - "apply_document_permissions": 0, - "button_label": "Submit", - "creation": "2021-02-18 13:15:09.464515", - "doc_type": "Community Project Update", - "docstatus": 0, - "doctype": "Web Form", - "idx": 0, - "is_standard": 1, - "login_required": 1, - "max_attachment_size": 0, - "modified": "2021-03-04 19:43:28.957577", - "modified_by": "Administrator", - "module": "Hackathon", - "name": "project-update", - "owner": "Administrator", - "payment_button_label": "Buy Now", - "published": 1, - "route": "project-update", - "route_to_success_link": 0, - "show_attachments": 0, - "show_in_grid": 0, - "show_sidebar": 0, - "sidebar_items": [], - "success_url": "/project-update", - "title": "Project Update", - "web_form_fields": [ - { - "allow_read_on_all_link_options": 0, - "fieldname": "project", - "fieldtype": "Link", - "hidden": 0, - "label": "Project", - "max_length": 0, - "max_value": 0, - "options": "Community Project", - "read_only": 0, - "reqd": 1, - "show_in_filter": 0 - }, - { - "allow_read_on_all_link_options": 0, - "fieldname": "update", - "fieldtype": "Data", - "hidden": 0, - "label": "Update", - "max_length": 0, - "max_value": 0, - "read_only": 0, - "reqd": 1, - "show_in_filter": 0 - } - ] -} \ No newline at end of file diff --git a/lms/hackathon/web_form/project_update/project_update.py b/lms/hackathon/web_form/project_update/project_update.py deleted file mode 100644 index 2334f8b2..00000000 --- a/lms/hackathon/web_form/project_update/project_update.py +++ /dev/null @@ -1,7 +0,0 @@ -from __future__ import unicode_literals - -import frappe - -def get_context(context): - # do your magic here - pass diff --git a/lms/hooks.py b/lms/hooks.py index 78f9c751..c1839c11 100644 --- a/lms/hooks.py +++ b/lms/hooks.py @@ -2,10 +2,10 @@ from __future__ import unicode_literals from . import __version__ as app_version -app_name = "school" -app_title = "School" +app_name = "lms" +app_title = "LMS" app_publisher = "Frappe" -app_description = "School" +app_description = "LMS" app_icon = "octicon octicon-file-directory" app_color = "grey" app_email = "school@frappe.io" @@ -15,16 +15,16 @@ app_license = "AGPL" # ------------------ # include js, css files in header of desk.html -# app_include_css = "/assets/school/css/school.css" -# app_include_js = "/assets/school/js/school.js" +# app_include_css = "/assets/lms/css/lms.css" +# app_include_js = "/assets/lms/js/lms.js" # include js, css files in header of web template -web_include_css = "/assets/css/school.css" -# web_include_css = "/assets/school/css/school.css" +web_include_css = "/assets/css/lms.css" +# web_include_css = "/assets/lms/css/lms.css" #web_include_js = "website.bundle.js" # include custom scss in every website theme (without file extension ".scss") -# website_theme_scss = "school/public/scss/website" +# website_theme_scss = "lms/public/scss/website" # include js, css files in header of web form # webform_include_js = {"doctype": "public/js/doctype.js"} @@ -59,14 +59,14 @@ web_include_css = "/assets/css/school.css" # Installation # ------------ -# before_install = "school.install.before_install" -# after_install = "school.install.after_install" +# before_install = "lms.install.before_install" +# after_install = "lms.install.after_install" # Desk Notifications # ------------------ # See frappe.core.notifications.get_notification_config -# notification_config = "school.notifications.get_notification_config" +# notification_config = "lms.notifications.get_notification_config" # Permissions # ----------- @@ -85,8 +85,8 @@ web_include_css = "/assets/css/school.css" # Override standard doctype classes override_doctype_class = { - "User": "school.overrides.user.CustomUser", - "Web Template": "school.overrides.web_template.CustomWebTemplate" + "User": "lms.overrides.user.CustomUser", + "Web Template": "lms.overrides.web_template.CustomWebTemplate" } # Document Events @@ -110,20 +110,20 @@ fixtures = ["Custom Field"] # Testing # ------- -# before_tests = "school.install.before_tests" +# before_tests = "lms.install.before_tests" # Overriding Methods # ------------------------------ # # override_whitelisted_methods = { -# "frappe.desk.doctype.event.event.get_events": "school.event.get_events" +# "frappe.desk.doctype.event.event.get_events": "lms.event.get_events" # } # # each overriding function accepts a `data` argument; # generated from the base implementation of the doctype dashboard, # along with any modifications made in other Frappe apps # override_doctype_dashboards = { -# "Task": "school.task.get_dashboard_data" +# "Task": "lms.task.get_dashboard_data" # } # exempt linked doctypes from being automatically cancelled @@ -149,28 +149,28 @@ website_redirects = [ ] update_website_context = [ - 'school.widgets.update_website_context', + 'lms.widgets.update_website_context', ] ## Specify the additional tabs to be included in the user profile page. -## Each entry must be a subclass of school.school.plugins.ProfileTab +## Each entry must be a subclass of lms.lms.plugins.ProfileTab # profile_tabs = [] ## Specify the extension to be used to control what scripts and stylesheets ## to be included in lesson pages. The specified value must be be a -## subclass of school.plugins.PageExtension -# school_lesson_page_extension = None +## subclass of lms.plugins.PageExtension +# lms = None -#school_lesson_page_extensions = [ -# "school.plugins.LiveCodeExtension" +#lms_lesson_page_extensions = [ +# "lms.plugins.LiveCodeExtension" #] ## Markdown Macros for Lessons -school_markdown_macro_renderers = { - "Exercise": "school.plugins.exercise_renderer", - "Quiz": "school.plugins.quiz_renderer", - "YouTubeVideo": "school.plugins.youtube_video_renderer", - "Video": "school.plugins.video_renderer" +lms_markdown_macro_renderers = { + "Exercise": "lms.plugins.exercise_renderer", + "Quiz": "lms.plugins.quiz_renderer", + "YouTubeVideo": "lms.plugins.youtube_video_renderer", + "Video": "lms.plugins.video_renderer" } # set this to "/" to have profiles on the top-level diff --git a/lms/lms/doctype/invite_request/test_invite_request.py b/lms/lms/doctype/invite_request/test_invite_request.py index 16888eee..491bac17 100644 --- a/lms/lms/doctype/invite_request/test_invite_request.py +++ b/lms/lms/doctype/invite_request/test_invite_request.py @@ -2,7 +2,7 @@ # Copyright (c) 2021, FOSS United and Contributors # See license.txt from __future__ import unicode_literals -from school.lms.doctype.invite_request.invite_request import create_invite_request, update_invite +from lms.lms.doctype.invite_request.invite_request import create_invite_request, update_invite import frappe import unittest diff --git a/lms/lms/doctype/lms_batch/lms_batch.py b/lms/lms/doctype/lms_batch/lms_batch.py index a7fbcb68..85b4b6a4 100644 --- a/lms/lms/doctype/lms_batch/lms_batch.py +++ b/lms/lms/doctype/lms_batch/lms_batch.py @@ -6,8 +6,8 @@ from __future__ import unicode_literals import frappe from frappe.model.document import Document from frappe import _ -from school.lms.doctype.lms_batch_membership.lms_batch_membership import create_membership -from school.query import find, find_all +from lms.lms.doctype.lms_batch_membership.lms_batch_membership import create_membership +from lms.query import find, find_all class LMSBatch(Document): def validate(self): diff --git a/lms/lms/doctype/lms_course/lms_course.json b/lms/lms/doctype/lms_course/lms_course.json index 86b7e5d1..7e8e5426 100644 --- a/lms/lms/doctype/lms_course/lms_course.json +++ b/lms/lms/doctype/lms_course/lms_course.json @@ -1,7 +1,7 @@ { "actions": [ { - "action": "school.lms.doctype.lms_course.lms_course.reindex_exercises", + "action": "lms.lms.doctype.lms_course.lms_course.reindex_exercises", "action_type": "Server Action", "group": "Reindex", "label": "Reindex Exercises" @@ -192,4 +192,4 @@ "sort_order": "DESC", "title_field": "title", "track_changes": 1 -} \ No newline at end of file +} diff --git a/lms/lms/doctype/lms_course/lms_course.py b/lms/lms/doctype/lms_course/lms_course.py index b9993cbe..128f4aee 100644 --- a/lms/lms/doctype/lms_course/lms_course.py +++ b/lms/lms/doctype/lms_course/lms_course.py @@ -7,7 +7,7 @@ import frappe from frappe.model.document import Document import json from ...utils import slugify -from school.query import find, find_all +from lms.query import find, find_all from frappe.utils import flt, cint from ...utils import slugify @@ -380,7 +380,7 @@ def search_course(text): """ for course in courses: search_courses.append(frappe.get_doc("LMS Course", course)) """ - """ template = frappe.render_template("school/templates/course_list.html", { + """ template = frappe.render_template("lms/templates/course_list.html", { "title": _("Search Results"), "courses": search_courses, "widgets": Widgets() diff --git a/lms/lms/md.py b/lms/lms/md.py index 5acb6322..0ab3ce7e 100644 --- a/lms/lms/md.py +++ b/lms/lms/md.py @@ -7,7 +7,7 @@ Macros can be added to the markdown text in the following format. These macros will be rendered using a pluggable mechanism. -Apps can provide a hook school_markdown_macro_renderers, a +Apps can provide a hook lms_markdown_macro_renderers, a dictionary mapping the macro name to the function that to render that macro. The function will get the argument passed to the macro as argument. @@ -59,7 +59,7 @@ def _remove_quotes(value): def get_macro_registry(): - d = frappe.get_hooks("school_markdown_macro_renderers") or {} + d = frappe.get_hooks("lms_markdown_macro_renderers") or {} return {name: frappe.get_attr(klass[0]) for name, klass in d.items()} def render_macro(macro_name, macro_argument): diff --git a/lms/lms/web_template/course_cards/course_cards.html b/lms/lms/web_template/course_cards/course_cards.html index e65a8efb..aa329438 100644 --- a/lms/lms/web_template/course_cards/course_cards.html +++ b/lms/lms/web_template/course_cards/course_cards.html @@ -10,6 +10,6 @@
Explore More
- + diff --git a/lms/lms/widgets/BreadCrumb.html b/lms/lms/widgets/BreadCrumb.html index e9b849b6..ca7a4747 100644 --- a/lms/lms/widgets/BreadCrumb.html +++ b/lms/lms/widgets/BreadCrumb.html @@ -1,10 +1,10 @@ {% else %} -
{{ _("Completed") +
{{ _("Completed") }}
{% endif %} {% endif %} @@ -53,13 +53,13 @@ {% if course.get_students() | length %} - + {{ course.get_students() | length }} {% endif %} {% set avg_rating = course.get_average_rating() %} {% if avg_rating %} - + {{ frappe.utils.flt(avg_rating, frappe.get_system_settings("float_precision") or 3) }} {% endif %} @@ -138,7 +138,7 @@ e.preventDefault(); course = $(e.currentTarget).attr("data-course"); frappe.call({ - method: "school.lms.doctype.lms_certification.lms_certification.create_certificate", + method: "lms.lms.doctype.lms_certification.lms_certification.create_certificate", args: { "course": course }, diff --git a/lms/lms/widgets/RequestInvite.html b/lms/lms/widgets/RequestInvite.html index 943dc75f..3da5c6f2 100644 --- a/lms/lms/widgets/RequestInvite.html +++ b/lms/lms/widgets/RequestInvite.html @@ -14,7 +14,7 @@ $("#submit-invite-request").click(function () { var invite_email = $("#invite_email").val() frappe.call({ - method: "school.lms.doctype.invite_request.invite_request.create_invite_request", + method: "lms.lms.doctype.invite_request.invite_request.create_invite_request", args: { invite_email: invite_email }, diff --git a/lms/lms/workspace/lms/lms.json b/lms/lms/workspace/lms/lms.json index 4f3bf870..9efa29c6 100644 --- a/lms/lms/workspace/lms/lms.json +++ b/lms/lms/workspace/lms/lms.json @@ -1,7 +1,13 @@ { "category": "Modules", - "charts": [], - "creation": "2021-06-29 13:05:28.741459", + "charts": [ + { + "chart_name": "Course Enrollments", + "label": "Course Enrollments" + } + ], + "content": "[{\"type\":\"chart\",\"data\":{\"chart_name\":\"Course Enrollments\",\"col\":12}},{\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Course\",\"col\":4}},{\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Course Enrollments\",\"col\":4}},{\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Course Completed\",\"col\":4}},{\"type\":\"card\",\"data\":{\"card_name\":\"Course Data\",\"col\":4}},{\"type\":\"card\",\"data\":{\"card_name\":\"Course Stats\",\"col\":4}}]", + "creation": "2021-10-21 17:20:01.358903", "developer_mode_only": 0, "disable_user_customization": 0, "docstatus": 0, @@ -17,61 +23,8 @@ { "hidden": 0, "is_query_report": 0, - "label": "LMS", - "link_type": "DocType", - "onboard": 0, - "type": "Card Break" - }, - { - "hidden": 0, - "is_query_report": 0, - "label": "LMS Course", - "link_to": "LMS Course", - "link_type": "DocType", - "onboard": 0, - "type": "Link" - }, - { - "hidden": 0, - "is_query_report": 0, - "label": "LMS Batch", - "link_to": "LMS Batch", - "link_type": "DocType", - "onboard": 0, - "type": "Link" - }, - { - "hidden": 0, - "is_query_report": 0, - "label": "LMS Batch Membership", - "link_to": "LMS Batch Membership", - "link_type": "DocType", - "onboard": 0, - "type": "Link" - }, - { - "hidden": 0, - "is_query_report": 0, - "label": "LMS Course Interest", - "link_to": "LMS Course Interest", - "link_type": "DocType", - "onboard": 0, - "type": "Link" - }, - { - "hidden": 0, - "is_query_report": 0, - "label": "LMS Course Mentor Mapping", - "link_to": "LMS Course Mentor Mapping", - "link_type": "DocType", - "onboard": 0, - "type": "Link" - }, - { - "hidden": 0, - "is_query_report": 0, - "label": "Content", - "link_type": "DocType", + "label": "Course Data", + "link_count": 3, "onboard": 0, "type": "Card Break" }, @@ -79,6 +32,7 @@ "hidden": 0, "is_query_report": 0, "label": "Chapter", + "link_count": 0, "link_to": "Course Chapter", "link_type": "DocType", "onboard": 0, @@ -88,7 +42,8 @@ "hidden": 0, "is_query_report": 0, "label": "Lesson", - "link_to": "Lesson", + "link_count": 0, + "link_to": "Course Lesson", "link_type": "DocType", "onboard": 0, "type": "Link" @@ -96,25 +51,8 @@ { "hidden": 0, "is_query_report": 0, - "label": "Exercise", - "link_to": "Exercise", - "link_type": "DocType", - "onboard": 0, - "type": "Link" - }, - { - "hidden": 0, - "is_query_report": 0, - "label": "Exercise Submission", - "link_to": "Exercise Submission", - "link_type": "DocType", - "onboard": 0, - "type": "Link" - }, - { - "hidden": 0, - "is_query_report": 0, - "label": "LMS Quiz", + "label": "Quiz", + "link_count": 0, "link_to": "LMS Quiz", "link_type": "DocType", "onboard": 0, @@ -123,47 +61,71 @@ { "hidden": 0, "is_query_report": 0, - "label": "LMS Quiz Submission", - "link_to": "LMS Quiz Submission", + "label": "Course Stats", + "link_count": 2, + "onboard": 0, + "type": "Card Break" + }, + { + "hidden": 0, + "is_query_report": 0, + "label": "Interest", + "link_count": 0, + "link_to": "LMS Course Interest", + "link_type": "DocType", + "onboard": 0, + "type": "Link" + }, + { + "hidden": 0, + "is_query_report": 0, + "label": "Review", + "link_count": 0, + "link_to": "LMS Course Review", "link_type": "DocType", "onboard": 0, "type": "Link" } ], - "modified": "2021-08-31 10:33:39.838535", + "modified": "2021-10-21 18:18:02.114827", "modified_by": "Administrator", "module": "LMS", "name": "LMS", "owner": "Administrator", + "parent_page": "", "pin_to_bottom": 0, "pin_to_top": 1, + "public": 1, + "roles": [], + "sequence_id": 1, "shortcuts": [ { - "color": "#29CD42", + "color": "Green", "doc_view": "List", "format": "{} Published", - "label": "Courses", + "label": "Course", "link_to": "LMS Course", - "stats_filter": "{\"is_published\": 1}", + "stats_filter": "{\"is_published\":[\"=\",1]}", "type": "DocType" }, { - "color": "#29CD42", + "color": "Orange", "doc_view": "List", - "format": "{} Active ", - "label": "Batches", - "link_to": "LMS Batch", - "stats_filter": "{\"status\": \"Active\"}", - "type": "DocType" - }, - { - "color": "#39E4A5", - "doc_view": "List", - "format": "{} Students", - "label": "Memberships", + "format": "{} Completed", + "label": "Course Completed", "link_to": "LMS Batch Membership", - "stats_filter": "{\"member_type\": \"Student\"}", + "stats_filter": "{\"progress\":[\"=\",\"100\"]}", + "type": "DocType" + }, + { + "color": "Green", + "doc_view": "List", + "format": "{} Enrolled", + "label": "Course Enrollments", + "link_to": "LMS Batch Membership", + "stats_filter": "{\"member_type\":[\"=\",\"Student\"]}", "type": "DocType" } - ] + ], + "title": "LMS" } diff --git a/lms/lms/workspace/school/school.json b/lms/lms/workspace/school/school.json deleted file mode 100644 index e4415c38..00000000 --- a/lms/lms/workspace/school/school.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "category": "Modules", - "charts": [ - { - "chart_name": "Course Enrollments", - "label": "Course Enrollments" - } - ], - "content": "[{\"type\":\"chart\",\"data\":{\"chart_name\":\"Course Enrollments\",\"col\":12}},{\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Course\",\"col\":4}},{\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Course Enrollments\",\"col\":4}},{\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Course Completed\",\"col\":4}},{\"type\":\"card\",\"data\":{\"card_name\":\"Course Data\",\"col\":4}},{\"type\":\"card\",\"data\":{\"card_name\":\"Course Stats\",\"col\":4}}]", - "creation": "2021-10-21 17:20:01.358903", - "developer_mode_only": 0, - "disable_user_customization": 0, - "docstatus": 0, - "doctype": "Workspace", - "extends_another_page": 0, - "hide_custom": 0, - "icon": "education", - "idx": 0, - "is_default": 0, - "is_standard": 1, - "label": "School", - "links": [ - { - "hidden": 0, - "is_query_report": 0, - "label": "Course Data", - "link_count": 3, - "onboard": 0, - "type": "Card Break" - }, - { - "hidden": 0, - "is_query_report": 0, - "label": "Chapter", - "link_count": 0, - "link_to": "Course Chapter", - "link_type": "DocType", - "onboard": 0, - "type": "Link" - }, - { - "hidden": 0, - "is_query_report": 0, - "label": "Lesson", - "link_count": 0, - "link_to": "Course Lesson", - "link_type": "DocType", - "onboard": 0, - "type": "Link" - }, - { - "hidden": 0, - "is_query_report": 0, - "label": "Quiz", - "link_count": 0, - "link_to": "LMS Quiz", - "link_type": "DocType", - "onboard": 0, - "type": "Link" - }, - { - "hidden": 0, - "is_query_report": 0, - "label": "Course Stats", - "link_count": 2, - "onboard": 0, - "type": "Card Break" - }, - { - "hidden": 0, - "is_query_report": 0, - "label": "Interest", - "link_count": 0, - "link_to": "LMS Course Interest", - "link_type": "DocType", - "onboard": 0, - "type": "Link" - }, - { - "hidden": 0, - "is_query_report": 0, - "label": "Review", - "link_count": 0, - "link_to": "LMS Course Review", - "link_type": "DocType", - "onboard": 0, - "type": "Link" - } - ], - "modified": "2021-10-21 18:18:02.114827", - "modified_by": "Administrator", - "module": "LMS", - "name": "School", - "owner": "Administrator", - "parent_page": "", - "pin_to_bottom": 0, - "pin_to_top": 1, - "public": 1, - "roles": [], - "sequence_id": 1, - "shortcuts": [ - { - "color": "Green", - "doc_view": "List", - "format": "{} Published", - "label": "Course", - "link_to": "LMS Course", - "stats_filter": "{\"is_published\":[\"=\",1]}", - "type": "DocType" - }, - { - "color": "Orange", - "doc_view": "List", - "format": "{} Completed", - "label": "Course Completed", - "link_to": "LMS Batch Membership", - "stats_filter": "{\"progress\":[\"=\",\"100\"]}", - "type": "DocType" - }, - { - "color": "Green", - "doc_view": "List", - "format": "{} Enrolled", - "label": "Course Enrollments", - "link_to": "LMS Batch Membership", - "stats_filter": "{\"member_type\":[\"=\",\"Student\"]}", - "type": "DocType" - } - ], - "title": "School" -} \ No newline at end of file diff --git a/lms/overrides/test_user.py b/lms/overrides/test_user.py index 16080338..db7df985 100644 --- a/lms/overrides/test_user.py +++ b/lms/overrides/test_user.py @@ -18,7 +18,7 @@ class TestCustomUser(unittest.TestCase): def test_without_username(self): """ The user in this test has the same first name as the user of the test test_with_basic_username. In such cases frappe makes the username of the second user empty. - The condition in school app should override this and save a username. """ + The condition in lms app should override this and save a username. """ new_user = frappe.get_doc({ "doctype": "User", "email": "test-without-username@example.com", diff --git a/lms/overrides/web_template.py b/lms/overrides/web_template.py index 0904a212..83b3cae6 100644 --- a/lms/overrides/web_template.py +++ b/lms/overrides/web_template.py @@ -1,6 +1,6 @@ import frappe from frappe.website.doctype.web_template.web_template import WebTemplate -from school.widgets import Widgets +from lms.widgets import Widgets import json class CustomWebTemplate(WebTemplate): diff --git a/lms/patches/create_mentor_request_email_templates.py b/lms/patches/create_mentor_request_email_templates.py index 1ac72715..cfdc97af 100644 --- a/lms/patches/create_mentor_request_email_templates.py +++ b/lms/patches/create_mentor_request_email_templates.py @@ -4,7 +4,7 @@ from frappe import _ def execute(): frappe.reload_doc("email", "doctype", "email_template") - base_path = frappe.get_app_path("school", "templates", "emails") + base_path = frappe.get_app_path("lms", "templates", "emails") if not frappe.db.exists("Email Template", _('Mentor Request Creation Template')): response = frappe.read_file(os.path.join(base_path, "mentor_request_creation_email.html")) diff --git a/lms/plugins.py b/lms/plugins.py index 5643f57c..58aab371 100644 --- a/lms/plugins.py +++ b/lms/plugins.py @@ -1,6 +1,6 @@ """ The plugins module provides various plugins to change the default -behaviour some parts of the school app. +behaviour some parts of the lms app. A site specify what plugins to use using appropriate entries in the frappe hooks, written in the `hooks.py`. diff --git a/lms/public/build.json b/lms/public/build.json index 32f7e04b..7a9d72d5 100644 --- a/lms/public/build.json +++ b/lms/public/build.json @@ -1,5 +1,5 @@ { - "css/school.css": [ + "css/lms.css": [ "public/css/style.css" ] } diff --git a/lms/public/css/style.css b/lms/public/css/style.css index edf03ef9..108f97b7 100644 --- a/lms/public/css/style.css +++ b/lms/public/css/style.css @@ -298,7 +298,7 @@ input[type=checkbox] { } .custom-checkbox>label>input:checked+.empty-checkbox { - background: url(/assets/school/icons/tick.svg); + background: url(/assets/lms/icons/tick.svg); background-repeat: no-repeat; background-position: center center; } @@ -1365,14 +1365,14 @@ pre { } .interactive-arrow { - background-image: url("/assets/school/icons/arrow.svg"); + background-image: url("/assets/lms/icons/arrow.svg"); width: 1.5rem; height: 1.5rem; margin-left: 0.5rem; } .intercative-link:hover .interactive-arrow{ - background-image: url("/assets/school/icons/blue-arrow.svg"); + background-image: url("/assets/lms/icons/blue-arrow.svg"); margin-left: 1.5rem; } @@ -1430,13 +1430,13 @@ pre { } .carousel-control-prev-icon { - background-image: url("/assets/school/icons/slider-arrow-left.svg"); + background-image: url("/assets/lms/icons/slider-arrow-left.svg"); width: 40px; height: 40px; } .carousel-control-next-icon { - background-image: url("/assets/school/icons/slider-arrow-right.svg"); + background-image: url("/assets/lms/icons/slider-arrow-right.svg"); width: 40px; height: 40px; } diff --git a/lms/templates/certificate.html b/lms/templates/certificate.html index 86f87de5..ac9bbc7e 100644 --- a/lms/templates/certificate.html +++ b/lms/templates/certificate.html @@ -46,4 +46,4 @@
- + diff --git a/lms/templates/livecode/extension_footer.html b/lms/templates/livecode/extension_footer.html index 19fbac1b..10ec0e0f 100644 --- a/lms/templates/livecode/extension_footer.html +++ b/lms/templates/livecode/extension_footer.html @@ -104,7 +104,7 @@ var name = $(e).data("name"); let code = editor.codemirror.doc.getValue(); - frappe.call("school.lms.api.submit_solution", { + frappe.call("lms.lms.api.submit_solution", { "exercise": name, "code": code }).then(r => { diff --git a/lms/templates/search_course/search_course.html b/lms/templates/search_course/search_course.html index fd736d73..66150c4c 100644 --- a/lms/templates/search_course/search_course.html +++ b/lms/templates/search_course/search_course.html @@ -11,5 +11,5 @@
{{ _("Try some other keyword or explore our list of courses.") }}
- + {% endif %} diff --git a/lms/templates/search_course/search_course.js b/lms/templates/search_course/search_course.js index 0126f8e9..0fae9540 100644 --- a/lms/templates/search_course/search_course.js +++ b/lms/templates/search_course/search_course.js @@ -25,7 +25,7 @@ const search_course = (e) => { } frappe.call({ - method: "school.lms.doctype.lms_course.lms_course.search_course", + method: "lms.lms.doctype.lms_course.lms_course.search_course", args: { "text": input }, diff --git a/lms/www/batch/join.html b/lms/www/batch/join.html index e1c9f77d..0a839709 100644 --- a/lms/www/batch/join.html +++ b/lms/www/batch/join.html @@ -49,7 +49,7 @@ frappe.ready(() => { $("#confirm").click((e) => { frappe.call({ - "method": "school.lms.doctype.lms_batch_membership.lms_batch_membership.create_membership", + "method": "lms.lms.doctype.lms_batch_membership.lms_batch_membership.create_membership", "args": { "batch": {{ batch.name }}, "course": {{ batch.course }} diff --git a/lms/www/batch/learn.html b/lms/www/batch/learn.html index 93e1a2a4..930929f0 100644 --- a/lms/www/batch/learn.html +++ b/lms/www/batch/learn.html @@ -71,7 +71,7 @@
{% if prev_url %} {% endif %} @@ -99,7 +99,7 @@ {% if course.enable_certification %}
diff --git a/lms/www/batch/learn.js b/lms/www/batch/learn.js index c64f8510..61b31341 100644 --- a/lms/www/batch/learn.js +++ b/lms/www/batch/learn.js @@ -40,7 +40,7 @@ frappe.ready(() => { var save_current_lesson = () => { if ($(".title").hasClass("is-member")) { - frappe.call("school.lms.api.save_current_lesson", { + frappe.call("lms.lms.api.save_current_lesson", { course_name: $(".title").attr("data-course"), lesson_name: $(".title").attr("data-lesson") }) @@ -86,7 +86,7 @@ var mark_progress = (e) => { if (status != current_status) { frappe.call({ - method: "school.lms.doctype.course_lesson.course_lesson.save_progress", + method: "lms.lms.doctype.course_lesson.course_lesson.save_progress", args: { lesson: $(".title").attr("data-lesson"), course: $(".title").attr("data-course"), @@ -137,7 +137,7 @@ var quiz_summary = (e) => { var total_questions = $(".question").length; frappe.call({ - method: "school.lms.doctype.lms_quiz.lms_quiz.quiz_summary", + method: "lms.lms.doctype.lms_quiz.lms_quiz.quiz_summary", args: { "quiz": quiz_name, "results": localStorage.getItem(quiz_name) @@ -204,7 +204,7 @@ var parse_options = () => { var add_icon = (element, icon) => { var label = $(element).parent().find(".label-area p").text(); - $(element).parent().empty().html(` ${label}`); + $(element).parent().empty().html(` ${label}`); } var add_to_local_storage = (quiz_name, current_index, answer, is_correct) => { @@ -222,7 +222,7 @@ var create_certificate = (e) => { e.preventDefault(); course = $(".title").attr("data-course"); frappe.call({ - method: "school.lms.doctype.lms_certification.lms_certification.create_certificate", + method: "lms.lms.doctype.lms_certification.lms_certification.create_certificate", args: { "course": course }, diff --git a/lms/www/batch/learn.py b/lms/www/batch/learn.py index c16b11ab..1a01ebc4 100644 --- a/lms/www/batch/learn.py +++ b/lms/www/batch/learn.py @@ -3,7 +3,7 @@ import frappe from . import utils from frappe.utils import cstr -from school.www import batch +from lms.www import batch def get_context(context): utils.get_common_context(context) @@ -53,7 +53,7 @@ def get_lesson_index(course, batch, user): return lesson and course.get_lesson_index(lesson) def get_page_extensions(): - default_value = ["school.plugins.PageExtension"] - classnames = frappe.get_hooks("school_lesson_page_extensions") or default_value + default_value = ["lms.plugins.PageExtension"] + classnames = frappe.get_hooks("lms_lesson_page_extensions") or default_value extensions = [frappe.get_attr(name)() for name in classnames] return extensions diff --git a/lms/www/batch/utils.py b/lms/www/batch/utils.py index 5e3019c6..6f31f921 100644 --- a/lms/www/batch/utils.py +++ b/lms/www/batch/utils.py @@ -1,5 +1,5 @@ import frappe -from school.lms.models import Course +from lms.lms.models import Course def get_common_context(context): context.no_cache = 1 diff --git a/lms/www/courses/certificate.html b/lms/www/courses/certificate.html index 3d1ceba0..0013bb96 100644 --- a/lms/www/courses/certificate.html +++ b/lms/www/courses/certificate.html @@ -9,7 +9,7 @@ @@ -19,7 +19,7 @@ data-certificate-name="{{ student.full_name }} - {{ course.title }}">Export
{% endif %} - {% include "school/templates/certificate.html" %} + {% include "lms/templates/certificate.html" %} {% endblock %} diff --git a/lms/www/courses/course.html b/lms/www/courses/course.html index 364fdeec..6e3f7332 100644 --- a/lms/www/courses/course.html +++ b/lms/www/courses/course.html @@ -46,7 +46,7 @@ {% if not course.disable_self_learning and not membership and not course.upcoming %}
Start Learning - +
{% endif %} {% if membership %} @@ -55,7 +55,7 @@ else '1.1' %} - Continue Learning + Continue Learning {% endif %} {% if course.upcoming and not is_user_interested %} @@ -67,7 +67,7 @@ {% if course.video_link %}
Watch Video Preview - +
{% endif %} @@ -171,7 +171,7 @@
View all mentors + src="/assets/lms/icons/down-arrow.svg" />
@@ -199,13 +199,13 @@
{% if course.get_students() | length %}
- + {{ course.get_students() | length }} Enrolled
{% endif %} {% if avg_rating %}
- + {{ frappe.utils.flt(avg_rating, frappe.get_system_settings("float_precision") or 3) }} Rating
{% endif %} diff --git a/lms/www/courses/course.js b/lms/www/courses/course.js index 4a5c3c81..c7d98c58 100644 --- a/lms/www/courses/course.js +++ b/lms/www/courses/course.js @@ -45,7 +45,7 @@ frappe.ready(() => { var check_mentor_request = () => { frappe.call({ - 'method': 'school.lms.doctype.lms_mentor_request.lms_mentor_request.has_requested', + 'method': 'lms.lms.doctype.lms_mentor_request.lms_mentor_request.has_requested', 'args': { course: decodeURIComponent($("#course-title").attr("data-course")), }, @@ -84,7 +84,7 @@ var create_mentor_request = (e) => { return; } frappe.call({ - "method": "school.lms.doctype.lms_mentor_request.lms_mentor_request.create_request", + "method": "lms.lms.doctype.lms_mentor_request.lms_mentor_request.create_request", "args": { "course": decodeURIComponent($(e.currentTarget).attr("data-course")) }, @@ -100,7 +100,7 @@ var create_mentor_request = (e) => { var cancel_mentor_request = (e) => { e.preventDefault() frappe.call({ - "method": "school.lms.doctype.lms_mentor_request.lms_mentor_request.cancel_request", + "method": "lms.lms.doctype.lms_mentor_request.lms_mentor_request.cancel_request", "args": { "course": decodeURIComponent($(e.currentTarget).attr("data-course")) }, @@ -123,7 +123,7 @@ var join_course = (e) => { var batch = $(e.currentTarget).attr("data-batch"); batch = batch ? decodeURIComponent(batch) : ""; frappe.call({ - "method": "school.lms.doctype.lms_batch_membership.lms_batch_membership.create_membership", + "method": "lms.lms.doctype.lms_batch_membership.lms_batch_membership.create_membership", "args": { "batch": batch ? batch : "", "course": course @@ -183,7 +183,7 @@ var submit_review = (e) => { return; } frappe.call({ - method: "school.lms.doctype.lms_course_review.lms_course_review.submit_review", + method: "lms.lms.doctype.lms_course_review.lms_course_review.submit_review", args: { "rating": rating, "review": review, @@ -210,7 +210,7 @@ var notify_user = (e) => { } frappe.call({ - method: "school.lms.doctype.lms_course_interest.lms_course_interest.capture_interest", + method: "lms.lms.doctype.lms_course_interest.lms_course_interest.capture_interest", args: { "course": course }, diff --git a/lms/www/courses/index.html b/lms/www/courses/index.html index 78843b7e..9cd3a0ad 100644 --- a/lms/www/courses/index.html +++ b/lms/www/courses/index.html @@ -10,18 +10,18 @@
- {% include "school/templates/search_course/search_course.html" %} + {% include "lms/templates/search_course/search_course.html" %}
{% set title = _("Live Courses") %} {% set courses = live_courses %} {% set classes = "live-courses" %} - {% include "school/templates/course_list.html" %} + {% include "lms/templates/course_list.html" %} {% set title = _("Upcoming Courses") %} {% set courses = upcoming_courses %} {% set classes = "upcoming-courses mt-10" %} - {% include "school/templates/course_list.html" %} + {% include "lms/templates/course_list.html" %}
diff --git a/lms/www/hackathons/project.js b/lms/www/hackathons/project.js index 82a41089..8392ddab 100644 --- a/lms/www/hackathons/project.js +++ b/lms/www/hackathons/project.js @@ -13,7 +13,7 @@ var set_likes = function (liked, likes) { // set initial likes frappe.ready(() => { - frappe.call('school.www.hackathons.project.like', { project: get_url_arg().get("project"), initial: true }, (data) => { + frappe.call('lms.www.hackathons.project.like', { project: get_url_arg().get("project"), initial: true }, (data) => { set_likes(data.message.action == "Liked", data.message.likes) }) }) @@ -23,26 +23,26 @@ var get_url_arg = () => { } // like - unlike $('.btn-like').on('click', (e) => { - frappe.call('school.www.hackathons.project.like', { project: get_url_arg().get("project") }, (data) => { + frappe.call('lms.www.hackathons.project.like', { project: get_url_arg().get("project") }, (data) => { set_likes(data.message.action == "Liked", data.message.likes); }); }); // accept / reject $('.btn-accept').on('click', (e) => { - frappe.call('school.www.hackathons.project.join_request', { id: $(e.target).attr('data-request-id'), action: 'Accept' }, (data) => { + frappe.call('lms.www.hackathons.project.join_request', { id: $(e.target).attr('data-request-id'), action: 'Accept' }, (data) => { window.location.reload(); }); }); $('.btn-reject').on('click', (ev) => { - frappe.call('school.www.hackathons.project.join_request', { id: $(ev.target).attr('data-request-id'), action: 'Reject' }, (data) => { + frappe.call('lms.www.hackathons.project.join_request', { id: $(ev.target).attr('data-request-id'), action: 'Reject' }, (data) => { window.location.reload(); }); }); $('.btn-leave').on('click', (ev) => { - frappe.call('school.www.hackathons.project.join_request', { id: $(ev.target).attr('data-request-id'), action: 'Reject' }, (data) => { + frappe.call('lms.www.hackathons.project.join_request', { id: $(ev.target).attr('data-request-id'), action: 'Reject' }, (data) => { window.location.reload(); }); -}); \ No newline at end of file +}); diff --git a/lms/www/macros/livecode.html b/lms/www/macros/livecode.html index 662a0546..5a77fcd0 100644 --- a/lms/www/macros/livecode.html +++ b/lms/www/macros/livecode.html @@ -74,7 +74,7 @@ if (!frappe.sys_defaults) { - +