diff --git a/community/event_management/web_template/exhibitor_section/exhibitor_section.html b/community/event_management/web_template/exhibitor_section/exhibitor_section.html index c0fc31f6..5a3d65f4 100644 --- a/community/event_management/web_template/exhibitor_section/exhibitor_section.html +++ b/community/event_management/web_template/exhibitor_section/exhibitor_section.html @@ -1,19 +1,20 @@
-

{{title}}

-
- {% for exhibitor in exhibitor_details %} - {% set exhibitor_doc = frappe.get_doc("Exhibitor Registration", exhibitor.exhibitor) %} -
- - - -
{{exhibitor_doc.company}}
-
- {% endfor %} -
- {%- if cta_link -%} -
Become an Exhibitor
- {%- endif -%} +
+ {{ title }} + {% set cta_link = "/exhibitor-registration" if frappe.session.user != "Guest" else + "/login?redirect_to=exhibitor-registration" %} + Become an Exhibitor +
+
+ {% for exhibitor in exhibitor_details %} + {% set exhibitor_doc = frappe.db.get_value("Exhibitor Registration", exhibitor.exhibitor, ["logo", "company"], + as_dict=True) %} +
+ + + +
{{exhibitor_doc.company}}
+
+ {% endfor %} +
- - \ No newline at end of file diff --git a/community/event_management/web_template/exhibitor_section/exhibitor_section.json b/community/event_management/web_template/exhibitor_section/exhibitor_section.json index 0b8c5629..9a20ca64 100644 --- a/community/event_management/web_template/exhibitor_section/exhibitor_section.json +++ b/community/event_management/web_template/exhibitor_section/exhibitor_section.json @@ -17,19 +17,12 @@ "reqd": 0 }, { - "__unsaved": 1, "fieldname": "event", "fieldtype": "Link", "label": "Event", "options": "Event Details", "reqd": 0 }, - { - "fieldname": "cta_link", - "fieldtype": "Data", - "label": "CTA Link", - "reqd": 0 - }, { "fieldname": "exhibitor_details", "fieldtype": "Table Break", @@ -45,7 +38,7 @@ } ], "idx": 1, - "modified": "2021-08-18 10:05:11.753576", + "modified": "2021-08-19 10:57:20.815230", "modified_by": "Administrator", "module": "Event Management", "name": "Exhibitor Section", diff --git a/community/event_management/web_template/speaker_section/speaker_section.html b/community/event_management/web_template/speaker_section/speaker_section.html index b46cea7b..2e2e0f90 100644 --- a/community/event_management/web_template/speaker_section/speaker_section.html +++ b/community/event_management/web_template/speaker_section/speaker_section.html @@ -4,7 +4,7 @@ {% for speaker in speaker_details %} {% set speaker_doc = frappe.get_doc("Speaker Registration", speaker.speaker) %} -
+
@@ -15,9 +15,9 @@
{{speaker_doc.company}}
{% endfor %} - +
{%- if cta_link -%}
Become a Speaker
{%- endif -%} - \ No newline at end of file + diff --git a/community/public/css/style.css b/community/public/css/style.css index 21096b30..fb23f4f5 100644 --- a/community/public/css/style.css +++ b/community/public/css/style.css @@ -1283,7 +1283,7 @@ pre { font-size: 1rem; } -.talk-card { +.talk-card { width: 16rem; } @@ -1309,10 +1309,10 @@ a.talk-link { .speaker-cards-parent { display: grid; - grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); - -moz-column-gap: 32px; - column-gap: 14px; - row-gap: 32px; + grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); + -moz-column-gap: 2rem; + column-gap: 2rem; + row-gap: 2rem; } .avatar img { @@ -1363,15 +1363,8 @@ a.talk-link { padding-bottom: 30px; } -.exhibitor-card .company-name{ - font-size: 25px; - margin-top: 30px; -} - .exhibitor-card .company-logo{ height: 158px; - width: 252px; - object-fit: contain; } /* .schedule-container:hover > .schedule-info {