<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
<!-- <template id="kalachakra.event_category_tag" inherit_id="website_event.index_topbar" active="True" customize_show="True" name="Filter by Tags">
|
|
<xpath expr="//ul[hasclass('o_wevent_index_topbar_filters')]" position="inside">
|
|
<t t-foreach="categories" t-as="category">
|
|
<li t-if="category.tag_ids and any(tag.color for tag in category.tag_ids)" class="nav-item dropdown mr-2 my-1">
|
|
<a href="#" role="button" class="btn dropdown-toggle" data-toggle="dropdown">
|
|
<i class="fa fa-folder-open"/>
|
|
<t t-esc="category.name"/>
|
|
</a>
|
|
<div class="dropdown-menu">
|
|
<t t-foreach="category.tag_ids" t-as="tag">
|
|
<a t-if="tag.color"
|
|
t-att-href="'/event?tags='+tag.name"
|
|
t-attf-class="dropdown-item d-flex align-items-center justify-content-between #{'active' if tag in search_tags else ''}">
|
|
<t t-esc="tag.name"/>
|
|
</a>
|
|
</t>
|
|
</div>
|
|
</li>
|
|
</t>
|
|
</xpath>
|
|
</template> -->
|
|
|
|
<template id="kalachakra.event_category_tag" inherit_id="website_event.index_topbar" active="True" customize_show="True" name="Filter by Tags">
|
|
<xpath expr="//ul[hasclass('o_wevent_index_topbar_filters')]" position="inside">
|
|
|
|
<li class="nav-item dropdown mr-2 my-1">
|
|
<a href="#" role="button" class="btn dropdown-toggle" data-toggle="dropdown">
|
|
<i class="fa fa-folder-open"/>
|
|
tags
|
|
</a>
|
|
<div class="dropdown-menu">
|
|
<t t-foreach="categories" t-as="category">
|
|
<t t-foreach="category.tag_ids" t-as="tag">
|
|
<a t-if="tag.color"
|
|
t-att-href="'/event?tags='+tag.name"
|
|
t-attf-class="dropdown-item d-flex align-items-center justify-content-between #{'active' if tag in search_tags else ''}">
|
|
<t t-esc="category.name+':'+tag.name"/>
|
|
</a>
|
|
</t>
|
|
</t>
|
|
</div>
|
|
</li>
|
|
|
|
</xpath>
|
|
</template>
|
|
|
|
|
|
<template id="kalachakra.events_list" inherit_id="website_event.events_list">
|
|
<xpath expr="//h5[1]" position="replace">
|
|
<h5 t-attf-class="card-title mt-2 mb-0 #{(not event.website_published) and 'text-danger'}">
|
|
<span t-field="event.name" itemprop="name"/>
|
|
</h5>
|
|
|
|
</xpath>
|
|
<xpath expr="//time[@itemprop='startDate']" position="after">
|
|
|
|
<t t-if="event.booking_event">
|
|
<time itemprop="endDate" t-att-datetime="event.date_end">
|
|
<span t-field="event.with_context(tz=event.date_tz).date_end" t-options="{'date_only': 'true', 'format': 'long'}"/>
|
|
</time>
|
|
|
|
<br/>
|
|
<font style="color: rgb(255, 0, 0); font-size: 14px;">Non adhérent : <span t-esc="int(event.booking_price)"/> €</font>
|
|
<font style="color: rgb(255, 0, 0); font-size: 14px;"> Adhérent : <span t-esc="int(event.booking_member_price)"/> €</font>
|
|
<br/><font style="color: rgb(255, 0, 0); font-size: 14px;">Soutien : <span t-esc="int(event.booking_super_member_price)"/> €</font>
|
|
</t>
|
|
|
|
|
|
<t t-if="not event.booking_event">
|
|
|
|
|
|
<t t-if="not event.free_participation">
|
|
<t t-if="event.duration==0">
|
|
<time itemprop="endDate" t-att-datetime="event.date_end">
|
|
<span t-field="event.with_context(tz=event.date_tz).date_end" t-options="{'time_only': 'true', 'format': 'short'}"/>
|
|
|
|
</time>
|
|
</t>
|
|
<t t-if="event.duration>0">
|
|
<br></br>
|
|
<time itemprop="endDate" t-att-datetime="event.date_end">
|
|
<span t-field="event.with_context(tz=event.date_tz).date_end" t-options="{'date_only': 'true', 'format': 'long'}"/>
|
|
<span t-field="event.with_context(tz=event.date_tz).date_end" t-options="{'time_only': 'true', 'format': 'short'}"/>
|
|
|
|
</time>
|
|
</t>
|
|
|
|
<br/>
|
|
<h7><font style="color: rgb(255, 0, 0);font-size: 14px;">Non adhérent : <span t-esc="int(event.participation_standard_price)"/> €</font></h7>
|
|
<h7><font style="color: rgb(255, 0, 0);font-size: 14px;">Adhérent : <span t-esc="int(event.participation_member_price)"/> €</font></h7>
|
|
<br/><h7><font style="color: rgb(255, 0, 0);font-size: 14px;">Soutien : <span t-esc="int(event.participation_super_member_price)"/> €</font></h7>
|
|
|
|
</t>
|
|
|
|
<t t-if="event.free_participation">
|
|
|
|
<t t-if="event.duration==0">
|
|
<time itemprop="endDate" t-att-datetime="event.date_end">
|
|
<span t-field="event.with_context(tz=event.date_tz).date_end" t-options="{'time_only': 'true', 'format': 'short'}"/>
|
|
|
|
</time>
|
|
</t>
|
|
<t t-if="event.duration>0">
|
|
<br></br>
|
|
<time itemprop="endDate" t-att-datetime="event.date_end">
|
|
<span t-field="event.with_context(tz=event.date_tz).date_end" t-options="{'date_only': 'true', 'format': 'long'}"/>
|
|
<span t-field="event.with_context(tz=event.date_tz).date_end" t-options="{'time_only': 'true', 'format': 'short'}"/>
|
|
|
|
</time>
|
|
</t>
|
|
|
|
<br/>
|
|
<h7><font style="color: rgb(255, 0, 0);font-size: 14px;">Participation libre</font></h7>
|
|
|
|
</t>
|
|
</t>
|
|
</xpath>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</data>
|
|
</odoo>
|