fix: add user to exhibitor doctype
This commit is contained in:
@@ -6,6 +6,8 @@
|
|||||||
"editable_grid": 1,
|
"editable_grid": 1,
|
||||||
"engine": "InnoDB",
|
"engine": "InnoDB",
|
||||||
"field_order": [
|
"field_order": [
|
||||||
|
"user",
|
||||||
|
"event",
|
||||||
"full_name",
|
"full_name",
|
||||||
"company",
|
"company",
|
||||||
"logo",
|
"logo",
|
||||||
@@ -14,9 +16,11 @@
|
|||||||
],
|
],
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
|
"fetch_from": "user.full_name",
|
||||||
"fieldname": "full_name",
|
"fieldname": "full_name",
|
||||||
"fieldtype": "Data",
|
"fieldtype": "Data",
|
||||||
"label": "Full Name"
|
"label": "Full Name",
|
||||||
|
"read_only": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "company",
|
"fieldname": "company",
|
||||||
@@ -38,11 +42,25 @@
|
|||||||
"fieldname": "is_paid",
|
"fieldname": "is_paid",
|
||||||
"fieldtype": "Check",
|
"fieldtype": "Check",
|
||||||
"label": "is_paid"
|
"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,
|
"index_web_pages_for_search": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2021-08-20 13:38:07.709658",
|
"modified": "2021-08-20 15:22:38.616972",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Event Management",
|
"module": "Event Management",
|
||||||
"name": "Exhibitor",
|
"name": "Exhibitor",
|
||||||
|
|||||||
@@ -19,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 22:05:16.609246",
|
"modified": "2021-08-20 15:25:57.712882",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Event Management",
|
"module": "Event Management",
|
||||||
"name": "exhibitor-registration",
|
"name": "exhibitor-registration",
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
"payment_button_label": "Buy Now",
|
"payment_button_label": "Buy Now",
|
||||||
"published": 1,
|
"published": 1,
|
||||||
"route": "event/conference2021/exhibitor-registration",
|
"route": "exhibitor-registration",
|
||||||
"route_to_success_link": 0,
|
"route_to_success_link": 0,
|
||||||
"show_attachments": 0,
|
"show_attachments": 0,
|
||||||
"show_in_grid": 0,
|
"show_in_grid": 0,
|
||||||
@@ -35,6 +35,19 @@
|
|||||||
"success_url": "/exhibitor-registration",
|
"success_url": "/exhibitor-registration",
|
||||||
"title": "Exhibitor Registration",
|
"title": "Exhibitor Registration",
|
||||||
"web_form_fields": [
|
"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,
|
"allow_read_on_all_link_options": 0,
|
||||||
"fieldname": "full_name",
|
"fieldname": "full_name",
|
||||||
|
|||||||
@@ -17,9 +17,8 @@
|
|||||||
</a>
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{%- if cta_link -%}
|
<div class="event-btn"><a href="/exhibitor-registration/user={{ frappe.session.user }}&event={{ event_ }}" class="btn btn-primary ">Become an Exhibitor</a></div>
|
||||||
<div class="event-btn"><a href={{cta_link}} class="btn btn-primary ">Become an Exhibitor</a></div>
|
|
||||||
{%- endif -%}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -17,19 +17,12 @@
|
|||||||
"reqd": 0
|
"reqd": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__unsaved": 1,
|
|
||||||
"fieldname": "event",
|
"fieldname": "event",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"label": "Event",
|
"label": "Event",
|
||||||
"options": "Event Details",
|
"options": "Event Details",
|
||||||
"reqd": 0
|
"reqd": 0
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"fieldname": "cta_link",
|
|
||||||
"fieldtype": "Data",
|
|
||||||
"label": "CTA Link",
|
|
||||||
"reqd": 0
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"fieldname": "exhibitor_details",
|
"fieldname": "exhibitor_details",
|
||||||
"fieldtype": "Table Break",
|
"fieldtype": "Table Break",
|
||||||
@@ -45,7 +38,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"idx": 1,
|
"idx": 1,
|
||||||
"modified": "2021-08-18 10:05:11.753576",
|
"modified": "2021-08-20 15:23:13.419285",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Event Management",
|
"module": "Event Management",
|
||||||
"name": "Exhibitor Section",
|
"name": "Exhibitor Section",
|
||||||
|
|||||||
@@ -20,6 +20,6 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
{%- if cta_link -%}
|
{%- if cta_link -%}
|
||||||
<div class="event-btn"><a href='/speaker-registration?event={{ event_ }}&user={{ frappe.session.user }}' class="btn btn-primary ">Propose a Talk</a></div>
|
<div class="event-btn"><a href='/speaker-registration?user={{ frappe.session.user }}&event={{ event_ }}' class="btn btn-primary ">Propose a Talk</a></div>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user