<?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="tag.name"/>
|
|
</a>
|
|
</t>
|
|
</t>
|
|
</div>
|
|
</li>
|
|
|
|
</xpath>
|
|
</template>
|
|
|
|
</data>
|
|
</odoo>
|