Create web templates for event management

This commit is contained in:
Summayya
2021-08-17 22:31:15 +05:30
parent 83a2f42df9
commit 8dbdabd52c
76 changed files with 1816 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
<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>
<div class="event-btn"><a href={{cta_link}} class="btn btn-primary ">Become an Exhibitor</a></div>
</div>
</div>

View File

@@ -0,0 +1,50 @@
{
"__unsaved": 1,
"creation": "2021-08-13 15:05:41.606772",
"docstatus": 0,
"doctype": "Web Template",
"fields": [
{
"fieldname": "title",
"fieldtype": "Data",
"label": "Title",
"reqd": 0
},
{
"fieldname": "subtitle",
"fieldtype": "Data",
"label": "Subtitle",
"reqd": 0
},
{
"__islocal": 1,
"__unsaved": 1,
"fieldname": "cta_link",
"fieldtype": "Data",
"label": "CTA Link",
"reqd": 0
},
{
"fieldname": "exhibitor_details",
"fieldtype": "Table Break",
"label": "Exhibitor Details",
"reqd": 0
},
{
"fieldname": "exhibitor",
"fieldtype": "Link",
"label": "Exhibitor",
"options": "Exhibitor Registration",
"reqd": 0
}
],
"idx": 0,
"modified": "2021-08-17 11:44:49.998871",
"modified_by": "Administrator",
"module": "Event Management",
"name": "Exhibitor Section",
"owner": "Administrator",
"standard": 1,
"template": "",
"type": "Section"
}

View File

@@ -0,0 +1,46 @@
{% set thumbnail_url = 'https://img.youtube.com/vi/JmOJtYW-0GI/maxresdefault.jpg' %}
<div class="courses-header">{{title}}</div>
<div class="cards-parent">
<div class="common-card-style talk-card mt-5">
<div
class="course-image"
style="background-image: url({{thumbnail_url}})"
>
<div class="course-tags"></div>
</div>
<div class="course-card-content">
<div class="course-card-meta muted-text">
<span> {{topic}} </span>
</div>
<div class="course-card-title">{{topic_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="https://secure.gravatar.com/avatar/eeca4f691bffd042fc17aea885c4b439?d=404&amp;s=200"
title={{name}}
/>
</span>
</a>
<span class="course-instructor"> {{name}} </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_url}}"
></a>
</div>
</div>
</div>

View File

@@ -0,0 +1,89 @@
{
"__unsaved": 1,
"creation": "2021-08-13 11:34:07.611034",
"docstatus": 0,
"doctype": "Web Template",
"fields": [
{
"fieldname": "title",
"fieldtype": "Data",
"label": "Title",
"reqd": 0
},
{
"fieldname": "subtitle",
"fieldtype": "Data",
"label": "Subtitle",
"reqd": 0
},
{
"fieldname": "talk_details",
"fieldtype": "Table Break",
"label": "Talk Details",
"reqd": 0
},
{
"fieldname": "thumbnail",
"fieldtype": "Attach Image",
"label": "Thumbnail",
"reqd": 0
},
{
"fieldname": "thumbnail_url",
"fieldtype": "Data",
"label": "Thumbnail URL",
"reqd": 0
},
{
"fieldname": "topic",
"fieldtype": "Data",
"label": "Topic",
"reqd": 0
},
{
"fieldname": "topic_title",
"fieldtype": "Data",
"label": "Title",
"reqd": 0
},
{
"fieldname": "talk_url",
"fieldtype": "Data",
"label": "Talk URL",
"reqd": 0
},
{
"fieldname": "speaker_details",
"fieldtype": "Section Break",
"label": "Speaker Details",
"reqd": 0
},
{
"fieldname": "name",
"fieldtype": "Data",
"label": "Name",
"reqd": 0
},
{
"fieldname": "image",
"fieldtype": "Attach Image",
"label": "Image",
"reqd": 0
},
{
"fieldname": "cta_label",
"fieldtype": "Data",
"label": "CTA Label",
"reqd": 0
}
],
"idx": 0,
"modified": "2021-08-13 23:02:42.424577",
"modified_by": "Administrator",
"module": "Event Management",
"name": "Previous Talk",
"owner": "Administrator",
"standard": 1,
"template": "",
"type": "Section"
}

View File

