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/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 5ac8ba8a..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 c4f32962..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 %} -
- -
- Propose a Talk -
- -
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 bb8c10ef..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 cdd81bad..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/lms/md.py b/lms/lms/md.py index 0ab3ce7e..520be6fc 100644 --- a/lms/lms/md.py +++ b/lms/lms/md.py @@ -105,7 +105,7 @@ def sanitize_html(html, macro): any broken tags. This makes sures that all those things are fixed before passing to the etree parser. """ - soup = BeautifulSoup(html, features="lxml") + soup = BeautifulSoup(html, features="html5lib") nodes = soup.body.children classname = "" if macro == "YouTubeVideo": diff --git a/lms/community/__init__.py b/lms/lms/web_template/multiple_testimonials/__init__.py similarity index 100% rename from lms/community/__init__.py rename to lms/lms/web_template/multiple_testimonials/__init__.py diff --git a/lms/community/web_template/multiple_testimonials/multiple_testimonials.html b/lms/lms/web_template/multiple_testimonials/multiple_testimonials.html similarity index 100% rename from lms/community/web_template/multiple_testimonials/multiple_testimonials.html rename to lms/lms/web_template/multiple_testimonials/multiple_testimonials.html diff --git a/lms/community/web_template/multiple_testimonials/multiple_testimonials.json b/lms/lms/web_template/multiple_testimonials/multiple_testimonials.json similarity index 76% rename from lms/community/web_template/multiple_testimonials/multiple_testimonials.json rename to lms/lms/web_template/multiple_testimonials/multiple_testimonials.json index 5d4db8f0..a0ef204b 100644 --- a/lms/community/web_template/multiple_testimonials/multiple_testimonials.json +++ b/lms/lms/web_template/multiple_testimonials/multiple_testimonials.json @@ -5,24 +5,18 @@ "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", @@ -30,10 +24,10 @@ "reqd": 0 } ], - "idx": 0, - "modified": "2021-11-16 17:17:49.089989", + "idx": 1, + "modified": "2022-03-21 11:52:27.728610", "modified_by": "Administrator", - "module": "Community", + "module": "LMS", "name": "Multiple Testimonials", "owner": "Administrator", "standard": 1, diff --git a/lms/community/widgets/Avatar.html b/lms/lms/widgets/Avatar.html similarity index 100% rename from lms/community/widgets/Avatar.html rename to lms/lms/widgets/Avatar.html diff --git a/lms/public/css/style.css b/lms/public/css/style.css index 52b3890f..0557b4a2 100644 --- a/lms/public/css/style.css +++ b/lms/public/css/style.css @@ -348,7 +348,7 @@ input[type=checkbox] { .is-secondary:hover { text-decoration: none; - color: inherit; + color: var(--gray-900); } .is-default { @@ -657,7 +657,6 @@ input[type=checkbox] { .profile-banner { height: 248px; - border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg); background-size: cover; background-position: center; } @@ -669,21 +668,23 @@ input[type=checkbox] { } .profile-info { - height: 68px; + height: 90px; background: #ffffff; border-radius: 0px 0px 8px 8px; font-size: var(--text-sm); display: flex; - justify-content: space-between; - margin: 0 1rem 4rem 0; flex-direction: column; + margin-bottom: 4rem; padding-left: 200px; + padding-right: 1rem; + box-shadow: var(--shadow-sm); } @media (max-width: 550px) { .profile-info { align-items: flex-end; padding-left: 0; + height: 150px; } } @@ -735,10 +736,6 @@ input[type=checkbox] { } } -.profile-link { - margin-left: auto; -} - .creator-badge { background: #48BB74; padding: 4px 6px; diff --git a/lms/widgets.py b/lms/widgets.py index 99ed1829..e147a3c4 100644 --- a/lms/widgets.py +++ b/lms/widgets.py @@ -15,7 +15,6 @@ from frappe.utils.jinja import get_jenv # widgets/SomeWidgets.html in each of these modules. MODULES = [ "lms", - "community" ] def update_website_context(context): diff --git a/lms/www/hackathons/__init__.py b/lms/www/hackathons/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/www/hackathons/__pycache__/__init__.py b/lms/www/hackathons/__pycache__/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/www/hackathons/hackathon.html b/lms/www/hackathons/hackathon.html deleted file mode 100644 index 9e93aeb8..00000000 --- a/lms/www/hackathons/hackathon.html +++ /dev/null @@ -1,129 +0,0 @@ -{% extends "templates/base.html" %} -{% block title %}{{ hackathon }}{% endblock %} -{% from "www/hackathons/macros/hero.html" import hero %} -{% from "www/hackathons/macros/card.html" import null_card %} -{% from "www/hackathons/macros/navbar.html" import navbar %} -{% from "www/hackathons/macros/user.html" import show_user %} - -{% block head_include %} - -{% endblock %} - - -{% macro card(project) %} -
- -
-
-
{{ project.name }}
-
{{ project.project_short_intro }}
-
-
-
-
-{% endmacro %} - -{% macro card_talk(talk) %} -
- -
-
-
{{ talk.topic }}
-
{{ talk.speaker }}
-
{{ frappe.utils.format_datetime(talk.date_and_time, "medium") }}
-
-
-
-
-{% endmacro %} - -{% macro card_update(update) %} -
-
-
-

{{ frappe.utils.md_to_html(update.project_update) }}

-
- {{ update.project}} - by {{ show_user(update.owner) }} -
{{ frappe.utils.format_datetime(update.creation, "medium") }}
-
-
-
-
-{% endmacro %} - -{% block content %} -
- {{ hero(hackathon, {'name': 'Home', 'url': '/hackathons'}) }} -
- {{ navbar(hackathon) }} -
-
-
- {% for project in projects %} - {{ card(project) }} - {% endfor %} - {% if projects %} - {% for n in range( (3 - (projects|length)) %3) %} - {{ null_card() }} - {% endfor %} - {% endif %} -
-
-
-
- {% for talk in talks %} - {{ card_talk(talk) }} - {% endfor %} - {% if talks %} - {% for n in range( (3 - (talks|length)) %3) %} - {{ null_card() }} - {% endfor %} - {% endif %} -
-
-
-
- {% for update in updates %} - {{ card_update(update) }} - {% endfor %} - {% if updates %} - {% for n in range( (3 - (updates|length)) %3) %} - {{ null_card() }} - {% endfor %} - {% endif %} -
-
-
-
-
-{% endblock %} diff --git a/lms/www/hackathons/hackathon.py b/lms/www/hackathons/hackathon.py deleted file mode 100644 index 0c6bf082..00000000 --- a/lms/www/hackathons/hackathon.py +++ /dev/null @@ -1,25 +0,0 @@ -from __future__ import unicode_literals -import frappe -from frappe import _ - -def get_context(context): - context.no_cache = 1 - try: - hackathon = frappe.form_dict['hackathon'] - except KeyError: - frappe.local.flags.redirect_location = '/hackathons' - raise frappe.Redirect - context.projects = get_hackathon_projects(hackathon) - context.hackathon = hackathon - context.talks = get_hackathon_talks(hackathon) - context.updates = get_hackathon_updates(context.projects) - -def get_hackathon_projects(hackathon): - return frappe.get_all("Community Project", filters={"hackathon":hackathon}, fields=["name", "project_short_intro"]) - -def get_hackathon_talks(hackathon): - return frappe.get_all("Community Talk", {"event": hackathon}, ["topic", "speaker", "date_and_time", "video_link"]) - -def get_hackathon_updates(projects): - project_list = [project.name for project in projects] - return frappe.get_all("Community Project Update", {"project": ["in", project_list]}, ["project", "`update` as project_update", "owner", "creation"]) \ No newline at end of file diff --git a/lms/www/hackathons/index.html b/lms/www/hackathons/index.html deleted file mode 100644 index 245ab5a2..00000000 --- a/lms/www/hackathons/index.html +++ /dev/null @@ -1,63 +0,0 @@ -{% extends "templates/base.html" %} -{% block title %}{{ 'Hackathons' }}{% endblock %} -{% from "www/hackathons/macros/card.html" import hackathon_card %} -{% from "www/hackathons/macros/card.html" import null_card %} -{% block head_include %} - - - -{% endblock %} - -{% block content %} -
-
-

{{ 'Hackathon' }}

- -
-
-
- {% for hackathon in hackathons %} - {{ hackathon_card(hackathon) }} - {% endfor %} - {% if hackathons %} - {% for n in range( (3 - (hackathons|length)) %3) %} - {{ null_card() }} - {% endfor %} - {% endif %} -
-
-
-{% endblock %} \ No newline at end of file diff --git a/lms/www/hackathons/index.py b/lms/www/hackathons/index.py deleted file mode 100644 index efa5dfd3..00000000 --- a/lms/www/hackathons/index.py +++ /dev/null @@ -1,8 +0,0 @@ -import frappe - -def get_context(context): - context.no_cache = 1 - context.hackathons = get_hackathons() - -def get_hackathons(): - return frappe.get_all("Community Hackathon") \ No newline at end of file diff --git a/lms/www/hackathons/macros/__init__.py b/lms/www/hackathons/macros/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/lms/www/hackathons/macros/card.html b/lms/www/hackathons/macros/card.html deleted file mode 100644 index 912a3cda..00000000 --- a/lms/www/hackathons/macros/card.html +++ /dev/null @@ -1,18 +0,0 @@ -{% macro hackathon_card(hackathon) %} -
- -
-
-
{{ hackathon.name }}
-
-
-
-
-{% endmacro %} - -{% macro null_card() %} -
-
-
-
-{% endmacro %} diff --git a/lms/www/hackathons/macros/hero.html b/lms/www/hackathons/macros/hero.html deleted file mode 100644 index 46e66475..00000000 --- a/lms/www/hackathons/macros/hero.html +++ /dev/null @@ -1,15 +0,0 @@ -{% macro hero(title, back) %} -
-
- - {{_('Back to')}} {{ _(back.name) }} - -
-

{{ title }}

- -
-{% endmacro %} \ No newline at end of file diff --git a/lms/www/hackathons/macros/navbar.html b/lms/www/hackathons/macros/navbar.html deleted file mode 100644 index 4e2bae25..00000000 --- a/lms/www/hackathons/macros/navbar.html +++ /dev/null @@ -1,16 +0,0 @@ -{% macro navbar(hackathon) %} - -{% endmacro %} \ No newline at end of file diff --git a/lms/www/hackathons/macros/user.html b/lms/www/hackathons/macros/user.html deleted file mode 100644 index 0191df9a..00000000 --- a/lms/www/hackathons/macros/user.html +++ /dev/null @@ -1,3 +0,0 @@ -{% macro show_user(user) %} - {{ frappe.db.get_value("User", user, "full_name") }} -{% endmacro %} \ No newline at end of file diff --git a/lms/www/hackathons/project.html b/lms/www/hackathons/project.html deleted file mode 100644 index 8625dcea..00000000 --- a/lms/www/hackathons/project.html +++ /dev/null @@ -1,174 +0,0 @@ -{% extends "templates/base.html" %} -{% block title %}{{ hackathon }}{% endblock %} -{% from "www/hackathons/macros/hero.html" import hero %} -{% from "www/hackathons/macros/card.html" import null_card %} -{% from "www/hackathons/macros/user.html" import show_user %} -{% block head_include %} - - - -{% endblock %} - - -{% block content %} -
- {{ hero(project, {'name': hackathon, 'url': '/hackathons/' + hackathon}) }} -
- {% if project %} -

{{project.project_name}}

- - {% if frappe.session.user != "Guest" %} - {% if is_owner %} -

-

Owner
-

- {% endif %} - {% if is_member %} -

-

Member
-

- {% endif %} - {% endif %} - -

{{ project.project_short_intro[:220] }}

- {% if project.repository_link %} - Respository - {% endif %} - {% if project.video_link %} - Video ▶️ - {% endif %} - - - - -
- - -
- {{ frappe.utils.md_to_html(project.project_description or "No README created yet") }} -
- - -
- - -
- -
{{ show_user(project.owner) }}
- - {% for member in members %} - {% set is_user = member.owner == frappe.session.user %} - {% set is_pending = is_user and member.status=="Pending" %} - {% if member.status == "Accepted" %} -
- {{ show_user(member.owner) }} - {% if is_user %} - - {% endif %} -
- {% elif member.status == "Pending" and is_owner %} -
Join request from: {{ show_user(member.owner) }} -

{{ member.intro }}

-
- - -
-
- {% endif %} - {% endfor %} -
- - {% if frappe.session.user != 'Guest' %} - - {% if not (my_project or is_member or is_pending) and project.accepting_members %} - Join - {{ project.project_name }} - {% elif is_pending %} -

Your application is pending

- {% endif %} - {% endif %} -
- - -
- - {% macro add_update(update, date) %} -
- {{ frappe.utils.md_to_html(update or '') }} -
{{ frappe.utils.format_datetime(date, "medium") }}
-
- {% endmacro %} - - {% if frappe.session.user != 'Guest' and (is_owner or is_member) %} -

- Add - Update -

- {% endif %} - - -
- - - {% for update in updates %} - {{ add_update(update.project_update, update.creation) }} - {% - - - {{ add_update("Project created by " + frappe.db.get_value('User', project.owner, 'full_name'), - project.creation) }} - -
-
-
- {% endif %} -
-
-{% endblock %} \ No newline at end of file diff --git a/lms/www/hackathons/project.js b/lms/www/hackathons/project.js deleted file mode 100644 index 8392ddab..00000000 --- a/lms/www/hackathons/project.js +++ /dev/null @@ -1,48 +0,0 @@ -$('#req-evals').on('click', () => { - frappe.msgprint("The evaluations have been moved to Telegram") -}) -var set_likes = function (liked, likes) { - let $btn = $('.btn-like'); - likes ? $btn.text(`${likes} 👍`): $btn.text(`👍`); - if (liked) { - $btn.addClass('btn-dark').removeClass('btn-default'); - } else { - $btn.addClass('btn-default').removeClass('btn-dark'); - } -}; - -// set initial likes -frappe.ready(() => { - 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) - }) -}) - -var get_url_arg = () => { - return new URLSearchParams(window.location.search); -} -// like - unlike -$('.btn-like').on('click', (e) => { - 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('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('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('lms.www.hackathons.project.join_request', { id: $(ev.target).attr('data-request-id'), action: 'Reject' }, (data) => { - window.location.reload(); - }); -}); diff --git a/lms/www/hackathons/project.py b/lms/www/hackathons/project.py deleted file mode 100644 index 00f2b35b..00000000 --- a/lms/www/hackathons/project.py +++ /dev/null @@ -1,90 +0,0 @@ -from __future__ import unicode_literals -import frappe -from frappe import _ - -def get_context(context): - context.no_cache = 1 - try: - project = frappe.form_dict['project'] - hackathon = frappe.form_dict['hackathon'] - except KeyError: - frappe.local.flags.redirect_location = '/hackathons' - raise frappe.Redirect - context.project = get_project(project) - context.hackathon = hackathon - context.members = get_members(project) - context.confirmed_members = get_comfirmed_members(project) - context.updates = get_updates(project) - if frappe.session.user != "Guest": - context.my_project = get_my_projects() - context.is_owner = context.project.owner == frappe.session.user - context.accepted_members = get_accepted_members(project) - context.is_member = check_is_member(project) - context.liked = get_liked_project(project) - -def get_project(project_name): - try: - return frappe.get_doc('Community Project', project_name) - except frappe.DoesNotExistError: - frappe.throw(_("Project {0} does not exist.").format(project_name)) - -def get_members(project_name): - return frappe.get_all("Community Project Member", {"project": project_name, "status": ("!=", "Rejected") }, ['name', "owner", "status", 'intro']) - -def get_comfirmed_members(project_name): - return frappe.get_all("Community Project Member", {"project": project_name, "status": ("=", "Accepted") }, ['name']) - -def get_updates(project_name): - return frappe.get_all('Community Project Update', {"project": project_name}, ['owner', 'creation', '`update` as project_update']) - -def get_accepted_members(project_name): - return frappe.get_all("Community Project Member", {"project": project_name, "status": "Accepted" }) - -def get_my_projects(): - my_project = frappe.db.get_value('Community Project', {"owner": frappe.session.user}) - if not my_project: - my_project = frappe.db.get_value('Community Project Member', {"owner": frappe.session.user, "status": 'Accepted'}, 'project') - return my_project - -def check_is_member(project_name): - return frappe.get_all("Community Project Member", {"project": project_name, "status": "Accepted", "owner": frappe.session.user }) - -def get_liked_project(project_name): - return frappe.db.get_value("Community Project Like", {"owner": frappe.session.user, "project": project_name}) - -@frappe.whitelist() -def join_request(id, action): - if action == 'Accept': - project_member = frappe.get_doc('Community Project Member', id) - if len(frappe.db.get_all('Community Project Member', - dict(project = project_member.project, status = 'Accepted'))) > 2: - frappe.throw('A project cannot have more than 4 members') - frappe.db.set_value('Community Project Member', id, 'status', 'Accepted') - else: - frappe.db.set_value('Community Project Member', id, 'status', 'Rejected') - -def has_already_liked(project): - likes = frappe.db.get_value('Community Project Like', {"owner": frappe.session.user, "project": project}) - return likes - -@frappe.whitelist() -def get_project_likes(project): - return len(frappe.get_all("Community Project Like", {"project": project})) - -@frappe.whitelist() -def like(project, initial=False): - liked_project = has_already_liked(project) - action = "Liked" if (liked_project and initial) else "Unliked" - if not initial: - if liked_project: - action = "Unliked" - frappe.get_doc("Community Project Like", liked_project).delete() - else: - action = "Liked" - frappe.get_doc({"doctype": "Community Project Like","project": project}).save() - - frappe.db.set_value("Community Project", project, "likes", get_project_likes(project)) - return { - "action": action, - "likes": get_project_likes(project) - } diff --git a/lms/www/profiles/profile.html b/lms/www/profiles/profile.html index de66ac64..97d96288 100644 --- a/lms/www/profiles/profile.html +++ b/lms/www/profiles/profile.html @@ -50,7 +50,7 @@ {% endif %} {% if frappe.session.user == member.email %} - {{ _("Edit Profile") }} + {{ _("Edit Profile") }} {% endif %}