Merge pull request #180 from sumaiya2908/event-management
Create web templates for event management
This commit is contained in:
0
community/event_management/__init__.py
Normal file
0
community/event_management/__init__.py
Normal file
0
community/event_management/doctype/__init__.py
Normal file
0
community/event_management/doctype/__init__.py
Normal file
14
community/event_management/doctype/attendee/attendee.js
Normal file
14
community/event_management/doctype/attendee/attendee.js
Normal file
@@ -0,0 +1,14 @@
|
||||
// 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,
|
||||
}
|
||||
};
|
||||
});
|
||||
}
|
||||
});
|
||||
90
community/event_management/doctype/attendee/attendee.json
Normal file
90
community/event_management/doctype/attendee/attendee.json
Normal file
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"actions": [],
|
||||
"creation": "2021-08-11 10:07:53.262504",
|
||||
"doctype": "DocType",
|
||||
"editable_grid": 1,
|
||||
"engine": "InnoDB",
|
||||
"field_order": [
|
||||
"attendee_info_section",
|
||||
"user",
|
||||
"full_name",
|
||||
"phone_number",
|
||||
"occupation",
|
||||
"company",
|
||||
"what_are_you_hoping_to_learn",
|
||||
"is_paid"
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"fieldname": "attendee_info_section",
|
||||
"fieldtype": "Section Break",
|
||||
"label": "Attendee Info"
|
||||
},
|
||||
{
|
||||
"fieldname": "phone_number",
|
||||
"fieldtype": "Data",
|
||||
"in_list_view": 1,
|
||||
"label": "Phone Number"
|
||||
},
|
||||
{
|
||||
"fieldname": "occupation",
|
||||
"fieldtype": "Data",
|
||||
"label": "Occupation",
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"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",
|
||||
"read_only": 1
|
||||
},
|
||||
{
|
||||
"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"
|
||||
}
|
||||
],
|
||||
"index_web_pages_for_search": 1,
|
||||
"links": [],
|
||||
"modified": "2021-08-20 13:40:25.690440",
|
||||
"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",
|
||||
"track_changes": 1
|
||||
}
|
||||
8
community/event_management/doctype/attendee/attendee.py
Normal file
8
community/event_management/doctype/attendee/attendee.py
Normal file
@@ -0,0 +1,8 @@
|
||||
# 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
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2021, FOSS United and Contributors
|
||||
# See license.txt
|
||||
|
||||
# import frappe
|
||||
import unittest
|
||||
|
||||
class TestAttendee(unittest.TestCase):
|
||||
pass
|
||||
@@ -0,0 +1,8 @@
|
||||
// Copyright (c) 2021, FOSS United and contributors
|
||||
// For license information, please see license.txt
|
||||
|
||||
frappe.ui.form.on('Event Details', {
|
||||
// refresh: function(frm) {
|
||||
|
||||
// }
|
||||
});
|
||||
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"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
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
# 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
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2021, FOSS United and Contributors
|
||||
# See license.txt
|
||||
|
||||
# import frappe
|
||||
import unittest
|
||||
|
||||
class TestEventDetails(unittest.TestCase):
|
||||
pass
|
||||
@@ -0,0 +1,8 @@
|
||||
// Copyright (c) 2021, FOSS United and contributors
|
||||
// For license information, please see license.txt
|
||||
|
||||
frappe.ui.form.on('Event Ticket', {
|
||||
// refresh: function(frm) {
|
||||
|
||||
// }
|
||||
});
|
||||
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"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
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
# 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
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2021, FOSS United and Contributors
|
||||
# See license.txt
|
||||
|
||||
# import frappe
|
||||
import unittest
|
||||
|
||||
class TestEventTicket(unittest.TestCase):
|
||||
pass
|
||||
@@ -0,0 +1,8 @@
|
||||
// Copyright (c) 2021, FOSS United and contributors
|
||||
// For license information, please see license.txt
|
||||
|
||||
frappe.ui.form.on('Exhibitor', {
|
||||
// refresh: function(frm) {
|
||||
|
||||
// }
|
||||
});
|
||||
85
community/event_management/doctype/exhibitor/exhibitor.json
Normal file
85
community/event_management/doctype/exhibitor/exhibitor.json
Normal file
@@ -0,0 +1,85 @@
|
||||
{
|
||||
"actions": [],
|
||||
"autoname": "Exhibitor-Regis-.####.",
|
||||
"creation": "2021-08-16 16:26:46.189119",
|
||||
"doctype": "DocType",
|
||||
"editable_grid": 1,
|
||||
"engine": "InnoDB",
|
||||
"field_order": [
|
||||
"user",
|
||||
"event",
|
||||
"full_name",
|
||||
"company",
|
||||
"logo",
|
||||
"description",
|
||||
"is_paid"
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"fetch_from": "user.full_name",
|
||||
"fieldname": "full_name",
|
||||
"fieldtype": "Data",
|
||||
"label": "Full Name",
|
||||
"read_only": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "company",
|
||||
"fieldtype": "Data",
|
||||
"label": "Company "
|
||||
},
|
||||
{
|
||||
"fieldname": "logo",
|
||||
"fieldtype": "Attach Image",
|
||||
"label": "Logo"
|
||||
},
|
||||
{
|
||||
"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",
|
||||
"read_only": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "event",
|
||||
"fieldtype": "Link",
|
||||
"label": "Event",
|
||||
"options": "Event Details",
|
||||
"read_only": 1
|
||||
}
|
||||
],
|
||||
"index_web_pages_for_search": 1,
|
||||
"links": [],
|
||||
"modified": "2021-08-20 15:22:38.616972",
|
||||
"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",
|
||||
"track_changes": 1
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
# 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
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2021, FOSS United and Contributors
|
||||
# See license.txt
|
||||
|
||||
# import frappe
|
||||
import unittest
|
||||
|
||||
class TestExhibitor(unittest.TestCase):
|
||||
pass
|
||||
0
community/event_management/doctype/host/__init__.py
Normal file
0
community/event_management/doctype/host/__init__.py
Normal file
8
community/event_management/doctype/host/host.js
Normal file
8
community/event_management/doctype/host/host.js
Normal file
@@ -0,0 +1,8 @@
|
||||
// Copyright (c) 2021, FOSS United and contributors
|
||||
// For license information, please see license.txt
|
||||
|
||||
frappe.ui.form.on('Host', {
|
||||
// refresh: function(frm) {
|
||||
|
||||
// }
|
||||
});
|
||||
65
community/event_management/doctype/host/host.json
Normal file
65
community/event_management/doctype/host/host.json
Normal file
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"actions": [],
|
||||
"autoname": "field:full_name",
|
||||
"creation": "2021-08-11 10:51:47.234690",
|
||||
"doctype": "DocType",
|
||||
"editable_grid": 1,
|
||||
"engine": "InnoDB",
|
||||
"field_order": [
|
||||
"event",
|
||||
"full_name",
|
||||
"user_image",
|
||||
"title"
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"fieldname": "event",
|
||||
"fieldtype": "Link",
|
||||
"label": "Event",
|
||||
"options": "Event Details"
|
||||
},
|
||||
{
|
||||
"fieldname": "title",
|
||||
"fieldtype": "Data",
|
||||
"in_list_view": 1,
|
||||
"label": "Title"
|
||||
},
|
||||
{
|
||||
"fieldname": "full_name",
|
||||
"fieldtype": "Data",
|
||||
"in_list_view": 1,
|
||||
"label": "Full Name",
|
||||
"reqd": 1,
|
||||
"unique": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "user_image",
|
||||
"fieldtype": "Attach Image",
|
||||
"label": "Image"
|
||||
}
|
||||
],
|
||||
"index_web_pages_for_search": 1,
|
||||
"links": [],
|
||||
"modified": "2021-08-11 23:54:17.790263",
|
||||
"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",
|
||||
"track_changes": 1
|
||||
}
|
||||
8
community/event_management/doctype/host/host.py
Normal file
8
community/event_management/doctype/host/host.py
Normal file
@@ -0,0 +1,8 @@
|
||||
# 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
|
||||
8
community/event_management/doctype/host/test_host.py
Normal file
8
community/event_management/doctype/host/test_host.py
Normal file
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2021, FOSS United and Contributors
|
||||
# See license.txt
|
||||
|
||||
# import frappe
|
||||
import unittest
|
||||
|
||||
class TestHost(unittest.TestCase):
|
||||
pass
|
||||
14
community/event_management/doctype/schedule/schedule.js
Normal file
14
community/event_management/doctype/schedule/schedule.js
Normal file
@@ -0,0 +1,14 @@
|
||||
// Copyright (c) 2021, FOSS United and contributors
|
||||
// For license information, please see license.txt
|
||||
|
||||
frappe.ui.form.on('Schedule', {
|
||||
onload: function (frm) {
|
||||
frm.set_query('talk', function (doc) {
|
||||
return {
|
||||
filters: {
|
||||
"status": "Approved",
|
||||
}
|
||||
};
|
||||
});
|
||||
}
|
||||
});
|
||||
61
community/event_management/doctype/schedule/schedule.json
Normal file
61
community/event_management/doctype/schedule/schedule.json
Normal file
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"actions": [],
|
||||
"autoname": "Schedule-.####",
|
||||
"creation": "2021-08-11 10:50:23.522178",
|
||||
"doctype": "DocType",
|
||||
"editable_grid": 1,
|
||||
"engine": "InnoDB",
|
||||
"field_order": [
|
||||
"event",
|
||||
"talk",
|
||||
"slot"
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"fieldname": "slot",
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "Slot",
|
||||
"options": "Slot",
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "event",
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "Event",
|
||||
"options": "Event Details",
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "talk",
|
||||
"fieldtype": "Link",
|
||||
"label": "Talk",
|
||||
"options": "Talk"
|
||||
}
|
||||
],
|
||||
"index_web_pages_for_search": 1,
|
||||
"links": [],
|
||||
"modified": "2021-08-19 15:23:18.137946",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Event Management",
|
||||
"name": "Schedule",
|
||||
"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
|
||||
}
|
||||
18
community/event_management/doctype/schedule/schedule.py
Normal file
18
community/event_management/doctype/schedule/schedule.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Copyright (c) 2021, FOSS United and contributors
|
||||
# For license information, please see license.txt
|
||||
|
||||
import frappe
|
||||
from frappe.model.document import Document
|
||||
|
||||
class Schedule(Document):
|
||||
def before_save(self):
|
||||
exists = frappe.db.exists(
|
||||
"Schedule",
|
||||
{
|
||||
"Event": self.event,
|
||||
"slot": self.slot
|
||||
},
|
||||
)
|
||||
|
||||
if exists:
|
||||
frappe.throw("Slot already Assigned")
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2021, FOSS United and Contributors
|
||||
# See license.txt
|
||||
|
||||
# import frappe
|
||||
import unittest
|
||||
|
||||
class TestSchedule(unittest.TestCase):
|
||||
pass
|
||||
0
community/event_management/doctype/slot/__init__.py
Normal file
0
community/event_management/doctype/slot/__init__.py
Normal file
8
community/event_management/doctype/slot/slot.js
Normal file
8
community/event_management/doctype/slot/slot.js
Normal file
@@ -0,0 +1,8 @@
|
||||
// Copyright (c) 2021, FOSS United and contributors
|
||||
// For license information, please see license.txt
|
||||
|
||||
frappe.ui.form.on('Slot', {
|
||||
// refresh: function(frm) {
|
||||
|
||||
// }
|
||||
});
|
||||
69
community/event_management/doctype/slot/slot.json
Normal file
69
community/event_management/doctype/slot/slot.json
Normal file
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"actions": [],
|
||||
"autoname": "format:SLOT-{date}-{start_time}",
|
||||
"creation": "2021-08-11 11:19:50.276917",
|
||||
"doctype": "DocType",
|
||||
"editable_grid": 1,
|
||||
"engine": "InnoDB",
|
||||
"field_order": [
|
||||
"event",
|
||||
"date",
|
||||
"start_time",
|
||||
"end_time"
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"fieldname": "event",
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "Event",
|
||||
"options": "Event Details",
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "date",
|
||||
"fieldtype": "Date",
|
||||
"in_list_view": 1,
|
||||
"label": "Date",
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "start_time",
|
||||
"fieldtype": "Time",
|
||||
"in_list_view": 1,
|
||||
"label": "Start Time",
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "end_time",
|
||||
"fieldtype": "Time",
|
||||
"in_list_view": 1,
|
||||
"label": "End Time",
|
||||
"reqd": 1
|
||||
}
|
||||
],
|
||||
"index_web_pages_for_search": 1,
|
||||
"links": [],
|
||||
"modified": "2021-08-18 23:51:47.850435",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Event Management",
|
||||
"name": "Slot",
|
||||
"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
|
||||
}
|
||||
14
community/event_management/doctype/slot/slot.py
Normal file
14
community/event_management/doctype/slot/slot.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# Copyright (c) 2021, FOSS United and contributors
|
||||
# For license information, please see license.txt
|
||||
|
||||
import frappe
|
||||
from frappe.model.document import Document
|
||||
from frappe.utils import getdate
|
||||
|
||||
class Slot(Document):
|
||||
|
||||
def before_save(self):
|
||||
event = frappe.get_doc("Event Details", self.event)
|
||||
if getdate(self.date) < event.start_date or getdate(self.date) > event.end_date:
|
||||
frappe.throw("Slot should be in Event's span")
|
||||
|
||||
8
community/event_management/doctype/slot/test_slot.py
Normal file
8
community/event_management/doctype/slot/test_slot.py
Normal file
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2021, FOSS United and Contributors
|
||||
# See license.txt
|
||||
|
||||
# import frappe
|
||||
import unittest
|
||||
|
||||
class TestSlot(unittest.TestCase):
|
||||
pass
|
||||
8
community/event_management/doctype/speaker/speaker.js
Normal file
8
community/event_management/doctype/speaker/speaker.js
Normal file
@@ -0,0 +1,8 @@
|
||||
// Copyright (c) 2021, FOSS United and contributors
|
||||
// For license information, please see license.txt
|
||||
|
||||
frappe.ui.form.on('Speaker', {
|
||||
// refresh: function(frm) {
|
||||
|
||||
// }
|
||||
});
|
||||
111
community/event_management/doctype/speaker/speaker.json
Normal file
111
community/event_management/doctype/speaker/speaker.json
Normal file
@@ -0,0 +1,111 @@
|
||||
{
|
||||
"actions": [],
|
||||
"autoname": "format:Speaker-{full_name}-{####}",
|
||||
"creation": "2021-08-11 10:37:32.124651",
|
||||
"doctype": "DocType",
|
||||
"editable_grid": 1,
|
||||
"engine": "InnoDB",
|
||||
"field_order": [
|
||||
"speaker_info_section",
|
||||
"event",
|
||||
"user",
|
||||
"full_name",
|
||||
"phone_number",
|
||||
"job_title",
|
||||
"company",
|
||||
"column_break_8",
|
||||
"picture",
|
||||
"bio"
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"fieldname": "speaker_info_section",
|
||||
"fieldtype": "Section Break",
|
||||
"label": "Speaker Info"
|
||||
},
|
||||
{
|
||||
"fieldname": "user",
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "User",
|
||||
"options": "User",
|
||||
"read_only": 1
|
||||
},
|
||||
{
|
||||
"fetch_from": "user.full_name",
|
||||
"fieldname": "full_name",
|
||||
"fieldtype": "Data",
|
||||
"in_list_view": 1,
|
||||
"label": "Full Name",
|
||||
"read_only": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "phone_number",
|
||||
"fieldtype": "Data",
|
||||
"label": "Phone Number",
|
||||
"reqd": 1,
|
||||
"unique": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "job_title",
|
||||
"fieldtype": "Data",
|
||||
"in_list_view": 1,
|
||||
"label": "Job Title",
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "company",
|
||||
"fieldtype": "Data",
|
||||
"in_list_view": 1,
|
||||
"label": "Company",
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "column_break_8",
|
||||
"fieldtype": "Column Break"
|
||||
},
|
||||
{
|
||||
"fetch_from": "user.banner_image",
|
||||
"fieldname": "picture",
|
||||
"fieldtype": "Attach Image",
|
||||
"label": "Profile Image",
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "bio",
|
||||
"fieldtype": "Text",
|
||||
"label": "Bio"
|
||||
},
|
||||
{
|
||||
"fieldname": "event",
|
||||
"fieldtype": "Link",
|
||||
"label": "Event",
|
||||
"options": "Event Details",
|
||||
"read_only": 1
|
||||
}
|
||||
],
|
||||
"index_web_pages_for_search": 1,
|
||||
"links": [],
|
||||
"modified": "2021-08-20 12:06:54.852070",
|
||||
"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",
|
||||
"track_changes": 1
|
||||
}
|
||||
8
community/event_management/doctype/speaker/speaker.py
Normal file
8
community/event_management/doctype/speaker/speaker.py
Normal file
@@ -0,0 +1,8 @@
|
||||
# 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
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2021, FOSS United and Contributors
|
||||
# See license.txt
|
||||
|
||||
# import frappe
|
||||
import unittest
|
||||
|
||||
class TestSpeaker(unittest.TestCase):
|
||||
pass
|
||||
0
community/event_management/doctype/talk/__init__.py
Normal file
0
community/event_management/doctype/talk/__init__.py
Normal file
8
community/event_management/doctype/talk/talk.js
Normal file
8
community/event_management/doctype/talk/talk.js
Normal file
@@ -0,0 +1,8 @@
|
||||
// Copyright (c) 2021, FOSS United and contributors
|
||||
// For license information, please see license.txt
|
||||
|
||||
frappe.ui.form.on('Talk', {
|
||||
// refresh: function(frm) {
|
||||
|
||||
// }
|
||||
});
|
||||
108
community/event_management/doctype/talk/talk.json
Normal file
108
community/event_management/doctype/talk/talk.json
Normal file
@@ -0,0 +1,108 @@
|
||||
{
|
||||
"actions": [],
|
||||
"autoname": "format:TALK-BY-{speaker}-{####}",
|
||||
"creation": "2021-08-18 08:42:58.711932",
|
||||
"doctype": "DocType",
|
||||
"editable_grid": 1,
|
||||
"engine": "InnoDB",
|
||||
"field_order": [
|
||||
"event",
|
||||
"company",
|
||||
"topic",
|
||||
"title",
|
||||
"about",
|
||||
"attachment",
|
||||
"url",
|
||||
"thumbnail",
|
||||
"name_of_the_speaker",
|
||||
"status",
|
||||
"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": "Data",
|
||||
"label": "Preview Image (Link)"
|
||||
},
|
||||
{
|
||||
"fieldname": "event",
|
||||
"fieldtype": "Link",
|
||||
"label": "Event",
|
||||
"options": "Event Details"
|
||||
},
|
||||
{
|
||||
"fieldname": "topic",
|
||||
"fieldtype": "Data",
|
||||
"label": "Category"
|
||||
},
|
||||
{
|
||||
"fieldname": "about",
|
||||
"fieldtype": "Text",
|
||||
"label": "About the Talk"
|
||||
},
|
||||
{
|
||||
"fieldname": "attachment",
|
||||
"fieldtype": "Attach",
|
||||
"label": "Attachment"
|
||||
},
|
||||
{
|
||||
"fieldname": "speaker",
|
||||
"fieldtype": "Link",
|
||||
"hidden": 1,
|
||||
"label": "Speaker",
|
||||
"options": "Speaker"
|
||||
},
|
||||
{
|
||||
"default": "Applied",
|
||||
"fieldname": "status",
|
||||
"fieldtype": "Select",
|
||||
"in_list_view": 1,
|
||||
"label": "Status",
|
||||
"options": "Applied\nPending\nApproved\nRejected\nPrevious Talk"
|
||||
},
|
||||
{
|
||||
"fieldname": "company",
|
||||
"fieldtype": "Data",
|
||||
"label": "Company"
|
||||
}
|
||||
],
|
||||
"index_web_pages_for_search": 1,
|
||||
"links": [],
|
||||
"modified": "2021-08-20 12:08:11.304322",
|
||||
"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",
|
||||
"track_changes": 1
|
||||
}
|
||||
27
community/event_management/doctype/talk/talk.py
Normal file
27
community/event_management/doctype/talk/talk.py
Normal file
@@ -0,0 +1,27 @@
|
||||
# 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):
|
||||
exists = frappe.db.exists({
|
||||
'doctype': 'Speaker',
|
||||
'user': frappe.session.user
|
||||
})
|
||||
speaker = None
|
||||
|
||||
if(exists):
|
||||
speaker = frappe.db.get_value(
|
||||
'Speaker', {'user': frappe.session.user})
|
||||
|
||||
elif(not exists):
|
||||
speaker = frappe.get_doc(dict(
|
||||
event=self.event,
|
||||
user=frappe.session.user,
|
||||
company=self.company,
|
||||
)).insert(ignore_permissions=True)
|
||||
|
||||
self.speaker = speaker
|
||||
8
community/event_management/doctype/talk/test_talk.py
Normal file
8
community/event_management/doctype/talk/test_talk.py
Normal file
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2021, FOSS United and Contributors
|
||||
# See license.txt
|
||||
|
||||
# import frappe
|
||||
import unittest
|
||||
|
||||
class TestTalk(unittest.TestCase):
|
||||
pass
|
||||
0
community/event_management/web_form/__init__.py
Normal file
0
community/event_management/web_form/__init__.py
Normal file
@@ -0,0 +1,7 @@
|
||||
frappe.ready(function () {
|
||||
frappe.web_form.after_save = () => {
|
||||
setTimeout(function () {
|
||||
window.location.href = '/event/conference2021/about';
|
||||
}, 2000);
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,124 @@
|
||||
{
|
||||
"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": "Get Ticket",
|
||||
"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 Registration",
|
||||
"docstatus": 0,
|
||||
"doctype": "Web Form",
|
||||
"idx": 0,
|
||||
"is_standard": 1,
|
||||
"login_required": 1,
|
||||
"max_attachment_size": 0,
|
||||
"modified": "2021-08-19 22:03:24.454348",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Event Management",
|
||||
"name": "attendee-registration",
|
||||
"owner": "Administrator",
|
||||
"payment_button_label": "Buy Now",
|
||||
"published": 1,
|
||||
"route": "event/conference2021/attendee-registration",
|
||||
"route_to_success_link": 1,
|
||||
"show_attachments": 0,
|
||||
"show_in_grid": 0,
|
||||
"show_sidebar": 0,
|
||||
"sidebar_items": [],
|
||||
"success_url": "/event/conference2021/about",
|
||||
"title": "Attendee Registration",
|
||||
"web_form_fields": [
|
||||
{
|
||||
"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": 0,
|
||||
"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": "email",
|
||||
"fieldtype": "Data",
|
||||
"hidden": 0,
|
||||
"label": "Email",
|
||||
"max_length": 0,
|
||||
"max_value": 0,
|
||||
"read_only": 0,
|
||||
"reqd": 0,
|
||||
"show_in_filter": 0
|
||||
},
|
||||
{
|
||||
"allow_read_on_all_link_options": 0,
|
||||
"fieldname": "phone_number",
|
||||
"fieldtype": "Data",
|
||||
"hidden": 0,
|
||||
"label": "Phone Number",
|
||||
"max_length": 0,
|
||||
"max_value": 0,
|
||||
"read_only": 0,
|
||||
"reqd": 0,
|
||||
"show_in_filter": 0
|
||||
},
|
||||
{
|
||||
"allow_read_on_all_link_options": 0,
|
||||
"fieldname": "occupation",
|
||||
"fieldtype": "Data",
|
||||
"hidden": 0,
|
||||
"label": "Occupation",
|
||||
"max_length": 0,
|
||||
"max_value": 0,
|
||||
"read_only": 0,
|
||||
"reqd": 1,
|
||||
"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
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import frappe
|
||||
|
||||
def get_context(context):
|
||||
# do your magic here
|
||||
pass
|
||||
@@ -0,0 +1,7 @@
|
||||
frappe.ready(function () {
|
||||
frappe.web_form.after_save = () => {
|
||||
setTimeout(function () {
|
||||
window.location.href = '/event/conference2021/about';
|
||||
}, 2000);
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,100 @@
|
||||
{
|
||||
"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-20 15:25:57.712882",
|
||||
"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": "/exhibitor-registration",
|
||||
"title": "Exhibitor Registration",
|
||||
"web_form_fields": [
|
||||
{
|
||||
"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": 0,
|
||||
"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": 0,
|
||||
"show_in_filter": 0
|
||||
},
|
||||
{
|
||||
"allow_read_on_all_link_options": 0,
|
||||
"fieldname": "logo",
|
||||
"fieldtype": "Attach Image",
|
||||
"hidden": 0,
|
||||
"label": "Logo",
|
||||
"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
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import frappe
|
||||
|
||||
def get_context(context):
|
||||
# do your magic here
|
||||
pass
|
||||
@@ -0,0 +1,7 @@
|
||||
frappe.ready(function () {
|
||||
frappe.web_form.after_save = () => {
|
||||
setTimeout(function () {
|
||||
window.location.href = '/event/conference2021/about';
|
||||
}, 2000);
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,114 @@
|
||||
{
|
||||
"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-20 13:33:49.508780",
|
||||
"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": "Purpose a Talk",
|
||||
"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": 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": 0,
|
||||
"show_in_filter": 0
|
||||
},
|
||||
{
|
||||
"allow_read_on_all_link_options": 0,
|
||||
"fieldname": "topic",
|
||||
"fieldtype": "Data",
|
||||
"hidden": 0,
|
||||
"label": "Category",
|
||||
"max_length": 0,
|
||||
"max_value": 0,
|
||||
"read_only": 0,
|
||||
"reqd": 1,
|
||||
"show_in_filter": 0
|
||||
},
|
||||
{
|
||||
"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": "about",
|
||||
"fieldtype": "Data",
|
||||
"hidden": 0,
|
||||
"label": "About",
|
||||
"max_length": 0,
|
||||
"max_value": 0,
|
||||
"read_only": 0,
|
||||
"reqd": 1,
|
||||
"show_in_filter": 0
|
||||
},
|
||||
{
|
||||
"allow_read_on_all_link_options": 0,
|
||||
"fieldname": "attachment",
|
||||
"fieldtype": "Attach",
|
||||
"hidden": 0,
|
||||
"label": "Attachment",
|
||||
"max_length": 0,
|
||||
"max_value": 0,
|
||||
"read_only": 0,
|
||||
"reqd": 0,
|
||||
"show_in_filter": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import frappe
|
||||
|
||||
def get_context(context):
|
||||
# do your magic here
|
||||
pass
|
||||
@@ -0,0 +1,7 @@
|
||||
frappe.ready(function () {
|
||||
frappe.web_form.after_save = () => {
|
||||
setTimeout(function () {
|
||||
window.location.href = '/event/conference2021/propose-talk';
|
||||
}, 2000);
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,137 @@
|
||||
{
|
||||
"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 11:24:52.350955",
|
||||
"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": 1,
|
||||
"fieldname": "user",
|
||||
"fieldtype": "Link",
|
||||
"hidden": 0,
|
||||
"label": "User",
|
||||
"max_length": 0,
|
||||
"max_value": 0,
|
||||
"options": "User",
|
||||
"read_only": 0,
|
||||
"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": "phone_number",
|
||||
"fieldtype": "Data",
|
||||
"hidden": 0,
|
||||
"label": "Phone Number",
|
||||
"max_length": 0,
|
||||
"max_value": 0,
|
||||
"read_only": 0,
|
||||
"reqd": 1,
|
||||
"show_in_filter": 0
|
||||
},
|
||||
{
|
||||
"allow_read_on_all_link_options": 0,
|
||||
"fieldname": "job_title",
|
||||
"fieldtype": "Data",
|
||||
"hidden": 0,
|
||||
"label": "Job Title",
|
||||
"max_length": 0,
|
||||
"max_value": 0,
|
||||
"read_only": 0,
|
||||
"reqd": 1,
|
||||
"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
|
||||
},
|
||||
{
|
||||
"allow_read_on_all_link_options": 0,
|
||||
"fieldname": "picture",
|
||||
"fieldtype": "Attach Image",
|
||||
"hidden": 0,
|
||||
"label": "Profile Image",
|
||||
"max_length": 0,
|
||||
"max_value": 0,
|
||||
"read_only": 0,
|
||||
"reqd": 1,
|
||||
"show_in_filter": 0
|
||||
},
|
||||
{
|
||||
"allow_read_on_all_link_options": 0,
|
||||
"fieldname": "bio",
|
||||
"fieldtype": "Text",
|
||||
"hidden": 0,
|
||||
"label": "Bio",
|
||||
"max_length": 0,
|
||||
"max_value": 0,
|
||||
"read_only": 0,
|
||||
"reqd": 0,
|
||||
"show_in_filter": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import frappe
|
||||
|
||||
def get_context(context):
|
||||
# do your magic here
|
||||
pass
|
||||
0
community/event_management/web_template/__init__.py
Normal file
0
community/event_management/web_template/__init__.py
Normal file
@@ -0,0 +1,24 @@
|
||||
<div class="section-with-cards">
|
||||
<h1 class="course-home-headings">{{title}}</h1>
|
||||
{%- if subtitle -%}
|
||||
<p class="section-description">{{ subtitle }}</p>
|
||||
{%- endif -%}
|
||||
<div class="speaker-cards-parent">
|
||||
<div class="speaker-cards-parent">
|
||||
{% for exhibitor in exhibitor_details %}
|
||||
{% set exhibitor_doc = frappe.get_doc("Exhibitor", exhibitor.exhibitor) %}
|
||||
<a href="/event/conference2021/{{exhibitor_doc.company}}">
|
||||
<div class="common-card-style talk-card exhibitor-card">
|
||||
<span>
|
||||
<img class="standard-image company-logo" src="{{exhibitor_doc.logo}}" />
|
||||
</span>
|
||||
<div class="small-title company-name">{{exhibitor_doc.company}}</div>
|
||||
</div>
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="event-btn"><a href="/exhibitor-registration/user={{ frappe.session.user }}&event={{ event_ }}" class="btn btn-primary ">Become an Exhibitor</a></div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"__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 Registration",
|
||||
"reqd": 0
|
||||
}
|
||||
],
|
||||
"idx": 1,
|
||||
"modified": "2021-08-20 15:23:13.419285",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Event Management",
|
||||
"name": "Exhibitor Section",
|
||||
"owner": "Administrator",
|
||||
"standard": 1,
|
||||
"template": "",
|
||||
"type": "Section"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
<div class="section-with-cards">
|
||||
<h1 class="course-home-headings">{{title}}</h1>
|
||||
</div>
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"__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"
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
{% set schedule_docs = frappe.get_all("Schedule", fields =["talk", "slot"], filters={
|
||||
'event': event
|
||||
},) %}
|
||||
{% set slot_data = {} %}
|
||||
|
||||
{% for schedule in schedule_docs %}
|
||||
{% set talk = frappe.get_doc("Talk", schedule.talk) %}
|
||||
{% set speaker = frappe.get_doc("Speaker", talk.speaker) %}
|
||||
{% set slot = frappe.get_doc("Slot", schedule.slot) %}
|
||||
{% set slot_data = slot_data.setdefault(slot.date, []).append({
|
||||
"slot": slot.name|string,
|
||||
"start_time": slot.start_time,
|
||||
"end_time": slot.end_time,
|
||||
"picture": speaker.picture,
|
||||
"about": talk.about,
|
||||
"title": talk.title,
|
||||
"full_name": speaker.full_name,
|
||||
}) %}
|
||||
{% endfor %}
|
||||
|
||||
<div class="courses-header">{{title}}</div>
|
||||
{%- if subtitle -%}
|
||||
<p class="section-description">{{ subtitle }}</p>
|
||||
{%- endif -%}
|
||||
<div class="common-page-style">
|
||||
<div class="container">
|
||||
<div class="course-content-parent">
|
||||
<div class="course-details-outline">
|
||||
<div class="course-home-outline">
|
||||
<div class="coure-outline">
|
||||
<div>
|
||||
{% for day in slot_data %}
|
||||
<div class="small-title chapter-title" data-target="#apps-sites-and-bench"
|
||||
data-toggle="collapse" aria-expanded="false">
|
||||
<img class="chapter-icon" src="/assets/community/icons/chevron-right.svg" />
|
||||
{{frappe.utils.format_date(day, "dd MMMM, YYYY")}}
|
||||
</div>
|
||||
<div class="card-divider"></div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
{% for day in slot_data %}
|
||||
{% set outer_loop = loop %}
|
||||
<div class="course-details-outline">
|
||||
<div class="coure-outline">
|
||||
<div class="course-home-headings">{{frappe.utils.format_date(day, "dd MMMM, YYYY")}}</div>
|
||||
{% for slot in slot_data[day] %}
|
||||
<div class="schedule-container">
|
||||
<div class="schedule-inner-container">
|
||||
<span class="info-speaker-avatar">
|
||||
<span class="info-avatar avatar avatar-small">
|
||||
<img class="avatar-frame standard-image" src="{{slot.picture}}" />
|
||||
</span>
|
||||
<h6 class="info-speaker">{{slot.full_name}}</h6>
|
||||
</span>
|
||||
<div class="schedule-title">{{slot.title}}</div>
|
||||
<div class="schedule-slot">
|
||||
{{ frappe.format(slot.start_time, {'fieldtype': 'Time'})}} - {{
|
||||
frappe.format(slot.end_time, {'fieldtype': 'Time'}) }}
|
||||
</div>
|
||||
<div class="chapter-title small-title" data-toggle="collapse"
|
||||
data-target="#slot-{{loop.index}}-{{outer_loop.index}}" aria-expanded="false"
|
||||
aria-controls="collapseExample">
|
||||
<img class="chapter-icon" src="/assets/community/icons/chevron-right.svg">
|
||||
</div>
|
||||
</div>
|
||||
<div class="collapse" id="slot-{{loop.index}}-{{outer_loop.index}}">
|
||||
<p class="schedule-info">{{slot.about}}</p>
|
||||
</div>
|
||||
<div class="card-divider"></div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"__unsaved": 1,
|
||||
"creation": "2021-08-17 16:43:49.506200",
|
||||
"docstatus": 0,
|
||||
"doctype": "Web Template",
|
||||
"fields": [
|
||||
{
|
||||
"fieldname": "title",
|
||||
"fieldtype": "Data",
|
||||
"label": "Title",
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "subtitle",
|
||||
"fieldtype": "Data",
|
||||
"label": "Subtitle",
|
||||
"reqd": 0
|
||||
},
|
||||
{
|
||||
"__unsaved": 1,
|
||||
"fieldname": "event",
|
||||
"fieldtype": "Link",
|
||||
"label": "Event",
|
||||
"options": "Event Details",
|
||||
"reqd": 1
|
||||
}
|
||||
],
|
||||
"idx": 0,
|
||||
"modified": "2021-08-18 10:13:49.300196",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Event Management",
|
||||
"name": "Schedule Section",
|
||||
"owner": "Administrator",
|
||||
"standard": 1,
|
||||
"template": "",
|
||||
"type": "Section"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<div class="section-with-cards">
|
||||
<h1 class="course-home-headings">{{section_title}}</h1>
|
||||
{%- if subtitle -%}
|
||||
<p class="section-description">{{ subtitle }}</p>
|
||||
{%- endif -%}
|
||||
<div class="speaker-cards-parent">
|
||||
{% for speaker in speaker_details %}
|
||||
{% set speaker_doc = frappe.get_doc("Speaker", speaker.speaker) %}
|
||||
<div class="common-card-style member-card talk-card">
|
||||
<span class="avatar avatar-large">
|
||||
<img class="avatar-frame" src="{{speaker_doc.picture}}" />
|
||||
</span>
|
||||
<div class="small-title talk-title mt-5">
|
||||
{{ speaker_doc.full_name }}
|
||||
</div>
|
||||
<div class="small-title mt-5 bb">{{speaker_doc.job_title}}</div>
|
||||
<div class="small-title company-name">{{speaker_doc.company}}</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
{%- if cta_link -%}
|
||||
<div class="event-btn"><a href='/speaker-registration?user={{ frappe.session.user }}&event={{ event_ }}' class="btn btn-primary ">Propose a Talk</a></div>
|
||||
{%- endif -%}
|
||||
</div>
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"__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"
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
<div class="section-with-cards">
|
||||
<div class="course-home-headings">{{title}}</div>
|
||||
{%- if subtitle -%}
|
||||
<p class="section-description">{{ subtitle }}</p>
|
||||
{%- endif -%}
|
||||
<div class="speaker-cards-parent">
|
||||
{% for talk in talk_details %}
|
||||
{% set talk_doc = frappe.get_doc('Talk', talk.talk, filters={
|
||||
'event': event
|
||||
}) %}
|
||||
<div class="common-card-style talk-card">
|
||||
<div class="course-image" style="background-image: url({{talk_doc.thumbnail}})">
|
||||
<div class="course-tags"></div>
|
||||
</div>
|
||||
<div class="course-card-content">
|
||||
<div class="course-card-meta muted-text">
|
||||
<span> {{talk_doc.topic}} </span>
|
||||
</div>
|
||||
<div class="course-card-title">{{talk_doc.title}}</div>
|
||||
<div class="card-divider"></div>
|
||||
<div class="course-card-meta-2">
|
||||
<a class="button-links" href="">
|
||||
<span class="avatar avatar-small" title={{talk_doc.name_of_the_speaker}}>
|
||||
<img class="avatar-frame standard-image" style="object-fit: cover" src="{{talk_doc.thumbnail}}"
|
||||
title={{talk_doc.name_of_the_speaker}} />
|
||||
</span>
|
||||
</a>
|
||||
<span class="course-instructor"> {{talk_doc.name_of_the_speaker}} </span>
|
||||
<span class="small-title company-name"></span>
|
||||
</div>
|
||||
<div class="view-talk-link">
|
||||
Vew Talk
|
||||
<img class="ml-3" src="/assets/community/icons/black-arrow.svg" />
|
||||
</div>
|
||||
<a class="stretched-link" href="{{talk_doc.url}}"></a>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"__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"
|
||||
}
|
||||
@@ -130,10 +130,10 @@ fixtures = ["Custom Field"]
|
||||
# auto_cancel_exempted_doctypes = ["Auto Repeat"]
|
||||
|
||||
# Add all simple route rules here
|
||||
website_route_rules = [
|
||||
primary_rules = [
|
||||
{"from_route": "/sketches/<sketch>", "to_route": "sketches/sketch"},
|
||||
{"from_route": "/courses/<course>", "to_route": "courses/course"},
|
||||
{"from_route": "/courses/<course>/<certificate>", "to_route": "courses/certificate"},
|
||||
{"from_route": "/courses/<course>/<topic>", "to_route": "courses/topic"},
|
||||
{"from_route": "/hackathons/<hackathon>", "to_route": "hackathons/hackathon"},
|
||||
{"from_route": "/hackathons/<hackathon>/<project>", "to_route": "hackathons/project"},
|
||||
{"from_route": "/add-a-new-batch", "to_route": "add-a-new-batch"},
|
||||
@@ -147,9 +147,46 @@ website_route_rules = [
|
||||
{"from_route": "/courses/<course>/progress", "to_route": "batch/progress"},
|
||||
{"from_route": "/courses/<course>/join", "to_route": "batch/join"},
|
||||
{"from_route": "/discussions/<discussion>", "to_route": "discussions/discussion"},
|
||||
{"from_route": "/user/<string(minlength=4):username>", "to_route": "profiles/profile"}
|
||||
]
|
||||
|
||||
# Any frappe default URL is blocked by profile-rules, add it here to unblock it
|
||||
whitelist = [
|
||||
"/home",
|
||||
"/login",
|
||||
"/update-password",
|
||||
"/update-profile",
|
||||
"/third-party-apps",
|
||||
"/website_script.js",
|
||||
"/courses",
|
||||
"/sketches",
|
||||
"/admin",
|
||||
"/socket.io",
|
||||
"/hackathons",
|
||||
"/dashboard",
|
||||
"/join-request",
|
||||
"/add-a-new-batch",
|
||||
"/new-sign-up",
|
||||
"/message",
|
||||
"/about",
|
||||
"/edit-profile",
|
||||
"/attendee-registration",
|
||||
"/speaker-registration",
|
||||
"/event",
|
||||
"/hello",
|
||||
"/exhibitor-registration",
|
||||
"/discussions",
|
||||
"/propose-talk",
|
||||
|
||||
]
|
||||
whitelist_rules = [{"from_route": p, "to_route": p[1:]} for p in whitelist]
|
||||
|
||||
# regex rule to match all profiles
|
||||
profile_rules = [
|
||||
{"from_route": "/<string(minlength=4):username>", "to_route": "profiles/profile"},
|
||||
]
|
||||
|
||||
website_route_rules = primary_rules + whitelist_rules + profile_rules
|
||||
|
||||
website_redirects = [
|
||||
{"source": "/update-profile", "target": "/edit-profile"},
|
||||
]
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
Community
|
||||
Hackathon
|
||||
LMS
|
||||
Conference
|
||||
Conference
|
||||
Event Management
|
||||
@@ -279,6 +279,16 @@ input[type=checkbox] {
|
||||
line-height: 135%;
|
||||
color: var(--text-color);
|
||||
}
|
||||
.view-talk-link {
|
||||
background: var(--button-background);
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
padding: 8px 22px 8px;
|
||||
text-align: center;
|
||||
line-height: 135%;
|
||||
color: var(--text-color);
|
||||
|
||||
}
|
||||
|
||||
.cards-parent {
|
||||
display: grid;
|
||||
@@ -749,6 +759,10 @@ input[type=checkbox] {
|
||||
padding: 20px 0px 16px;
|
||||
}
|
||||
|
||||
.member-card .talk-title{
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.member-card-large {
|
||||
width: 256px;
|
||||
height: 188px;
|
||||
@@ -774,6 +788,7 @@ input[type=checkbox] {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
.member-card-xl .member-card-title {
|
||||
font-weight: bold;
|
||||
}
|
||||
@@ -828,6 +843,11 @@ input[type=checkbox] {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.avatar-medium-schedule{
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
}
|
||||
|
||||
.avatar-large {
|
||||
width: 88px;
|
||||
height: 88px;
|
||||
@@ -1263,6 +1283,111 @@ pre {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.talk-card {
|
||||
width: 16rem;
|
||||
}
|
||||
|
||||
.talk-title {
|
||||
border-bottom: 1px solid #cecdcd;
|
||||
}
|
||||
|
||||
.mt-5 {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.company-name {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
a.talk-link {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.talk-card {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.speaker-cards-parent {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||
-moz-column-gap: 32px;
|
||||
column-gap: 14px;
|
||||
row-gap: 32px;
|
||||
}
|
||||
|
||||
.avatar img {
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.section-with-cards .course-home-headings {
|
||||
margin: 0px 0px 1rem;
|
||||
}
|
||||
|
||||
.schedule-container {
|
||||
padding-bottom: 16px;
|
||||
}
|
||||
|
||||
.schedule-inner-container {
|
||||
display: grid;
|
||||
grid-template-columns: 1.2fr 2fr 1fr 0.2fr;
|
||||
padding: 0 20px 0;
|
||||
}
|
||||
|
||||
.schedule-slot {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
.schedule-title {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.schedule-info{
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
|
||||
.drop-down-icon {
|
||||
padding : 5px 0 0 5px;
|
||||
}
|
||||
|
||||
.event-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
.exhibitor-card {
|
||||
text-align: center;
|
||||
padding-bottom: 30px;
|
||||
}
|
||||
|
||||
.exhibitor-card .company-name{
|
||||
font-size: 25px;
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.exhibitor-card .company-logo{
|
||||
height: 158px;
|
||||
width: 252px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.info-speaker-avatar {
|
||||
display: flex;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.info-speaker {
|
||||
margin-left: 1rem;
|
||||
padding-bottom: 0;
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.info-avatar img{
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.thread-card {
|
||||
flex-direction: column;
|
||||
padding: 1.5rem;
|
||||
|
||||
3
community/public/icons/down-arrow-white.svg
Normal file
3
community/public/icons/down-arrow-white.svg
Normal file
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 293 B |
3
community/public/icons/down-arrow1.svg
Normal file
3
community/public/icons/down-arrow1.svg
Normal file
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M6 9l6 6 6-6"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 206 B |
3
community/public/icons/up-arrow-white.svg
Normal file
3
community/public/icons/up-arrow-white.svg
Normal file
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path fill-rule="evenodd" d="M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 296 B |
@@ -10,6 +10,7 @@
|
||||
<link href="/static/style.css" rel="stylesheet">
|
||||
|
||||
<title>{% block title %}FOSS United{% endblock %}</title>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar navbar-light navbar-expand-lg">
|
||||
|
||||
Reference in New Issue
Block a user