fix: remove speaker-registration
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
// Copyright (c) 2021, FOSS United and contributors
|
// Copyright (c) 2021, FOSS United and contributors
|
||||||
// For license information, please see license.txt
|
// For license information, please see license.txt
|
||||||
|
|
||||||
frappe.ui.form.on('Attendee Registration', {
|
frappe.ui.form.on('Attendee', {
|
||||||
onload: function (frm) {
|
onload: function (frm) {
|
||||||
frm.set_query('user', function (doc) {
|
frm.set_query('user', function (doc) {
|
||||||
return {
|
return {
|
||||||
@@ -8,11 +8,11 @@
|
|||||||
"attendee_info_section",
|
"attendee_info_section",
|
||||||
"user",
|
"user",
|
||||||
"full_name",
|
"full_name",
|
||||||
"email",
|
|
||||||
"phone_number",
|
"phone_number",
|
||||||
"occupation",
|
"occupation",
|
||||||
"company",
|
"company",
|
||||||
"what_are_you_hoping_to_learn"
|
"what_are_you_hoping_to_learn",
|
||||||
|
"is_paid"
|
||||||
],
|
],
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
@@ -20,13 +20,6 @@
|
|||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
"label": "Attendee Info"
|
"label": "Attendee Info"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"fetch_from": "user.email",
|
|
||||||
"fieldname": "email",
|
|
||||||
"fieldtype": "Data",
|
|
||||||
"label": "Email",
|
|
||||||
"read_only": 1
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"fieldname": "phone_number",
|
"fieldname": "phone_number",
|
||||||
"fieldtype": "Data",
|
"fieldtype": "Data",
|
||||||
@@ -53,7 +46,8 @@
|
|||||||
"fieldname": "user",
|
"fieldname": "user",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"label": "User",
|
"label": "User",
|
||||||
"options": "User"
|
"options": "User",
|
||||||
|
"read_only": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fetch_from": "user.full_name",
|
"fetch_from": "user.full_name",
|
||||||
@@ -61,14 +55,20 @@
|
|||||||
"fieldtype": "Data",
|
"fieldtype": "Data",
|
||||||
"label": "Full Name",
|
"label": "Full Name",
|
||||||
"read_only": 1
|
"read_only": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"default": "0",
|
||||||
|
"fieldname": "is_paid",
|
||||||
|
"fieldtype": "Check",
|
||||||
|
"label": "is_paid"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2021-08-19 15:25:03.305762",
|
"modified": "2021-08-20 13:40:25.690440",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Event Management",
|
"module": "Event Management",
|
||||||
"name": "Attendee Registration",
|
"name": "Attendee",
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
"permissions": [
|
"permissions": [
|
||||||
{
|
{
|
||||||
@@ -4,5 +4,5 @@
|
|||||||
# import frappe
|
# import frappe
|
||||||
from frappe.model.document import Document
|
from frappe.model.document import Document
|
||||||
|
|
||||||
class AttendeeRegistration(Document):
|
class Attendee(Document):
|
||||||
pass
|
pass
|
||||||
@@ -4,5 +4,5 @@
|
|||||||
# import frappe
|
# import frappe
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
class TestAttendeeRegistration(unittest.TestCase):
|
class TestAttendee(unittest.TestCase):
|
||||||
pass
|
pass
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
"fieldname": "attendee",
|
"fieldname": "attendee",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"label": "attendee",
|
"label": "attendee",
|
||||||
"options": "Attendee Registration"
|
"options": "Attendee"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "event",
|
"fieldname": "event",
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
],
|
],
|
||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2021-08-18 09:51:14.654098",
|
"modified": "2021-08-20 13:38:28.688115",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Event Management",
|
"module": "Event Management",
|
||||||
"name": "Event Ticket",
|
"name": "Event Ticket",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright (c) 2021, FOSS United and contributors
|
// Copyright (c) 2021, FOSS United and contributors
|
||||||
// For license information, please see license.txt
|
// For license information, please see license.txt
|
||||||
|
|
||||||
frappe.ui.form.on('Exhibitor Registration', {
|
frappe.ui.form.on('Exhibitor', {
|
||||||
// refresh: function(frm) {
|
// refresh: function(frm) {
|
||||||
|
|
||||||
// }
|
// }
|
||||||
@@ -8,7 +8,9 @@
|
|||||||
"field_order": [
|
"field_order": [
|
||||||
"full_name",
|
"full_name",
|
||||||
"company",
|
"company",
|
||||||
"logo"
|
"logo",
|
||||||
|
"description",
|
||||||
|
"is_paid"
|
||||||
],
|
],
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
@@ -25,14 +27,25 @@
|
|||||||
"fieldname": "logo",
|
"fieldname": "logo",
|
||||||
"fieldtype": "Attach Image",
|
"fieldtype": "Attach Image",
|
||||||
"label": "Logo"
|
"label": "Logo"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "description",
|
||||||
|
"fieldtype": "Text Editor",
|
||||||
|
"label": "Description"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"default": "0",
|
||||||
|
"fieldname": "is_paid",
|
||||||
|
"fieldtype": "Check",
|
||||||
|
"label": "is_paid"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2021-08-18 20:08:31.591935",
|
"modified": "2021-08-20 13:38:07.709658",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Event Management",
|
"module": "Event Management",
|
||||||
"name": "Exhibitor Registration",
|
"name": "Exhibitor",
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
"permissions": [
|
"permissions": [
|
||||||
{
|
{
|
||||||
@@ -4,5 +4,5 @@
|
|||||||
# import frappe
|
# import frappe
|
||||||
from frappe.model.document import Document
|
from frappe.model.document import Document
|
||||||
|
|
||||||
class ExhibitorRegistration(Document):
|
class Exhibitor(Document):
|
||||||
pass
|
pass
|
||||||
@@ -4,5 +4,5 @@
|
|||||||
# import frappe
|
# import frappe
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
class TestExhibitorRegistration(unittest.TestCase):
|
class TestExhibitor(unittest.TestCase):
|
||||||
pass
|
pass
|
||||||
@@ -2,13 +2,7 @@
|
|||||||
// For license information, please see license.txt
|
// For license information, please see license.txt
|
||||||
|
|
||||||
frappe.ui.form.on('Speaker', {
|
frappe.ui.form.on('Speaker', {
|
||||||
onload: function (frm) {
|
// refresh: function(frm) {
|
||||||
frm.set_query('user', function (doc) {
|
|
||||||
return {
|
// }
|
||||||
filters: {
|
|
||||||
"ignore_user_type": 1,
|
|
||||||
}
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -7,9 +7,9 @@
|
|||||||
"engine": "InnoDB",
|
"engine": "InnoDB",
|
||||||
"field_order": [
|
"field_order": [
|
||||||
"speaker_info_section",
|
"speaker_info_section",
|
||||||
|
"event",
|
||||||
"user",
|
"user",
|
||||||
"full_name",
|
"full_name",
|
||||||
"email",
|
|
||||||
"phone_number",
|
"phone_number",
|
||||||
"job_title",
|
"job_title",
|
||||||
"company",
|
"company",
|
||||||
@@ -24,10 +24,19 @@
|
|||||||
"label": "Speaker Info"
|
"label": "Speaker Info"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fetch_from": "user.email",
|
"fieldname": "user",
|
||||||
"fieldname": "email",
|
"fieldtype": "Link",
|
||||||
|
"in_list_view": 1,
|
||||||
|
"label": "User",
|
||||||
|
"options": "User",
|
||||||
|
"read_only": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fetch_from": "user.full_name",
|
||||||
|
"fieldname": "full_name",
|
||||||
"fieldtype": "Data",
|
"fieldtype": "Data",
|
||||||
"label": "Email",
|
"in_list_view": 1,
|
||||||
|
"label": "Full Name",
|
||||||
"read_only": 1
|
"read_only": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -52,6 +61,11 @@
|
|||||||
"reqd": 1
|
"reqd": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"fieldname": "column_break_8",
|
||||||
|
"fieldtype": "Column Break"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fetch_from": "user.banner_image",
|
||||||
"fieldname": "picture",
|
"fieldname": "picture",
|
||||||
"fieldtype": "Attach Image",
|
"fieldtype": "Attach Image",
|
||||||
"label": "Profile Image",
|
"label": "Profile Image",
|
||||||
@@ -63,27 +77,16 @@
|
|||||||
"label": "Bio"
|
"label": "Bio"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "column_break_8",
|
"fieldname": "event",
|
||||||
"fieldtype": "Column Break"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fetch_from": "user.full_name",
|
|
||||||
"fieldname": "full_name",
|
|
||||||
"fieldtype": "Data",
|
|
||||||
"in_list_view": 1,
|
|
||||||
"label": "Full Name",
|
|
||||||
"read_only": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fieldname": "user",
|
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"label": "User",
|
"label": "Event",
|
||||||
"options": "User"
|
"options": "Event Details",
|
||||||
|
"read_only": 1
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2021-08-19 15:19:27.351589",
|
"modified": "2021-08-20 12:06:54.852070",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Event Management",
|
"module": "Event Management",
|
||||||
"name": "Speaker",
|
"name": "Speaker",
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
# Copyright (c) 2021, FOSS United and contributors
|
# Copyright (c) 2021, FOSS United and contributors
|
||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
import frappe
|
# import frappe
|
||||||
from frappe.model.document import Document
|
from frappe.model.document import Document
|
||||||
|
|
||||||
class Speaker(Document):
|
class Speaker(Document):
|
||||||
|
|
||||||
def on_update(self):
|
|
||||||
pass
|
pass
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"engine": "InnoDB",
|
"engine": "InnoDB",
|
||||||
"field_order": [
|
"field_order": [
|
||||||
"event",
|
"event",
|
||||||
"speaker",
|
"company",
|
||||||
"topic",
|
"topic",
|
||||||
"title",
|
"title",
|
||||||
"about",
|
"about",
|
||||||
@@ -15,7 +15,8 @@
|
|||||||
"url",
|
"url",
|
||||||
"thumbnail",
|
"thumbnail",
|
||||||
"name_of_the_speaker",
|
"name_of_the_speaker",
|
||||||
"status"
|
"status",
|
||||||
|
"speaker"
|
||||||
],
|
],
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
@@ -47,12 +48,12 @@
|
|||||||
{
|
{
|
||||||
"fieldname": "topic",
|
"fieldname": "topic",
|
||||||
"fieldtype": "Data",
|
"fieldtype": "Data",
|
||||||
"label": "Topic"
|
"label": "Category"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "about",
|
"fieldname": "about",
|
||||||
"fieldtype": "Text",
|
"fieldtype": "Text",
|
||||||
"label": "About"
|
"label": "About the Talk"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "attachment",
|
"fieldname": "attachment",
|
||||||
@@ -62,6 +63,7 @@
|
|||||||
{
|
{
|
||||||
"fieldname": "speaker",
|
"fieldname": "speaker",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
|
"hidden": 1,
|
||||||
"label": "Speaker",
|
"label": "Speaker",
|
||||||
"options": "Speaker"
|
"options": "Speaker"
|
||||||
},
|
},
|
||||||
@@ -72,11 +74,16 @@
|
|||||||
"in_list_view": 1,
|
"in_list_view": 1,
|
||||||
"label": "Status",
|
"label": "Status",
|
||||||
"options": "Applied\nPending\nApproved\nRejected\nPrevious Talk"
|
"options": "Applied\nPending\nApproved\nRejected\nPrevious Talk"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "company",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "Company"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2021-08-19 16:44:58.181528",
|
"modified": "2021-08-20 12:08:11.304322",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Event Management",
|
"module": "Event Management",
|
||||||
"name": "Talk",
|
"name": "Talk",
|
||||||
|
|||||||
@@ -1,8 +1,27 @@
|
|||||||
# Copyright (c) 2021, FOSS United and contributors
|
# Copyright (c) 2021, FOSS United and contributors
|
||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import frappe
|
import frappe
|
||||||
from frappe.model.document import Document
|
from frappe.model.document import Document
|
||||||
|
|
||||||
|
|
||||||
class Talk(Document):
|
class Talk(Document):
|
||||||
pass
|
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
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
frappe.ready(function () {
|
frappe.ready(function () {
|
||||||
// bind events here
|
frappe.web_form.after_save = () => {
|
||||||
|
setTimeout(function () {
|
||||||
|
window.location.href = '/event/conference2021/about';
|
||||||
|
}, 2000);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
@@ -11,6 +11,7 @@
|
|||||||
"apply_document_permissions": 0,
|
"apply_document_permissions": 0,
|
||||||
"button_label": "Get Ticket",
|
"button_label": "Get Ticket",
|
||||||
"creation": "2021-08-19 15:26:56.594526",
|
"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",
|
"doc_type": "Attendee Registration",
|
||||||
"docstatus": 0,
|
"docstatus": 0,
|
||||||
"doctype": "Web Form",
|
"doctype": "Web Form",
|
||||||
@@ -18,20 +19,20 @@
|
|||||||
"is_standard": 1,
|
"is_standard": 1,
|
||||||
"login_required": 1,
|
"login_required": 1,
|
||||||
"max_attachment_size": 0,
|
"max_attachment_size": 0,
|
||||||
"modified": "2021-08-19 15:34:04.871127",
|
"modified": "2021-08-19 22:03:24.454348",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Event Management",
|
"module": "Event Management",
|
||||||
"name": "attendee-registration",
|
"name": "attendee-registration",
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
"payment_button_label": "Buy Now",
|
"payment_button_label": "Buy Now",
|
||||||
"published": 1,
|
"published": 1,
|
||||||
"route": "event/conference/attendee-registration",
|
"route": "event/conference2021/attendee-registration",
|
||||||
"route_to_success_link": 1,
|
"route_to_success_link": 1,
|
||||||
"show_attachments": 0,
|
"show_attachments": 0,
|
||||||
"show_in_grid": 0,
|
"show_in_grid": 0,
|
||||||
"show_sidebar": 0,
|
"show_sidebar": 0,
|
||||||
"sidebar_items": [],
|
"sidebar_items": [],
|
||||||
"success_url": "/attendee-registration",
|
"success_url": "/event/conference2021/about",
|
||||||
"title": "Attendee Registration",
|
"title": "Attendee Registration",
|
||||||
"web_form_fields": [
|
"web_form_fields": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
frappe.ready(function () {
|
frappe.ready(function () {
|
||||||
// bind events here
|
frappe.web_form.after_save = () => {
|
||||||
|
setTimeout(function () {
|
||||||
|
window.location.href = '/event/conference2021/about';
|
||||||
|
}, 2000);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
@@ -11,14 +11,15 @@
|
|||||||
"apply_document_permissions": 0,
|
"apply_document_permissions": 0,
|
||||||
"button_label": "Save",
|
"button_label": "Save",
|
||||||
"creation": "2021-08-16 16:27:06.566564",
|
"creation": "2021-08-16 16:27:06.566564",
|
||||||
"doc_type": "Exhibitor Registration",
|
"custom_css": "[data-doctype=\"Web Form\"] {\n max-width: 720px;\n margin: 6rem auto;\n}",
|
||||||
|
"doc_type": "Exhibitor",
|
||||||
"docstatus": 0,
|
"docstatus": 0,
|
||||||
"doctype": "Web Form",
|
"doctype": "Web Form",
|
||||||
"idx": 0,
|
"idx": 0,
|
||||||
"is_standard": 1,
|
"is_standard": 1,
|
||||||
"login_required": 1,
|
"login_required": 1,
|
||||||
"max_attachment_size": 0,
|
"max_attachment_size": 0,
|
||||||
"modified": "2021-08-17 11:51:02.929819",
|
"modified": "2021-08-19 22:05:16.609246",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Event Management",
|
"module": "Event Management",
|
||||||
"name": "exhibitor-registration",
|
"name": "exhibitor-registration",
|
||||||
@@ -69,6 +70,18 @@
|
|||||||
"read_only": 0,
|
"read_only": 0,
|
||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"show_in_filter": 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
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,7 @@
|
|||||||
frappe.ready(function () {
|
frappe.ready(function () {
|
||||||
// bind events here
|
frappe.web_form.after_save = () => {
|
||||||
|
setTimeout(function () {
|
||||||
|
window.location.href = '/event/conference2021/about';
|
||||||
|
}, 2000);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
@@ -10,7 +10,9 @@
|
|||||||
"amount_based_on_field": 0,
|
"amount_based_on_field": 0,
|
||||||
"apply_document_permissions": 0,
|
"apply_document_permissions": 0,
|
||||||
"button_label": "Submit",
|
"button_label": "Submit",
|
||||||
|
"client_script": "",
|
||||||
"creation": "2021-08-19 15:16:22.341723",
|
"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",
|
"doc_type": "Talk",
|
||||||
"docstatus": 0,
|
"docstatus": 0,
|
||||||
"doctype": "Web Form",
|
"doctype": "Web Form",
|
||||||
@@ -18,19 +20,20 @@
|
|||||||
"is_standard": 1,
|
"is_standard": 1,
|
||||||
"login_required": 1,
|
"login_required": 1,
|
||||||
"max_attachment_size": 0,
|
"max_attachment_size": 0,
|
||||||
"modified": "2021-08-19 15:22:37.040442",
|
"modified": "2021-08-20 13:33:49.508780",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Event Management",
|
"module": "Event Management",
|
||||||
"name": "purpose-a-talk",
|
"name": "purpose-a-talk",
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
"payment_button_label": "Buy Now",
|
"payment_button_label": "Buy Now",
|
||||||
"published": 1,
|
"published": 1,
|
||||||
"route": "event/conference/purpose-a-talk",
|
"route": "propose-talk",
|
||||||
"route_to_success_link": 0,
|
"route_to_success_link": 0,
|
||||||
"show_attachments": 0,
|
"show_attachments": 0,
|
||||||
"show_in_grid": 0,
|
"show_in_grid": 0,
|
||||||
"show_sidebar": 0,
|
"show_sidebar": 0,
|
||||||
"sidebar_items": [],
|
"sidebar_items": [],
|
||||||
|
"success_message": "Talk Submitted!",
|
||||||
"success_url": "/purpose-a-talk",
|
"success_url": "/purpose-a-talk",
|
||||||
"title": "Purpose a Talk",
|
"title": "Purpose a Talk",
|
||||||
"web_form_fields": [
|
"web_form_fields": [
|
||||||
@@ -49,13 +52,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"allow_read_on_all_link_options": 0,
|
"allow_read_on_all_link_options": 0,
|
||||||
"fieldname": "speaker",
|
"fieldname": "company",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Data",
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
"label": "Speaker",
|
"label": "Company",
|
||||||
"max_length": 0,
|
"max_length": 0,
|
||||||
"max_value": 0,
|
"max_value": 0,
|
||||||
"options": "Speaker",
|
|
||||||
"read_only": 0,
|
"read_only": 0,
|
||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"show_in_filter": 0
|
"show_in_filter": 0
|
||||||
@@ -65,11 +67,11 @@
|
|||||||
"fieldname": "topic",
|
"fieldname": "topic",
|
||||||
"fieldtype": "Data",
|
"fieldtype": "Data",
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
"label": "Topic",
|
"label": "Category",
|
||||||
"max_length": 0,
|
"max_length": 0,
|
||||||
"max_value": 0,
|
"max_value": 0,
|
||||||
"read_only": 0,
|
"read_only": 0,
|
||||||
"reqd": 0,
|
"reqd": 1,
|
||||||
"show_in_filter": 0
|
"show_in_filter": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -81,7 +83,7 @@
|
|||||||
"max_length": 0,
|
"max_length": 0,
|
||||||
"max_value": 0,
|
"max_value": 0,
|
||||||
"read_only": 0,
|
"read_only": 0,
|
||||||
"reqd": 0,
|
"reqd": 1,
|
||||||
"show_in_filter": 0
|
"show_in_filter": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -93,7 +95,7 @@
|
|||||||
"max_length": 0,
|
"max_length": 0,
|
||||||
"max_value": 0,
|
"max_value": 0,
|
||||||
"read_only": 0,
|
"read_only": 0,
|
||||||
"reqd": 0,
|
"reqd": 1,
|
||||||
"show_in_filter": 0
|
"show_in_filter": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
frappe.ready(function () {
|
frappe.ready(function () {
|
||||||
// bind events here
|
frappe.web_form.after_save = () => {
|
||||||
|
setTimeout(function () {
|
||||||
|
window.location.href = '/event/conference2021/propose-talk';
|
||||||
|
}, 2000);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
@@ -11,6 +11,7 @@
|
|||||||
"apply_document_permissions": 0,
|
"apply_document_permissions": 0,
|
||||||
"button_label": "Register",
|
"button_label": "Register",
|
||||||
"creation": "2021-08-19 15:29:01.167930",
|
"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",
|
"doc_type": "Speaker",
|
||||||
"docstatus": 0,
|
"docstatus": 0,
|
||||||
"doctype": "Web Form",
|
"doctype": "Web Form",
|
||||||
@@ -18,14 +19,14 @@
|
|||||||
"is_standard": 1,
|
"is_standard": 1,
|
||||||
"login_required": 1,
|
"login_required": 1,
|
||||||
"max_attachment_size": 0,
|
"max_attachment_size": 0,
|
||||||
"modified": "2021-08-19 15:30:59.041817",
|
"modified": "2021-08-20 11:24:52.350955",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Event Management",
|
"module": "Event Management",
|
||||||
"name": "speaker-registration",
|
"name": "speaker-registration",
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
"payment_button_label": "Buy Now",
|
"payment_button_label": "Buy Now",
|
||||||
"published": 1,
|
"published": 1,
|
||||||
"route": "event/conference/speaker-registration",
|
"route": "speaker-registration",
|
||||||
"route_to_success_link": 1,
|
"route_to_success_link": 1,
|
||||||
"show_attachments": 0,
|
"show_attachments": 0,
|
||||||
"show_in_grid": 0,
|
"show_in_grid": 0,
|
||||||
@@ -36,6 +37,19 @@
|
|||||||
"web_form_fields": [
|
"web_form_fields": [
|
||||||
{
|
{
|
||||||
"allow_read_on_all_link_options": 0,
|
"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",
|
"fieldname": "user",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
@@ -59,18 +73,6 @@
|
|||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"show_in_filter": 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,
|
"allow_read_on_all_link_options": 0,
|
||||||
"fieldname": "phone_number",
|
"fieldname": "phone_number",
|
||||||
|
|||||||
@@ -1,14 +1,20 @@
|
|||||||
<div class="section-with-cards">
|
<div class="section-with-cards">
|
||||||
<h1 class="course-home-headings">{{title}}</h1>
|
<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">
|
<div class="speaker-cards-parent">
|
||||||
{% for exhibitor in exhibitor_details %}
|
{% for exhibitor in exhibitor_details %}
|
||||||
{% set exhibitor_doc = frappe.get_doc("Exhibitor Registration", exhibitor.exhibitor) %}
|
{% 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">
|
<div class="common-card-style talk-card exhibitor-card">
|
||||||
<span>
|
<span>
|
||||||
<img class="standard-image company-logo" src="{{exhibitor_doc.logo}}" />
|
<img class="standard-image company-logo" src="{{exhibitor_doc.logo}}" />
|
||||||
</span>
|
</span>
|
||||||
<div class="small-title company-name">{{exhibitor_doc.company}}</div>
|
<div class="small-title company-name">{{exhibitor_doc.company}}</div>
|
||||||
</div>
|
</div>
|
||||||
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{%- if cta_link -%}
|
{%- if cta_link -%}
|
||||||
|
|||||||
@@ -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"
|
||||||
|
}
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
<div class="section-with-cards">
|
|
||||||
<div class="course-home-headings">{{title}}</div>
|
|
||||||
<div class="speaker-cards-parent">
|
|
||||||
{% for video in talk_details %}
|
|
||||||
{% set video_details = frappe.get_doc('Talk', video.previous_content, filters={
|
|
||||||
'event': event
|
|
||||||
}) %}
|
|
||||||
<div class="common-card-style talk-card">
|
|
||||||
<div class="course-image" style="background-image: url({{video_details.thumbnail}})">
|
|
||||||
<div class="course-tags"></div>
|
|
||||||
</div>
|
|
||||||
<div class="course-card-content">
|
|
||||||
<div class="course-card-meta muted-text">
|
|
||||||
<span> ERPNext </span>
|
|
||||||
</div>
|
|
||||||
<div class="course-card-title">{{video_details.title}}</div>
|
|
||||||
<div class="card-divider"></div>
|
|
||||||
<div class="course-card-meta-2">
|
|
||||||
<a class="button-links" href="/rushabh">
|
|
||||||
<span class="avatar avatar-small" title="Rushabh Mehta">
|
|
||||||
<img class="avatar-frame standard-image" style="object-fit: cover"
|
|
||||||
src="{{video_details.thumbnail}}"
|
|
||||||
title={{video_details.name_of_the_speaker}} />
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
<span class="course-instructor"> {{video_details.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="{{video_details.url}}"></a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@@ -19,6 +19,9 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<div class="courses-header">{{title}}</div>
|
<div class="courses-header">{{title}}</div>
|
||||||
|
{%- if subtitle -%}
|
||||||
|
<p class="section-description">{{ subtitle }}</p>
|
||||||
|
{%- endif -%}
|
||||||
<div class="common-page-style">
|
<div class="common-page-style">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="course-content-parent">
|
<div class="course-content-parent">
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
<div class="section-with-cards">
|
<div class="section-with-cards">
|
||||||
<h1 class="course-home-headings">{{section_title}}</h1>
|
<h1 class="course-home-headings">{{section_title}}</h1>
|
||||||
|
{%- if subtitle -%}
|
||||||
|
<p class="section-description">{{ subtitle }}</p>
|
||||||
|
{%- endif -%}
|
||||||
<div class="speaker-cards-parent">
|
<div class="speaker-cards-parent">
|
||||||
{% for speaker in speaker_details %}
|
{% for speaker in speaker_details %}
|
||||||
{% set speaker_doc = frappe.get_doc("Speaker", speaker.speaker) %}
|
{% set speaker_doc = frappe.get_doc("Speaker", speaker.speaker) %}
|
||||||
|
|
||||||
<div class="common-card-style member-card talk-card">
|
<div class="common-card-style member-card talk-card">
|
||||||
<span class="avatar avatar-large">
|
<span class="avatar avatar-large">
|
||||||
<img class="avatar-frame" src="{{speaker_doc.picture}}" />
|
<img class="avatar-frame" src="{{speaker_doc.picture}}" />
|
||||||
@@ -18,6 +20,6 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
{%- if cta_link -%}
|
{%- if cta_link -%}
|
||||||
<div class="event-btn"><a href={{cta_link}} class="btn btn-primary ">Propose a Talk</a></div>
|
<div class="event-btn"><a href='/speaker-registration?event={{ event_ }}&user={{ frappe.session.user }}' class="btn btn-primary ">Propose a Talk</a></div>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
</div>
|
</div>
|
||||||
@@ -23,12 +23,6 @@
|
|||||||
"options": "Event Details",
|
"options": "Event Details",
|
||||||
"reqd": 0
|
"reqd": 0
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"fieldname": "cta_link",
|
|
||||||
"fieldtype": "Data",
|
|
||||||
"label": "CTA Link",
|
|
||||||
"reqd": 0
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"fieldname": "speaker_details",
|
"fieldname": "speaker_details",
|
||||||
"fieldtype": "Table Break",
|
"fieldtype": "Table Break",
|
||||||
@@ -44,7 +38,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"idx": 1,
|
"idx": 1,
|
||||||
"modified": "2021-08-19 16:06:45.811889",
|
"modified": "2021-08-20 10:59:54.965714",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Event Management",
|
"module": "Event Management",
|
||||||
"name": "Speaker Section",
|
"name": "Speaker 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>
|
||||||
@@ -17,7 +17,6 @@
|
|||||||
"reqd": 0
|
"reqd": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__unsaved": 1,
|
|
||||||
"fieldname": "event",
|
"fieldname": "event",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"label": "Event",
|
"label": "Event",
|
||||||
@@ -31,20 +30,18 @@
|
|||||||
"reqd": 0
|
"reqd": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__islocal": 1,
|
"fieldname": "talk",
|
||||||
"__unsaved": 1,
|
|
||||||
"fieldname": "previous_content",
|
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"label": "Previous Content",
|
"label": "Talk",
|
||||||
"options": "Previous Content",
|
"options": "Talk",
|
||||||
"reqd": 0
|
"reqd": 0
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"idx": 1,
|
"idx": 1,
|
||||||
"modified": "2021-08-18 10:03:50.193908",
|
"modified": "2021-08-20 10:58:45.556636",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Event Management",
|
"module": "Event Management",
|
||||||
"name": "Previous Talk",
|
"name": "Talk Section",
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
"standard": 1,
|
"standard": 1,
|
||||||
"template": "",
|
"template": "",
|
||||||
@@ -146,7 +146,7 @@ primary_rules = [
|
|||||||
{"from_route": "/courses/<course>/about", "to_route": "batch/about"},
|
{"from_route": "/courses/<course>/about", "to_route": "batch/about"},
|
||||||
{"from_route": "/courses/<course>/progress", "to_route": "batch/progress"},
|
{"from_route": "/courses/<course>/progress", "to_route": "batch/progress"},
|
||||||
{"from_route": "/courses/<course>/join", "to_route": "batch/join"},
|
{"from_route": "/courses/<course>/join", "to_route": "batch/join"},
|
||||||
{"from_route": "/discussions/<discussion>", "to_route": "discussions/discussion"}
|
{"from_route": "/discussions/<discussion>", "to_route": "discussions/discussion"},
|
||||||
]
|
]
|
||||||
|
|
||||||
# Any frappe default URL is blocked by profile-rules, add it here to unblock it
|
# Any frappe default URL is blocked by profile-rules, add it here to unblock it
|
||||||
@@ -174,7 +174,8 @@ whitelist = [
|
|||||||
"/event",
|
"/event",
|
||||||
"/hello",
|
"/hello",
|
||||||
"/exhibitor-registration",
|
"/exhibitor-registration",
|
||||||
"/discussions"
|
"/discussions",
|
||||||
|
"/propose-talk",
|
||||||
]
|
]
|
||||||
whitelist_rules = [{"from_route": p, "to_route": p[1:]} for p in whitelist]
|
whitelist_rules = [{"from_route": p, "to_route": p[1:]} for p in whitelist]
|
||||||
|
|
||||||
|
|||||||
@@ -1342,7 +1342,6 @@ a.talk-link {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.schedule-info{
|
.schedule-info{
|
||||||
/* display: none; */
|
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1374,11 +1373,6 @@ a.talk-link {
|
|||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* .schedule-container:hover > .schedule-info {
|
|
||||||
display: block;
|
|
||||||
transition: all 0.3s ease-in-out;
|
|
||||||
} */
|
|
||||||
|
|
||||||
.info-speaker-avatar {
|
.info-speaker-avatar {
|
||||||
display: flex;
|
display: flex;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@@ -1394,9 +1388,6 @@ a.talk-link {
|
|||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hide{
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.thread-card {
|
.thread-card {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 1.5rem;
|
padding: 1.5rem;
|
||||||
|
|||||||
Reference in New Issue
Block a user