1 <?xml version="1.0" encoding="utf-8"?>
5 <template id="event_script" inherit_id="website.assets_frontend" name="Country Events Snippet Script">
6 <xpath expr="/t" position="inside">
7 <script type="text/javascript" src="/website_event/static/src/js/website_geolocation.js"></script>
11 <template id="assets_editor" inherit_id="website.assets_editor" name="Event Editor" groups="event.group_event_manager">
12 <xpath expr="." position="inside">
13 <script type="text/javascript" src="/website_event/static/src/js/website_event.editor.js"></script>
14 <script type="text/javascript" src="/website_event/static/src/js/website.tour.event.js"></script>
18 <!-- Layout add nav and footer -->
19 <template id="header_footer_custom" inherit_id="website.footer_default" name="Footer Events Link">
20 <xpath expr="//ul[@id='products']" position="inside">
21 <li><a href="/event">Events</a></li>
26 <template id="index" name="Events">
27 <t t-call="website.layout">
29 <div class="oe_structure"/>
30 <div class="container">
32 <div class="col-sm-5">
33 <ol class="breadcrumb mb0">
35 <a href="/event">Our Events</a>
37 <li t-if="current_date"><t t-esc="current_date"/></li>
38 <li t-if="current_type"><t t-esc="current_type.name"/></li>
39 <li t-if="current_country"><t t-esc="current_country.name"/></li>
41 </div><div class="col-sm-7">
42 <t t-call="website.pager" >
43 <t t-set="classname">pull-right</t>
47 <div class="row mt32 mb32">
48 <div class="col-md-9" id="middle_column">
49 <div class="text-center text-muted" t-if="not event_ids">
50 <h1>No event found</h1>
51 <t groups="base.group_website_publisher">
52 <p groups="event.group_event_manager">Use the top menu <i>'Content'</i> to create your first event.</p>
55 <ul class="media-list">
56 <li t-foreach="event_ids" t-as="event" class="media">
57 <div itemscope="itemscope" itemtype="http://schema.org/Event" class="media-body">
58 <h4 class="media-heading">
59 <a itemprop="url" t-att-class="event.state == 'done' and 'text-success'" t-attf-href="/event/#{ slug(event) }/#{(not event.menu_id) and 'register' or ''}"><span itemprop="name" t-field="event.name"> </span></a>
60 <small t-if="not event.website_published" class="label label-danger">not published</small>
63 <t t-if="event.organizer_id">
64 Organized by: <span t-field="event.organizer_id"> </span>
68 <i class="fa fa-clock-o"></i> <span itemprop="startDate" t-field="event.date_begin" t-field-options='{"hide_seconds":"True"}'> </span> <i>to</i> <span itemprop="endDate" t-field="event.date_end" t-field-options='{"hide_seconds":"True"}'> </span>
70 <div itemprop="location" t-field="event.address_id" t-field-options='{
74 <div class="text-muted" t-if="event.type">
75 <i class="fa fa-tag"></i> <span t-field="event.type"/>
81 <div class="col-md-3 oe_structure" id="right_column">
85 <div class="oe_structure"/>
90 <template id="event_right_photos" inherit_id="website_event.index" optional="disabled" name="Photos">
91 <xpath expr="//div[@id='right_column']" position="inside">
93 <div class="col-md-12 mb16">
95 <img src="/website_event/static/src/img/openerp_enterprise_of_the_year.png" class="img-rounded"/>
96 <div class="text-center"><a href="/event">Photos of Past Events</a></div>
99 <div class="col-md-12 mb16">
100 <div class="oe_demo">
101 <img src="/website_event/static/src/img/training.jpg" class="img-rounded"/>
102 <div class="text-center"><a href="/event">Our Trainings</a></div>
109 <template id="event_right_quotes" inherit_id="website_event.index" optional="disabled" name="Quotes">
110 <xpath expr="//div[@id='right_column']" position="inside">
112 <div class="col-md-12 mb16">
113 <blockquote class="oe_snippet_body">
115 Write here a quote from one of your attendees.
116 It gives confidence in your
119 <small>Author</small>
126 <template id="event_right_country_event" inherit_id="website_event.index" optional="disabled" name="Country Events">
127 <xpath expr="//div[@id='right_column']" position="inside">
129 <div class="col-md-12 mb16 mt16 country_events">
130 <div class="country_events_list">
131 <div class="text-muted text-center">
133 <i class="fa fa-flag fa-5x"></i>
135 <h1>Events from Your Country</h1>
143 <template id="event_left_column" optional="enabled" inherit_id="website_event.index" name="Filters">
144 <xpath expr="//div[@id='middle_column']" position="attributes">
145 <attribute name="class">col-md-6</attribute>
147 <xpath expr="//div[@id='middle_column']" position="before">
148 <div class="col-md-3 css_noprint" id="left_column">
149 <ul class="nav nav-pills nav-stacked">
150 <t t-foreach="dates" t-as="date">
151 <li t-att-class="searches.get('date') == date[0] and 'active' or ''" t-if="date[3] or (date[0] in ('old','all'))">
152 <a t-attf-href="/event?{{ keep_query('country', 'type', date=date[0]) }}"><t t-esc="date[1]"/>
153 <span t-if="date[3]" class="badge pull-right"><t t-esc="date[3]"/></span>
162 <template id="event_category" inherit_id="website_event.event_left_column" optional="disabled" name="Filter by Category">
163 <xpath expr="//div[@id='left_column']" position="inside">
164 <ul class="nav nav-pills nav-stacked mt32">
165 <t t-foreach="types" t-as="type">
166 <li t-if="type['type']"
167 t-att-class="searches.get('type') == str(type['type'] and type['type'][0]) and 'active' or ''">
168 <a t-attf-href="/event?{{ keep_query('country', 'date', type=type['type'][0]) }}"><t t-esc="type['type'][1]"/>
169 <span class="badge pull-right"><t t-esc="type['type_count']"/></span>
177 <template id="event_location" inherit_id="website_event.event_left_column" optional="disabled" name="Filter by Country">
178 <xpath expr="//div[@id='left_column']" position="inside">
179 <ul class="nav nav-pills nav-stacked mt32">
180 <t t-foreach="countries" t-as="country">
181 <li t-if="country['country_id']" t-att-class="searches.get('country') == str(country['country_id'] and country['country_id'][0]) and 'active' or ''">
182 <a t-attf-href="/event?{{ keep_query('type', 'data', country=country['country_id'][0]) }}"><t t-esc="country['country_id'][1]"/>
183 <span class="badge pull-right"><t t-esc="country['country_id_count']"/></span>
191 <template id="layout">
192 <t t-call="website.layout">
193 <div id="wrap" class="js_event">
194 <div class="container">
195 <div class="row mt8">
196 <div class="col-sm-7" id="event_menu">
197 <ol class="breadcrumb mb0" t-if="not event.menu_id">
198 <li><a href="/event">All Events</a></li>
199 <li t-if="event.type">
200 <a t-attf-href="/event?type=#{event.type.id}" t-esc="event.type.name"/>
202 <li t-if="event.country_id">
203 <a t-attf-href="/event?country=#{event.country_id.id}" t-esc="event.country_id.name"/>
206 <span t-field="event.name"/>
209 <ol class="breadcrumb mb0" id="event_menu" t-if="event.menu_id">
210 <t t-foreach="event.menu_id.child_id" t-as="submenu">
211 <t t-call="website.submenu"/>
215 <div class="col-sm-5" groups="event.group_event_manager">
216 <t t-call="website.publish_management">
217 <t t-set="object" t-value="event"/>
218 <t t-set="publish_edit" t-value="True"/>
219 <t t-set="action" t-value="'event.action_event_view'"/>
225 <div class="oe_structure"/>
230 <template id="template_location">
231 <t t-call="website_event.layout">
232 <section class="container" data-snippet-id="title">
233 <h1 class="text-center">Event Location</h1>
235 <div class="oe_structure oe_empty"/>
239 <template id="template_intro">
240 <t t-call="website_event.layout">
241 <section class="container" data-snippet-id="title">
242 <h1 class="text-center">Event Introduction</h1>
244 <div class="oe_structure oe_empty"/>
248 <template id="event_details">
249 <t t-call="website_event.layout">
250 <div itemscope="itemscope" itemtype="http://schema.org/Event" class="container">
251 <h1 itemprop="name" class="text-center" t-field="event.name"></h1>
252 <h4 class="text-center text-muted">
253 <i class="fa fa-clock-o"></i> <span itemprop="startDate" t-field="event.date_begin" t-field-options='{"hide_seconds":"True"}'/> to
254 <span itemprop="endDate" t-field="event.date_end" t-field-options='{"hide_seconds":"True"}'/>
256 <h4 class="text-center text-muted"
257 t-field="event.address_id" t-field-options='{
261 <div class="row mt32 mb32">
269 <t t-call="website.layout">
271 <div class="oe_structure oe_empty">
272 <div class="container">
273 <h1 class="mt32">Event not found!</h1>
274 <p>Sorry, the requested event is not available anymore.</p>
275 <p><a t-attf-href="/event">Return to the event list.</a></p>
282 <template id="event_description_full">
283 <t t-call="website_event.event_details">
284 <div class="col-md-8">
285 <div itemprop="description" t-field="event.description"></div>
286 <div class="clearfix"/>
287 <ul class="media-list" id="comment">
288 <li t-foreach="event.website_message_ids" t-as="comment" class="media">
289 <div class="media-body">
290 <t t-call="website.publish_management">
291 <t t-set="object" t-value="comment"/>
292 <t t-set="publish_edit" t-value="True"/>
294 <t t-raw="comment.body"/>
295 <small class="pull-right muted text-right">
296 <div t-field="comment.author_id"/>
297 <div t-field="comment.date" t-field-options='{"hide_seconds":"True"}'/>
303 <div class="col-md-4 css_noprint">
304 <div class="clearfix"/>
306 <div class="panel panel-default" t-if="event.address_id">
307 <div class="panel-heading">
310 <div class="panel-body">
311 <a t-att-href="event.google_map_link()" target="_BLANK">
312 <img t-att-src="event.google_map_img()" width="100%%"/>
314 <div itemprop="location" class="mt16 mb8" t-field="event.address_id" t-field-options='{
316 "fields": ["address", "phone", "mobile", "fax", "email"]
321 <div class="panel panel-default">
322 <div class="panel-heading">
325 <div class="panel-body">
326 <i class="fa fa-clock-o"></i> From <span t-field="event.date_begin" t-field-options='{"hide_seconds":"True"}'> </span><br/>
327 <i class="fa fa-clock-o"></i> To <span t-field="event.date_end" t-field-options='{"hide_seconds":"True"}'> </span>
331 <div class="panel panel-default" t-if="event.organizer_id">
332 <div class="panel-heading">
335 <div class="panel-body" t-field="event.organizer_id" t-field-options='{
337 "fields": ["name", "phone", "mobile", "fax", "email"]
341 <div class="panel panel-default">
342 <div class="panel-heading">
343 <h4>Social Stream</h4>
345 <div class="panel-body">
346 <t t-call="website_mail.follow"><t t-set="object" t-value="event"/></t>
347 <div t-if="event.twitter_hashtag" class="mt16">
348 <p><strong>Participate on Twitter</strong></p>
349 <p class="text-muted">
350 Find out what people see and say about this event,
351 and join the conversation.
353 <p><strong>Use this tag:
354 <a t-att-href="'http://twitter.com/search?q=%23'+event.twitter_hashtag" target="_blank" class="label label-primary">#<span t-field="event.twitter_hashtag"/></a>
363 <template id="country_events" name="Country Events" inherit_id="website.snippets">
364 <xpath expr="//div[@id='snippet_content']" position="inside">
366 <div class="oe_snippet_thumbnail">
367 <div style="background: white;box-shadow:none;-webkit-box-shadow:none;" class="oe_snippet_thumbnail_img" >
368 <i class="fa fa-flag fa-5x text-muted"></i>
370 <span class="oe_snippet_thumbnail_title">Local Events</span>
372 <div class="oe_snippet_body oe_country_events mb16 mt16">
373 <div class="country_events_list">
374 <div class="text-muted text-left">
376 <img class="img-rounded img-responsive" src="/website_event/static/src/img/world_map.jpg"></img>
378 <div>Events in visitor's country</div>
384 <xpath expr="//div[@id='snippet_options']" position="inside">
385 <div data-snippet-option-id='country_events'
386 data-selector=".oe_country_events"
387 data-selector-siblings="p, h1, h2, h3, blockquote, .well, .panel"
388 data-selector-children=".content"
394 <template id="country_events_list" name="Country">
397 <div class="country_events_list">
400 <img class="img-rounded img-responsive" t-att-src="'/website/image?model=res.country&field=image&id='+str(country.id)"></img>
401 <h4><b>Events: <span t-esc="country.name"></span></b></h4>
403 <t t-if="not country">
404 <img class="img-rounded img-responsive" src="/website_event/static/src/img/world_map.jpg"></img>
405 <h4><b>Upcoming Events</b></h4>
407 <div t-foreach="events[:5]" t-as="event_dict" class="oe_website_overflow_ellipsis mb8">
408 <t t-if="not event_dict['event'].website_published">
409 <span class="label label-danger"><i class="fa fa-ban"></i></span>
411 <t t-if="event_dict['event'].address_id">
412 <i class="fa fa-map-marker"></i>
414 <t t-if="not event_dict['event'].address_id">
415 <i class="fa fa-cloud"></i>
417 <b><span t-esc="event_dict['date']"/>: <span><a t-att-href="event_dict['url']"><t t-esc="event_dict['event'].name"/></a></span></b>
419 <t t-if="len(events) > 5">
421 <b><a t-att-href="'/event?country='+str(country.id)">See all events from <span t-esc="country.name"></span></a></b>
423 <div t-if="not country">
424 <b><a href="/event"> See all upcoming events </a></b>
433 <template id="website.layout_footer_copyright" inherit_id="website.layout" name="Footer Copyright">
434 <xpath expr="//footer" position="inside">
435 <div class="container mt16 mb8">
436 <div class="pull-right" t-ignore="true" t-if="not editable">
437 Powered by <a class="label label-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>.
438 Try the <a href="http://www.odoo.com/page/website-builder">open source website builder</a>.
440 <div class="pull-left text-muted">
441 Copyright &copy; <span t-field="res_company.name">Company name</span>
449 <template id="content_new_event" inherit_id="website.user_navbar" groups="event.group_event_manager">
450 <xpath expr="//ul[@id='oe_systray']/li/ul[@class='dropdown-menu oe_content_menu']" position="inside">
451 <li><a href="#" data-action="new_event">New Event</a></li>