diff --git a/foundation/erpnext_foundation/doctype/conference_request/__init__.py b/foundation/erpnext_foundation/doctype/conference_request/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/foundation/erpnext_foundation/doctype/conference_request/conference_request.js b/foundation/erpnext_foundation/doctype/conference_request/conference_request.js new file mode 100644 index 00000000..9d882c15 --- /dev/null +++ b/foundation/erpnext_foundation/doctype/conference_request/conference_request.js @@ -0,0 +1,8 @@ +// Copyright (c) 2019, EOSSF and contributors +// For license information, please see license.txt + +frappe.ui.form.on('Conference Request', { + // refresh: function(frm) { + + // } +}); diff --git a/foundation/erpnext_foundation/doctype/conference_request/conference_request.json b/foundation/erpnext_foundation/doctype/conference_request/conference_request.json new file mode 100644 index 00000000..87a60778 --- /dev/null +++ b/foundation/erpnext_foundation/doctype/conference_request/conference_request.json @@ -0,0 +1,70 @@ +{ + "creation": "2019-08-02 20:23:43.195486", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "contact_name", + "contact_number", + "email", + "organization_name", + "request_type", + "message" + ], + "fields": [ + { + "fieldname": "contact_name", + "fieldtype": "Data", + "label": "Contact Name" + }, + { + "fieldname": "email", + "fieldtype": "Data", + "label": "Email", + "options": "Email" + }, + { + "fieldname": "contact_number", + "fieldtype": "Data", + "label": "Contact Number" + }, + { + "fieldname": "organization_name", + "fieldtype": "Data", + "label": "Organization Name" + }, + { + "fieldname": "request_type", + "fieldtype": "Select", + "label": "Request Type", + "options": "Sponsorship\nExhibit Program" + }, + { + "fieldname": "message", + "fieldtype": "Text Editor", + "label": "Message" + } + ], + "modified": "2019-08-02 20:26:28.760374", + "modified_by": "Administrator", + "module": "ERPNext Foundation", + "name": "Conference Request", + "owner": "Administrator", + "permissions": [ + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "System Manager", + "share": 1, + "write": 1 + } + ], + "sort_field": "modified", + "sort_order": "DESC", + "track_changes": 1 +} \ No newline at end of file diff --git a/foundation/erpnext_foundation/doctype/conference_request/conference_request.py b/foundation/erpnext_foundation/doctype/conference_request/conference_request.py new file mode 100644 index 00000000..741b8085 --- /dev/null +++ b/foundation/erpnext_foundation/doctype/conference_request/conference_request.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +# Copyright (c) 2019, EOSSF and contributors +# For license information, please see license.txt + +from __future__ import unicode_literals +# import frappe +from frappe.model.document import Document + +class ConferenceRequest(Document): + pass diff --git a/foundation/erpnext_foundation/doctype/conference_request/test_conference_request.py b/foundation/erpnext_foundation/doctype/conference_request/test_conference_request.py new file mode 100644 index 00000000..bed08ebd --- /dev/null +++ b/foundation/erpnext_foundation/doctype/conference_request/test_conference_request.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +# Copyright (c) 2019, EOSSF and Contributors +# See license.txt +from __future__ import unicode_literals + +# import frappe +import unittest + +class TestConferenceRequest(unittest.TestCase): + pass diff --git a/foundation/erpnext_foundation/web_form/request_a_call/__init__.py b/foundation/erpnext_foundation/web_form/request_a_call/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/foundation/erpnext_foundation/web_form/request_a_call/request_a_call.js b/foundation/erpnext_foundation/web_form/request_a_call/request_a_call.js new file mode 100644 index 00000000..699703c5 --- /dev/null +++ b/foundation/erpnext_foundation/web_form/request_a_call/request_a_call.js @@ -0,0 +1,3 @@ +frappe.ready(function() { + // bind events here +}) \ No newline at end of file diff --git a/foundation/erpnext_foundation/web_form/request_a_call/request_a_call.json b/foundation/erpnext_foundation/web_form/request_a_call/request_a_call.json new file mode 100644 index 00000000..4e2f0c4e --- /dev/null +++ b/foundation/erpnext_foundation/web_form/request_a_call/request_a_call.json @@ -0,0 +1,112 @@ +{ + "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, + "button_label": "Save", + "creation": "2019-08-02 20:24:57.913609", + "doc_type": "Conference Request", + "docstatus": 0, + "doctype": "Web Form", + "idx": 0, + "is_standard": 1, + "login_required": 0, + "max_attachment_size": 0, + "modified": "2019-08-02 20:27:05.106516", + "modified_by": "Administrator", + "module": "ERPNext Foundation", + "name": "request-a-call", + "owner": "Administrator", + "payment_button_label": "Buy Now", + "published": 1, + "route": "request-a-call", + "route_to_success_link": 0, + "show_attachments": 0, + "show_in_grid": 0, + "show_sidebar": 0, + "sidebar_items": [], + "success_url": "/request-a-call", + "title": "Request a Call", + "web_form_fields": [ + { + "allow_read_on_all_link_options": 0, + "fieldname": "contact_name", + "fieldtype": "Data", + "hidden": 0, + "label": "Contact Name", + "max_length": 0, + "max_value": 0, + "read_only": 0, + "reqd": 1, + "show_in_filter": 0 + }, + { + "allow_read_on_all_link_options": 0, + "fieldname": "contact_number", + "fieldtype": "Data", + "hidden": 0, + "label": "Contact Number", + "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, + "options": "Email", + "read_only": 0, + "reqd": 1, + "show_in_filter": 0 + }, + { + "allow_read_on_all_link_options": 0, + "fieldname": "organization_name", + "fieldtype": "Data", + "hidden": 0, + "label": "Organization Name", + "max_length": 0, + "max_value": 0, + "read_only": 0, + "reqd": 0, + "show_in_filter": 0 + }, + { + "allow_read_on_all_link_options": 0, + "default": "Sponsorship", + "fieldname": "request_type", + "fieldtype": "Select", + "hidden": 0, + "label": "Request Type", + "max_length": 0, + "max_value": 0, + "options": "Sponsorship\nExhibit Program", + "read_only": 0, + "reqd": 1, + "show_in_filter": 0 + }, + { + "allow_read_on_all_link_options": 0, + "fieldname": "message", + "fieldtype": "Text Editor", + "hidden": 0, + "label": "Message", + "max_length": 0, + "max_value": 0, + "read_only": 0, + "reqd": 0, + "show_in_filter": 0 + } + ] +} \ No newline at end of file diff --git a/foundation/erpnext_foundation/web_form/request_a_call/request_a_call.py b/foundation/erpnext_foundation/web_form/request_a_call/request_a_call.py new file mode 100644 index 00000000..2334f8b2 --- /dev/null +++ b/foundation/erpnext_foundation/web_form/request_a_call/request_a_call.py @@ -0,0 +1,7 @@ +from __future__ import unicode_literals + +import frappe + +def get_context(context): + # do your magic here + pass