|
@ -26,11 +26,40 @@ |
|
|
<xpath expr="//*[@t-set='so_content_addition_selector']" position="inside">,.oe_country_booking_events</xpath> |
|
|
<xpath expr="//*[@t-set='so_content_addition_selector']" position="inside">,.oe_country_booking_events</xpath> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<!-- <template id="country_events_list" inherit_id="website_event.country_events_list"> |
|
|
|
|
|
<xpath expr="//span[@t-esc='event_dict['event'].name']" position="replace"> |
|
|
|
|
|
<span style="font-size: 18px;" t-esc="event_dict['event'].name" t-attf-class="#{(not event_dict['event'].website_published) and 'text-danger' or ''}"/> |
|
|
|
|
|
|
|
|
<template id="country_events_list" inherit_id="website_event.country_events_list"> |
|
|
|
|
|
<xpath expr="//div[@class='country_events_list']" position="replace"> |
|
|
|
|
|
<div class="country_events_list"> |
|
|
|
|
|
<t t-if="events"> |
|
|
|
|
|
<h6 class="o_wevent_sidebar_title"> |
|
|
|
|
|
<t t-if="country"> |
|
|
|
|
|
<i class="fa fa-flag mr-2"/>Events: <span t-esc="country.name"/> |
|
|
|
|
|
<img class="img-fluid" t-att-src="website.image_url(country, 'image')" alt=""/> |
|
|
|
|
|
</t> |
|
|
|
|
|
<t t-else=""> |
|
|
|
|
|
<i class="fa fa-globe mr-2"/>Upcoming Events |
|
|
|
|
|
</t> |
|
|
|
|
|
</h6> |
|
|
|
|
|
<ul class="list-group mb-3"> |
|
|
|
|
|
<li t-foreach="events[:5]" t-as="event_dict" class="list-group-item d-flex justify-content-between"> |
|
|
|
|
|
<a t-att-href="event_dict['url']"> |
|
|
|
|
|
<i t-if="not event_dict['event'].website_published" class="fa fa-ban text-danger mr-1" role="img" aria-label="Unpublished" title="Unpublished"/> |
|
|
|
|
|
<span t-esc="event_dict['event'].name" t-attf-class="#{(not event_dict['event'].website_published) and 'text-danger' or ''}"/> |
|
|
|
|
|
</a> |
|
|
|
|
|
<span style="font-size: 18px;" t-esc="event_dict['date']"/> |
|
|
|
|
|
</li> |
|
|
|
|
|
</ul> |
|
|
|
|
|
<div t-if="len(events) > 5"> |
|
|
|
|
|
<t t-if="country"> |
|
|
|
|
|
<a t-attf-href="/event?country=#{country.id}" class="small"><b>See all events from <span t-esc="country.name"/></b></a> |
|
|
|
|
|
</t> |
|
|
|
|
|
<t t-else=""> |
|
|
|
|
|
<a style="font-size: 18px;" href="/event" class="small"><b>View all</b></a> |
|
|
|
|
|
</t> |
|
|
|
|
|
</div> |
|
|
|
|
|
</t> |
|
|
|
|
|
</div> |
|
|
</xpath> |
|
|
</xpath> |
|
|
</template> --> |
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template id="country_booking_events_list" name="Country Booking Events List"> |
|
|
<template id="country_booking_events_list" name="Country Booking Events List"> |
|
|