fix: change date format
This commit is contained in:
@@ -2,7 +2,13 @@
|
|||||||
// For license information, please see license.txt
|
// For license information, please see license.txt
|
||||||
|
|
||||||
frappe.ui.form.on('Attendee Registration', {
|
frappe.ui.form.on('Attendee Registration', {
|
||||||
// refresh: function(frm) {
|
onload: function (frm) {
|
||||||
|
frm.set_query('user', function (doc) {
|
||||||
// }
|
return {
|
||||||
|
filters: {
|
||||||
|
"ignore_user_type": 1,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -2,7 +2,13 @@
|
|||||||
// For license information, please see license.txt
|
// For license information, please see license.txt
|
||||||
|
|
||||||
frappe.ui.form.on('Schedule', {
|
frappe.ui.form.on('Schedule', {
|
||||||
// refresh: function(frm) {
|
onload: function (frm) {
|
||||||
|
frm.set_query('talk', function (doc) {
|
||||||
// }
|
return {
|
||||||
|
filters: {
|
||||||
|
"status": "Approved",
|
||||||
|
}
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -2,7 +2,13 @@
|
|||||||
// For license information, please see license.txt
|
// For license information, please see license.txt
|
||||||
|
|
||||||
frappe.ui.form.on('Speaker', {
|
frappe.ui.form.on('Speaker', {
|
||||||
// refresh: function(frm) {
|
onload: function (frm) {
|
||||||
|
frm.set_query('user', function (doc) {
|
||||||
// }
|
return {
|
||||||
|
filters: {
|
||||||
|
"ignore_user_type": 1,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -7,13 +7,13 @@
|
|||||||
"engine": "InnoDB",
|
"engine": "InnoDB",
|
||||||
"field_order": [
|
"field_order": [
|
||||||
"event",
|
"event",
|
||||||
|
"speaker",
|
||||||
"topic",
|
"topic",
|
||||||
"title",
|
"title",
|
||||||
"about",
|
"about",
|
||||||
"attachment",
|
"attachment",
|
||||||
"url",
|
"url",
|
||||||
"thumbnail",
|
"thumbnail",
|
||||||
"speaker",
|
|
||||||
"name_of_the_speaker",
|
"name_of_the_speaker",
|
||||||
"status"
|
"status"
|
||||||
],
|
],
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "about",
|
"fieldname": "about",
|
||||||
"fieldtype": "Data",
|
"fieldtype": "Text",
|
||||||
"label": "About"
|
"label": "About"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -71,12 +71,12 @@
|
|||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"in_list_view": 1,
|
"in_list_view": 1,
|
||||||
"label": "Status",
|
"label": "Status",
|
||||||
"options": "Applied\nPending\nApproved\nRejected"
|
"options": "Applied\nPending\nApproved\nRejected\nPrevious Talk"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2021-08-19 15:20:07.750884",
|
"modified": "2021-08-19 16:44:58.181528",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Event Management",
|
"module": "Event Management",
|
||||||
"name": "Talk",
|
"name": "Talk",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="course-home-headings">{{title}}</div>
|
<div class="course-home-headings">{{title}}</div>
|
||||||
<div class="speaker-cards-parent">
|
<div class="speaker-cards-parent">
|
||||||
{% for video in talk_details %}
|
{% for video in talk_details %}
|
||||||
{% set video_details = frappe.get_doc('Previous Content', video.previous_content, filters={
|
{% set video_details = frappe.get_doc('Talk', video.previous_content, filters={
|
||||||
'event': event
|
'event': event
|
||||||
}) %}
|
}) %}
|
||||||
<div class="common-card-style talk-card">
|
<div class="common-card-style talk-card">
|
||||||
|
|||||||
@@ -1,21 +1,20 @@
|
|||||||
{% set schedule_docs = frappe.get_all("Schedule", fields =["speaker", "slot"], filters={
|
{% set schedule_docs = frappe.get_all("Schedule", fields =["talk", "slot"], filters={
|
||||||
'event': event
|
'event': event
|
||||||
},) %}
|
},) %}
|
||||||
{% set slot_data = {} %}
|
{% set slot_data = {} %}
|
||||||
|
|
||||||
{% for schedule in schedule_docs %}
|
{% for schedule in schedule_docs %}
|
||||||
{% set speaker = frappe.get_doc("Speaker Registration", schedule.speaker) %}
|
{% set talk = frappe.get_doc("Talk", schedule.talk) %}
|
||||||
|
{% set speaker = frappe.get_doc("Speaker", talk.speaker) %}
|
||||||
{% set slot = frappe.get_doc("Slot", schedule.slot) %}
|
{% set slot = frappe.get_doc("Slot", schedule.slot) %}
|
||||||
{% set slot_data = slot_data.setdefault(slot.date, []).append({
|
{% set slot_data = slot_data.setdefault(slot.date, []).append({
|
||||||
"slot": slot.name|string,
|
"slot": slot.name|string,
|
||||||
"start_time": slot.start_time,
|
"start_time": slot.start_time,
|
||||||
"end_time": slot.end_time,
|
"end_time": slot.end_time,
|
||||||
"speaker": speaker.name,
|
|
||||||
"picture": speaker.picture,
|
"picture": speaker.picture,
|
||||||
"about": speaker.about,
|
"about": talk.about,
|
||||||
"title": speaker.title,
|
"title": talk.title,
|
||||||
"full_name": speaker.full_name,
|
"full_name": speaker.full_name,
|
||||||
"email": speaker.email
|
|
||||||
}) %}
|
}) %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
@@ -31,7 +30,7 @@
|
|||||||
<div class="small-title chapter-title" data-target="#apps-sites-and-bench"
|
<div class="small-title chapter-title" data-target="#apps-sites-and-bench"
|
||||||
data-toggle="collapse" aria-expanded="false">
|
data-toggle="collapse" aria-expanded="false">
|
||||||
<img class="chapter-icon" src="/assets/community/icons/chevron-right.svg" />
|
<img class="chapter-icon" src="/assets/community/icons/chevron-right.svg" />
|
||||||
{{day}}
|
{{frappe.utils.format_date(day, "dd MMMM, YYYY")}}
|
||||||
</div>
|
</div>
|
||||||
<div class="card-divider"></div>
|
<div class="card-divider"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -42,8 +41,8 @@
|
|||||||
{% for day in slot_data %}
|
{% for day in slot_data %}
|
||||||
{% set outer_loop = loop %}
|
{% set outer_loop = loop %}
|
||||||
<div class="course-details-outline">
|
<div class="course-details-outline">
|
||||||
<div class="course-home-headings">{{day}}</div>
|
|
||||||
<div class="coure-outline">
|
<div class="coure-outline">
|
||||||
|
<div class="course-home-headings">{{frappe.utils.format_date(day, "dd MMMM, YYYY")}}</div>
|
||||||
{% for slot in slot_data[day] %}
|
{% for slot in slot_data[day] %}
|
||||||
<div class="schedule-container">
|
<div class="schedule-container">
|
||||||
<div class="schedule-inner-container">
|
<div class="schedule-inner-container">
|
||||||
@@ -58,21 +57,23 @@
|
|||||||
{{ frappe.format(slot.start_time, {'fieldtype': 'Time'})}} - {{
|
{{ frappe.format(slot.start_time, {'fieldtype': 'Time'})}} - {{
|
||||||
frappe.format(slot.end_time, {'fieldtype': 'Time'}) }}
|
frappe.format(slot.end_time, {'fieldtype': 'Time'}) }}
|
||||||
</div>
|
</div>
|
||||||
<div class="chapter-title small-title" data-toggle="collapse" data-target="#slot-{{loop.index}}-{{outer_loop.index}}" aria-expanded="false" aria-controls="collapseExample">
|
<div class="chapter-title small-title" data-toggle="collapse"
|
||||||
<img class="chapter-icon" src="/assets/community/icons/chevron-right.svg">
|
data-target="#slot-{{loop.index}}-{{outer_loop.index}}" aria-expanded="false"
|
||||||
</div>
|
aria-controls="collapseExample">
|
||||||
|
<img class="chapter-icon" src="/assets/community/icons/chevron-right.svg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="collapse" id="slot-{{loop.index}}-{{outer_loop.index}}">
|
||||||
|
<p class="schedule-info">{{slot.about}}</p>
|
||||||
|
</div>
|
||||||
|
<div class="card-divider"></div>
|
||||||
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
<div class="collapse" id="slot-{{loop.index}}-{{outer_loop.index}}">
|
|
||||||
<p class="schedule-info">{{slot.about}}</p>
|
|
||||||
</div>
|
|
||||||
<div class="card-divider"></div>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
</div>
|
||||||
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user