|
@ -49,33 +49,66 @@ |
|
|
<template id="kalachakra.event_description_full" inherit_id="website_event.event_description_full"> |
|
|
<template id="kalachakra.event_description_full" inherit_id="website_event.event_description_full"> |
|
|
|
|
|
|
|
|
<xpath expr="//span[@itemprop='description']" position="before"> |
|
|
<xpath expr="//span[@itemprop='description']" position="before"> |
|
|
<t t-if="event.media_session_ids"> |
|
|
|
|
|
<h6>Media sessions recording :</h6> |
|
|
|
|
|
<t t-foreach="event.media_session_ids.sorted(key=lambda r: r.sequence)" t-as="media_session"> |
|
|
|
|
|
<h6 t-esc="media_session.description"></h6> |
|
|
|
|
|
<t t-if="media_session.media_link_ids"> |
|
|
|
|
|
|
|
|
<h6>Media sessions recording :</h6> |
|
|
|
|
|
|
|
|
|
|
|
<t t-if="event.teaching_day_ids"> |
|
|
|
|
|
|
|
|
|
|
|
<t t-foreach="event.teaching_day_ids.sorted(key=lambda r: r.sequence)" t-as="t_day"> |
|
|
|
|
|
|
|
|
|
|
|
<t t-if="t_day.teaching_session_ids"> |
|
|
<table class="table" style="font-size: smaller;"> |
|
|
<table class="table" style="font-size: smaller;"> |
|
|
<tr> |
|
|
<tr> |
|
|
<th>date</th> |
|
|
|
|
|
<th>description</th> |
|
|
|
|
|
<th>start time</th> |
|
|
|
|
|
<th style="width: 10%;"> FR link</th> |
|
|
|
|
|
<th style="width: 10%;"> EN link</th> |
|
|
|
|
|
<th>format</th> |
|
|
|
|
|
<th>duration</th> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<td colspan="3"><span t-esc="t_day.day_teaching"/></td> |
|
|
|
|
|
<td colspan="3"><span t-esc="t_day.day_teaching"/></td> |
|
|
</tr> |
|
|
</tr> |
|
|
<t t-foreach="media_session.media_link_ids.sorted(key=lambda r: r.date_recording)" t-as="media"> |
|
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
<td>Session</td> |
|
|
|
|
|
<td colspan="2">En français</td> |
|
|
|
|
|
<td colspan="2">In english</td> |
|
|
|
|
|
<td>Session</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td></td> |
|
|
|
|
|
<td>Audio</td> |
|
|
|
|
|
<td>Video</td> |
|
|
|
|
|
<td>Audio</td> |
|
|
|
|
|
<td>Video</td> |
|
|
|
|
|
<td></td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<t t-foreach="t_day.teaching_session_ids" t-as="media"> |
|
|
<tr> |
|
|
<tr> |
|
|
<td ><span t-esc="media.date_recording" /></td> |
|
|
|
|
|
<td><span t-esc="media.description" /></td> |
|
|
|
|
|
<td><span t-esc="media.start_time_recording" /></td> |
|
|
|
|
|
<td><a t-attf-href="#{media.link_fr}"><span>FR</span></a></td> |
|
|
|
|
|
<td><a t-attf-href="#{media.link_fr}"><span>EN</span></a></td> |
|
|
|
|
|
<td><span t-esc="media.format_recording" /></td> |
|
|
|
|
|
<td><span t-esc="media.duration" /></td> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<td><span t-esc="media.description_fr" /></td> |
|
|
|
|
|
<t t-if="media.link_audio_fr"> |
|
|
|
|
|
<td><a t-attf-href="#{media.link_audio_fr}"><span>Audio FR</span></a></td> |
|
|
|
|
|
</t> |
|
|
|
|
|
<t t-if="not media.link_audio_fr"> |
|
|
|
|
|
<td> |
|
|
|
|
|
</td> |
|
|
|
|
|
</t> |
|
|
|
|
|
<t t-if="media.link_video_fr"> |
|
|
|
|
|
<td><a t-attf-href="#{media.link_video_fr}"><span>Video FR</span></a></td> |
|
|
|
|
|
</t> |
|
|
|
|
|
<t t-if="not media.link_video_fr"> |
|
|
|
|
|
<td> |
|
|
|
|
|
</td> |
|
|
|
|
|
</t> |
|
|
|
|
|
|
|
|
|
|
|
<t t-if="media.link_audio_en"> |
|
|
|
|
|
<td><a t-attf-href="#{media.link_audio_en}"><span>Audio EN</span></a></td> |
|
|
|
|
|
</t> |
|
|
|
|
|
<t t-if="not media.link_audio_en"> |
|
|
|
|
|
<td> |
|
|
|
|
|
</td> |
|
|
|
|
|
</t> |
|
|
|
|
|
<t t-if="media.link_video_en"> |
|
|
|
|
|
<td><a t-attf-href="#{media.link_video_en}"><span>Video EN</span></a></td> |
|
|
|
|
|
</t> |
|
|
|
|
|
<t t-if="not media.link_video_en"> |
|
|
|
|
|
<td> |
|
|
|
|
|
</td> |
|
|
|
|
|
</t> |
|
|
|
|
|
|
|
|
|
|
|
<td><span t-esc="media.description_en" /></td> |
|
|
|
|
|
|
|
|
</tr> |
|
|
</tr> |
|
|
</t> |
|
|
</t> |
|
@ -83,8 +116,14 @@ |
|
|
</t> |
|
|
</t> |
|
|
<br></br> |
|
|
<br></br> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</t> |
|
|
</t> |
|
|
</t> |
|
|
</t> |
|
|
|
|
|
<t t-if="event.teaching_html_content_records"> |
|
|
|
|
|
<div> |
|
|
|
|
|
<t t-raw="event.teaching_html_content_records"/> |
|
|
|
|
|
</div> |
|
|
|
|
|
</t> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -103,7 +142,9 @@ |
|
|
<xpath expr="//div[3][@class='o_wevent_sidebar_block']" position="replace"> |
|
|
<xpath expr="//div[3][@class='o_wevent_sidebar_block']" position="replace"> |
|
|
</xpath> |
|
|
</xpath> |
|
|
<xpath expr="//div[1][@class='o_wevent_sidebar_block']" position="replace"> |
|
|
<xpath expr="//div[1][@class='o_wevent_sidebar_block']" position="replace"> |
|
|
|
|
|
|
|
|
<div class="o_wevent_sidebar_block_kala"> |
|
|
<div class="o_wevent_sidebar_block_kala"> |
|
|
|
|
|
<t t-if="not event.individual_booking_event"> |
|
|
<span class="o_wevent_sidebar_title kala_evt1">Date & Time</span> |
|
|
<span class="o_wevent_sidebar_title kala_evt1">Date & Time</span> |
|
|
<div class="d-flex"> |
|
|
<div class="d-flex"> |
|
|
<span t-field="event.with_context(tz=event.date_tz).date_begin" class="my-1 mr-1 kala_evt1" t-options="{'date_only': 'true', 'format': 'EEEE'}"/> |
|
|
<span t-field="event.with_context(tz=event.date_tz).date_begin" class="my-1 mr-1 kala_evt1" t-options="{'date_only': 'true', 'format': 'EEEE'}"/> |
|
@ -134,7 +175,9 @@ |
|
|
<a t-att-href="google_url" class="dropdown-item" target="_blank">Google</a> |
|
|
<a t-att-href="google_url" class="dropdown-item" target="_blank">Google</a> |
|
|
</div> |
|
|
</div> |
|
|
</div>--> |
|
|
</div>--> |
|
|
|
|
|
</t> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
</xpath> |
|
|
</xpath> |
|
|
<xpath expr="//div[2][@class='o_wevent_sidebar_block']" position="replace"> |
|
|
<xpath expr="//div[2][@class='o_wevent_sidebar_block']" position="replace"> |
|
|
<div t-if="event.address_id and not event.online_only" class="o_wevent_sidebar_block_kala"> |
|
|
<div t-if="event.address_id and not event.online_only" class="o_wevent_sidebar_block_kala"> |
|
|