-
Notifications
You must be signed in to change notification settings - Fork 2
/
website_event.xml
54 lines (48 loc) · 2.33 KB
/
website_event.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="event_organizer" inherit_id="website_event.event_left_column"
active="True" customize_show="True" name="Filter by Organizer">
<xpath expr="//div[@id='left_column']" position="inside">
<ul class="nav nav-pills flex-column mt32">
<t t-foreach="organizers" t-as="organizer">
<li t-if="organizer['organizer_id']"
class="nav-item">
<a t-attf-href="/event?{{ keep_query('country', 'date', 'type', organizer=organizer['organizer_id'][0])}}"
t-attf-class="nav-link #{searches.get('organizer') == str(organizer['organizer_id'] and organizer['organizer_id'][0]) and 'active' or ''}">
<t t-esc="organizer['organizer_id'][1]"/>
<span class="badge pull-right"> <t t-esc="organizer['organizer_id_count']"/></span>
</a>
</li>
</t>
</ul>
</xpath>
</template>
<template id="event_left_column" inherit_id="website_event.event_left_column">
<xpath expr="//a[contains(@t-attf-href,'date=date[0]')]" position="attributes">
<attribute name="t-attf-href">
/event?{{ keep_query('country', 'type', 'organizer', date=date[0]) }}
</attribute>
</xpath>
</template>
<template id="event_category" inherit_id="website_event.event_category" name="Filter by Category Organizer">
<xpath expr="//a[contains(@t-attf-href,'type=type')]" position="attributes">
<attribute name="t-attf-href">
/event?{{ keep_query('country', 'date', 'organizer', type=type['event_type_id'][0]) }}
</attribute>
</xpath>
</template>
<template id="event_location" inherit_id="website_event.event_location" name="Filter by Location Organizer">
<xpath expr="//a[contains(@t-attf-href,'country_id')]" position="attributes">
<attribute name="t-attf-href">
/event?{{ keep_query('date', 'type', 'organizer', country=country['country_id'][0]) }}
</attribute>
</xpath>
</template>
<template id="index" inherit_id="website_event.index" name="Index Organizer">
<xpath expr="//ol[hasclass('breadcrumb')]" position="inside">
<li t-if="current_organizer">
<t t-esc="current_organizer"/>
</li>
</xpath>
</template>
</odoo>