fix: exhibitor template
This commit is contained in:
@@ -1,19 +1,20 @@
|
||||
<div class="section-with-cards">
|
||||
<h1 class="course-home-headings">{{title}}</h1>
|
||||
<div class="speaker-cards-parent">
|
||||
{% for exhibitor in exhibitor_details %}
|
||||
{% set exhibitor_doc = frappe.get_doc("Exhibitor Registration", exhibitor.exhibitor) %}
|
||||
<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>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{%- if cta_link -%}
|
||||
<div class="event-btn"><a href={{cta_link}} class="btn btn-primary ">Become an Exhibitor</a></div>
|
||||
{%- endif -%}
|
||||
<div class="courses-header">
|
||||
<span>{{ title }}</span>
|
||||
{% set cta_link = "/exhibitor-registration" if frappe.session.user != "Guest" else
|
||||
"/login?redirect_to=exhibitor-registration" %}
|
||||
<a href={{cta_link}} class="button is-primary pull-right">Become an Exhibitor</a>
|
||||
</div>
|
||||
<div class="speaker-cards-parent">
|
||||
{% for exhibitor in exhibitor_details %}
|
||||
{% set exhibitor_doc = frappe.db.get_value("Exhibitor Registration", exhibitor.exhibitor, ["logo", "company"],
|
||||
as_dict=True) %}
|
||||
<div class="common-card-style flex-column exhibitor-card">
|
||||
<span>
|
||||
<img class="standard-image company-logo" src="{{exhibitor_doc.logo}}" />
|
||||
</span>
|
||||
<div class="font-weight-bold mt-5">{{exhibitor_doc.company}}</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user