Template for Previous content

This commit is contained in:
Summayya
2021-08-18 11:37:04 +05:30
parent 8dbdabd52c
commit ace74febc7
18 changed files with 245 additions and 189 deletions

View File

@@ -1,28 +1,27 @@
{% set schedule_docs = frappe.get_all("Schedule", fields =["speaker", "slot"]) %}
{% set schedule_docs = frappe.get_all("Schedule", fields =["speaker", "slot"], filters={
'event': event
},) %}
{% 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 %}
{% 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="courses-header">{{title}}</div>
<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 %}
@@ -44,27 +43,26 @@
{% 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 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-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">
<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>
<div class="card-divider"></div>
{% endfor %}
</div>
</div>
{% endfor %}
@@ -73,4 +71,4 @@
</div>
</div>
</div>
</div>
</div>

View File

@@ -8,7 +8,7 @@
"fieldname": "title",
"fieldtype": "Data",
"label": "Title",
"reqd": 0
"reqd": 1
},
{
"fieldname": "subtitle",
@@ -17,21 +17,16 @@
"reqd": 0
},
{
"fieldname": "schedule_details",
"fieldtype": "Table Break",
"label": "schedule_details",
"reqd": 0
},
{
"fieldname": "schedule",
"__unsaved": 1,
"fieldname": "event",
"fieldtype": "Link",
"label": "Schedule",
"options": "Schedule",
"reqd": 0
"label": "Event",
"options": "Event Details",
"reqd": 1
}
],
"idx": 0,
"modified": "2021-08-17 16:47:40.356368",
"modified": "2021-08-18 10:13:49.300196",
"modified_by": "Administrator",
"module": "Event Management",
"name": "Schedule Section",