refactor: renamed app to school
This commit is contained in:
0
school/event_management/web_template/__init__.py
Normal file
0
school/event_management/web_template/__init__.py
Normal file
@@ -0,0 +1,28 @@
|
||||
<div class="section-with-cards">
|
||||
<h1 class="course-home-headings">{{title}}</h1>
|
||||
{%- if subtitle -%}
|
||||
<p class="section-description">{{ subtitle }}</p>
|
||||
{%- endif -%}
|
||||
<div>
|
||||
<div class="mentors-section">
|
||||
{% for exhibitor in exhibitor_details %}
|
||||
{% set exhibitor_doc = frappe.db.get_value("Exhibitor", exhibitor.exhibitor, ["user", "company"], as_dict= True)
|
||||
%}
|
||||
{% set member = frappe.get_doc("User", exhibitor_doc.user) %}
|
||||
|
||||
<div class="common-card-style member-card">
|
||||
{{ widgets.Avatar(member=member, avatar_class="avatar-large")}}
|
||||
<div class="small-title member-card-title">
|
||||
{{ member.full_name }}
|
||||
</div>
|
||||
<div class="small-title">
|
||||
{{exhibitor_doc.company}}
|
||||
</div>
|
||||
<a class="stretched-link" href=""></a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="event-btn"><a href="/exhibitor-registration?new=1&user={{ frappe.session.user }}&event={{ event }}"
|
||||
class="btn btn-primary ">Become an Exhibitor</a></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"__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
|
||||
},
|
||||
{
|
||||
"fieldname": "event",
|
||||
"fieldtype": "Link",
|
||||
"label": "Event",
|
||||
"options": "Event Details",
|
||||
"reqd": 0
|
||||
},
|
||||
{
|
||||
"fieldname": "exhibitor_details",
|
||||
"fieldtype": "Table Break",
|
||||
"label": "Exhibitor Details",
|
||||
"reqd": 0
|
||||
},
|
||||
{
|
||||
"fieldname": "exhibitor",
|
||||
"fieldtype": "Link",
|
||||
"label": "Exhibitor",
|
||||
"options": "Exhibitor",
|
||||
"reqd": 0
|
||||
}
|
||||
],
|
||||
"idx": 1,
|
||||
"modified": "2021-08-20 16:28:22.779057",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Event Management",
|
||||
"name": "Exhibitor Section",
|
||||
"owner": "Administrator",
|
||||
"standard": 1,
|
||||
"template": "",
|
||||
"type": "Section"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
<div class="section-with-cards">
|
||||
<h1 class="course-home-headings">{{title}}</h1>
|
||||
</div>
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"__unsaved": 1,
|
||||
"creation": "2021-08-20 08:12:29.549625",
|
||||
"docstatus": 0,
|
||||
"doctype": "Web Template",
|
||||
"fields": [
|
||||
{
|
||||
"fieldname": "title",
|
||||
"fieldtype": "Data",
|
||||
"label": "Title",
|
||||
"reqd": 0
|
||||
},
|
||||
{
|
||||
"fieldname": "subtitle",
|
||||
"fieldtype": "Data",
|
||||
"label": "Subtitle",
|
||||
"reqd": 0
|
||||
},
|
||||
{
|
||||
"__unsaved": 1,
|
||||
"fieldname": "hosts",
|
||||
"fieldtype": "Table Break",
|
||||
"label": "Hosts",
|
||||
"reqd": 0
|
||||
},
|
||||
{
|
||||
"fieldname": "host",
|
||||
"fieldtype": "Link",
|
||||
"label": "Host",
|
||||
"options": "Host",
|
||||
"reqd": 0
|
||||
}
|
||||
],
|
||||
"idx": 0,
|
||||
"modified": "2021-08-20 08:16:25.805456",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Event Management",
|
||||
"name": "Host Section",
|
||||
"owner": "Administrator",
|
||||
"standard": 1,
|
||||
"template": "",
|
||||
"type": "Section"
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<div class="section-with-cards">
|
||||
<h1 class="course-home-headings">{{section_title}}</h1>
|
||||
{%- if subtitle -%}
|
||||
<p class="section-description">{{ subtitle }}</p>
|
||||
{%- endif -%}
|
||||
<div class="mentors-section">
|
||||
{% for speaker in speaker_details %}
|
||||
{% set speaker_doc = frappe.db.get_value("Speaker", speaker.speaker, ["user", "company"], as_dict= True)
|
||||
%}
|
||||
{% set member = frappe.get_doc("User", speaker_doc.user) %}
|
||||
|
||||
<div class="common-card-style member-card">
|
||||
{{ widgets.Avatar(member=member, avatar_class="avatar-large") }}
|
||||
|
||||
<div class="small-title member-card-title">
|
||||
{{ member.full_name }}
|
||||
</div>
|
||||
<div class="small-title">
|
||||
{{speaker_doc.company}}
|
||||
</div>
|
||||
<a class="stretched-link" href=""></a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="event-btn">
|
||||
<a href='/propose-talk?new=1&event={{ event }}' class="btn btn-primary ">Propose a Talk</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -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
|
||||
},
|
||||
{
|
||||
"fieldname": "event_",
|
||||
"fieldtype": "Link",
|
||||
"label": "Event ",
|
||||
"options": "Event Details",
|
||||
"reqd": 0
|
||||
},
|
||||
{
|
||||
"fieldname": "speaker_details",
|
||||
"fieldtype": "Table Break",
|
||||
"label": "Speaker Details",
|
||||
"reqd": 0
|
||||
},
|
||||
{
|
||||
"fieldname": "speaker",
|
||||
"fieldtype": "Link",
|
||||
"label": "Speaker",
|
||||
"options": "Speaker",
|
||||
"reqd": 0
|
||||
}
|
||||
],
|
||||
"idx": 1,
|
||||
"modified": "2021-08-20 10:59:54.965714",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Event Management",
|
||||
"name": "Speaker Section",
|
||||
"owner": "Administrator",
|
||||
"standard": 1,
|
||||
"template": "",
|
||||
"type": "Section"
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
<div class="section-with-cards">
|
||||
<div class="course-home-headings">{{title}}</div>
|
||||
{%- if subtitle -%}
|
||||
<p class="section-description">{{ subtitle }}</p>
|
||||
{%- endif -%}
|
||||
<div class="cards-parent">
|
||||
|
||||
{% for talk in talk_details %}
|
||||
|
||||
{% set talk_doc = frappe.db.get_value('Talk', talk.talk,
|
||||
["title", "category", "speaker", "url", "thumbnail", "date", "start_time", "end_time"], as_dict=True) %}
|
||||
{% set speaker_info = frappe.db.get_value("Speaker", talk_doc.speaker, ["user"], as_dict=True) %}
|
||||
{% set member = frappe.get_doc("User", speaker_info.user) %}
|
||||
|
||||
{% if talk_doc.thumbnail %}
|
||||
{% set thumbnail = talk_doc.thumbnail %}
|
||||
{% else %}
|
||||
{% set video_id = talk_doc.url and talk_doc.url.split("/")[-1] %}
|
||||
{% set thumbnail = video_id and "https://img.youtube.com/vi/" + video_id + "/maxresdefault.jpg" %}
|
||||
{% endif %}
|
||||
|
||||
<div class="common-card-style flex-column">
|
||||
<div class="course-image {% if not thumbnail %}default-image{% endif %}" {% if thumbnail %}
|
||||
style="background-image: url( {{ thumbnail }} );" {% endif %}>
|
||||
<div class="course-tags">
|
||||
{% for tag in talk_doc.category.split(",") %}
|
||||
<div class="course-card-pills">{{ tag }}</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% if not thumbnail %}
|
||||
<div class="default-image-text">{{ talk_doc.title[0] }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="course-card-content">
|
||||
<div class="course-card-content"></div>
|
||||
<div class="course-card-title">{{talk_doc.title}}</div>
|
||||
<div class="muted-text mb-3">
|
||||
{% if talk_doc.date %}
|
||||
<span>
|
||||
<img src="/assets/community/icons/calendar.svg">
|
||||
{{ frappe.utils.format_date(talk_doc.date, "medium") }}
|
||||
</span>
|
||||
{% endif %}
|
||||
<span class="pull-right">
|
||||
{% if talk_doc.start_time %}
|
||||
<span class="mr-3">
|
||||
<b>From:</b>
|
||||
{{ frappe.utils.format_time(talk_doc.start_time, "HH:mm") }}
|
||||
</span>
|
||||
{% endif %}
|
||||
{% if talk_doc.end_time %}
|
||||
<span>
|
||||
<b>To:</b>
|
||||
{{ frappe.utils.format_time(talk_doc.end_time, "HH:mm") }}
|
||||
</span>
|
||||
{% endif %}
|
||||
</span>
|
||||
</div>
|
||||
<div class="card-divider"></div>
|
||||
<div class="course-card-meta-2">
|
||||
{{ widgets.Avatar(member=member, avatar_class="avatar-small")}}
|
||||
<span class="course-instructor"> {{ member.full_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_doc.url}}"></a>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"__unsaved": 1,
|
||||
"creation": "2021-08-13 11:34:07.611034",
|
||||
"docstatus": 0,
|
||||
"doctype": "Web Template",
|
||||
"fields": [
|
||||
{
|
||||
"fieldname": "title",
|
||||
"fieldtype": "Data",
|
||||
"label": "Title",
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "subtitle",
|
||||
"fieldtype": "Data",
|
||||
"label": "Subtitle",
|
||||
"reqd": 0
|
||||
},
|
||||
{
|
||||
"fieldname": "event",
|
||||
"fieldtype": "Link",
|
||||
"label": "Event",
|
||||
"options": "Event Details",
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "talk_details",
|
||||
"fieldtype": "Table Break",
|
||||
"label": "Talk Details",
|
||||
"reqd": 0
|
||||
},
|
||||
{
|
||||
"fieldname": "talk",
|
||||
"fieldtype": "Link",
|
||||
"label": "Talk",
|
||||
"options": "Talk",
|
||||
"reqd": 0
|
||||
}
|
||||
],
|
||||
"idx": 1,
|
||||
"modified": "2021-08-20 10:58:45.556636",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Event Management",
|
||||
"name": "Talk Section",
|
||||
"owner": "Administrator",
|
||||
"standard": 1,
|
||||
"template": "",
|
||||
"type": "Section"
|
||||
}
|
||||
Reference in New Issue
Block a user