@@ -0,0 +1,76 @@
{% set schedule_docs = frappe.get_all("Schedule", fields =["speaker", "slot"]) %}
{% set slot_data = {} %}
{% for schedule in schedule_docs %}
{% set speaker = frappe.get_doc("Speaker Registration", schedule.speaker) %}
{% set slot = frappe.get_doc("Slot", schedule.slot) %}
<div class="hide">{{ slot_data.setdefault(slot.date, []).append({
"slot": slot.name,
"start_time": slot.start_time,
"end_time": slot.end_time,
"speaker": speaker.name,
"picture": speaker.picture,
"about": speaker.about,
"title": speaker.title,
"full_name": speaker.full_name
}) }}</div>
{% endfor %}
<div class="common-page-style">
<div class="container">
<div class="course-content-parent">
<div class="course-details-outline">
<div class="course-home-outline">
<div class="course-home-headings">
{{title}}
</div>
<div class="coure-outline">
<div>
{% for day in slot_data %}
<div class="small-title chapter-title" data-target="#apps-sites-and-bench"
data-toggle="collapse" aria-expanded="false">
<img class="chapter-icon" src="/assets/community/icons/chevron-right.svg" />
{{day}}
</div>
<div class="card-divider"></div>
</div>
{% endfor %}
</div>
</div>
<div>
{% for day in slot_data %}
<div class="course-details-outline">
<div class="course-home-headings">{{day}}</div>
<div class="coure-outline">
{% for slot in slot_data[day] %}
<div class="schedule-container">
<div class="schedule-inner-container">
<div class="schedule-slot">
{{ frappe.format(slot.start_time, {'fieldtype': 'Time'})}} - {{
frappe.format(slot.end_time, {'fieldtype': 'Time'}) }}
</div>
<div class="schedule-title">{{slot.title}}</div>
<span class="avatar avatar-medium avatar-medium-schedule">
<img class="avatar-frame" src="{{slot.picture}}" /></span>
</div>
<div class="schedule-info">
<p>{{slot.about}}</p>
<span class="info-speaker-avatar">
<span class="info-avatar avatar avatar-small">
<img class="avatar-frame standard-image" src="{{slot.picture}}" />
</span>
<h6 class="info-speaker">{{slot.full_name}}</h6>
</span>
</div>
</div>
<div class="card-divider"></div>
{% endfor %}
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,42 @@
{
"__unsaved": 1,
"creation": "2021-08-17 16:43:49.506200",
"docstatus": 0,
"doctype": "Web Template",
"fields": [
{
"fieldname": "title",
"fieldtype": "Data",
"label": "Title",
"reqd": 0
},
{
"fieldname": "subtitle",
"fieldtype": "Data",
"label": "Subtitle",
"reqd": 0
},
{
"fieldname": "schedule_details",
"fieldtype": "Table Break",
"label": "schedule_details",
"reqd": 0
},
{
"fieldname": "schedule",
"fieldtype": "Link",
"label": "Schedule",
"options": "Schedule",
"reqd": 0
}
],
"idx": 0,
"modified": "2021-08-17 16:47:40.356368",
"modified_by": "Administrator",
"module": "Event Management",
"name": "Schedule Section",
"owner": "Administrator",
"standard": 1,
"template": "",
"type": "Section"
}

View File

@@ -0,0 +1,48 @@
<div class="common-page-style">
<div class="container">
<div class="course-content-parent">
<div class="course-details-outline">
<div class="course-home-headings">{{title}}</div>
<div class="coure-outline">
<div>
{% for day in slot_data %}
<div class="small-title chapter-title" data-target="#apps-sites-and-bench"
data-toggle="collapse" aria-expanded="false">
<img class="chapter-icon" src="/assets/community/icons/chevron-right.svg" />
{{day}}
</div>
<div class="card-divider"></div>
</div>
</div>
</div>
<div>
<div class="course-details-outline">
<div class="course-home-headings">{{day}}</div>
<div class="coure-outline">
{% for slot in slot_data[day] %}
<div class="schedule-container">
<div class="schedule-slot">
{{ frappe.format(slot.start_time, {'fieldtype': 'Time'})}} - {{
frappe.format(slot.end_time, {'fieldtype': 'Time'}) }}
</div>
<div class="schedule-title">{{slot.title}}</div>
<span class="avatar avatar-medium avatar-medium-schedule">
<img class="avatar-frame" src="{{slot.picture}}" /></span>
<button class="btn btn-primary schedule-info-btn" onclick="openInfo()">
<img class="drop-down-icon" src="/assets/community/icons/down-arrow-white.svg" />
</button>
</div>
<div class="schedule-info hide">
<p>{{slot.about}}</p>
</div>
<div class="card-divider"></div>
{% endfor %}
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>

View File

@@ -0,0 +1,21 @@
<div class="section-with-cards">
<h1 class="course-home-headings">{{section_title}}</h1>
<div class="speaker-cards-parent">
{% for speaker in speaker_details %}
{% set speaker_doc = frappe.get_doc("Speaker Registration", speaker.speaker) %}
<div class="common-card-style member-card talk-card">
<span class="avatar avatar-large">
<img class="avatar-frame" src="{{speaker_doc.picture}}" />
</span>
<div class="small-title talk-title mt-5">
{{ speaker_doc.full_name }}
</div>
<div class="small-title mt-5 bb">{{speaker_doc.job_title}}</div>
<div class="small-title company-name">{{speaker_doc.company}}</div>
</div>
{% endfor %}
</div>
<div class="event-btn"><a href={{cta_link}} class="btn btn-primary ">Become a Speaker</a></div>
</div>

View File

@@ -0,0 +1,49 @@
{
"__unsaved": 1,
"creation": "2021-08-12 21:15:14.492000",
"docstatus": 0,
"doctype": "Web Template",
"fields": [
{
"fieldname": "section_title",
"fieldtype": "Data",
"label": "Section Title",
"reqd": 1
},
{
"fieldname": "subtitle",
"fieldtype": "Data",
"label": "Subtitle",
"reqd": 0
},
{
"__unsaved": 1,
"fieldname": "cta_link",
"fieldtype": "Data",
"label": "CTA Link",
"reqd": 0
},
{
"fieldname": "speaker_details",
"fieldtype": "Table Break",
"label": "Speaker Details",
"reqd": 0
},
{
"fieldname": "speaker",
"fieldtype": "Link",
"label": "Speaker",
"options": "Speaker Registration",
"reqd": 0
}
],
"idx": 0,
"modified": "2021-08-17 11:13:58.991190",
"modified_by": "Administrator",
"module": "Event Management",
"name": "Speaker Section",
"owner": "Administrator",
"standard": 1,
"template": "",
"type": "Section"
}