2013-08-02 04:35:26 +00:00
<?xml version="1.0" encoding="utf-8"?>
<openerp >
<data >
2014-01-16 18:05:35 +00:00
<template id= "editor_head" inherit_id= "website.editor_head" name= "Event Editor" groups= "event.group_event_manager" >
<xpath expr= "//script[@id='website_tour_js']" position= "after" >
2013-12-12 10:58:21 +00:00
<script type= "text/javascript" src= "/website_event/static/src/js/website_event.editor.js" > </script>
<script type= "text/javascript" src= "/website_event/static/src/js/website.tour.event.js" > </script>
</xpath>
</template>
2013-11-13 17:14:38 +00:00
2013-12-12 10:58:21 +00:00
<!-- Layout add nav and footer -->
<template id= "header_footer_custom" inherit_id= "website.layout" name= "Footer Events Link" >
<xpath expr= "//footer//ul[@name='products']" position= "inside" >
<li > <a href= "/event" > Events</a> </li>
</xpath>
</template>
2013-08-02 04:35:26 +00:00
2013-12-12 10:58:21 +00:00
<!-- Page -->
<template id= "index" name= "Events" >
<t t-call= "website.layout" >
<div id= "wrap" >
<div class= "oe_structure" />
<div class= "container" >
<div class= "row mt8" >
<div class= "col-sm-5" >
<ol class= "breadcrumb mb0" >
<li class= "active" >
Our Events
</li>
</ol>
</div> <div class= "col-sm-7" >
<t t-call= "website.pager" >
<t t-set= "classname" > pull-right</t>
</t>
2013-11-18 15:10:32 +00:00
</div>
2013-12-12 10:58:21 +00:00
</div>
<h3 class= "text-center text-muted" >
<t t-esc= "current_date or ''" /> <span t-if= "current_type" > <t t-if= "current_date" > ,</t>
<t t-esc= "current_type.name" /> </span> <span t-if= "current_country" > <t t-if= "current_type or current_date" > ,</t>
<t t-esc= "current_country.name" />
</span>
</h3>
<div class= "row mt32 mb32" >
<div class= "col-md-9" id= "middle_column" >
<t t-if= "not event_ids" >
2014-01-15 15:49:41 +00:00
<div class= "text-center text-muted" >
<h3 class= "css_editable_display" > No event found</h3>
2014-01-16 18:05:35 +00:00
<h3 class= "css_editable_hidden" > There isn't available events right now, <t t-if= "current_date or current_country or current_type" > click <a t-href= "/event" > here</a> to check all events or</t> click <a t-href= "/page/website.contactus" > here</a> to contact us</h3>
2014-01-15 15:49:41 +00:00
<t groups= "base.group_website_publisher" >
2014-01-16 18:05:35 +00:00
<t groups= "event.group_event_manager" >
<p > Click on "Content" to define a new event or "Help" for more informations.</p>
<img src= "/website/static/src/img/content_here.png" />
<p > In the backend's event form contains information to customize your events: location, oranizer, tikets, registrations, etc.</p>
</t>
2014-01-15 15:49:41 +00:00
</t>
</div>
2013-12-12 10:58:21 +00:00
</t>
<ul class= "media-list" >
<li t-foreach= "event_ids" t-as= "event" class= "media" >
<div class= "media-body" >
<t t-if= "event.event_ticket_ids" >
<span t-if= "not event.register_avail" class= "label label-danger pull-right" > Sold Out</span>
<span t-if= "event.register_avail and event.register_avail <= ((event.register_max or 0) / 4)" class= "label pull-right label-info" >
Only <t t-esc= "event.register_avail" /> Remaining
</span>
</t>
<h4 class= "media-heading" >
<a t-href= "/event/#{ slug(event) }/#{(not event.menu_id) and 'register/' or ''}" > <span t-field= "event.name" > </span> </a>
<small t-if= "not event.website_published" class= "label label-danger" > not published</small>
</h4>
<div >
<t t-if= "event.organizer_id" >
Organized by: <span t-field= "event.organizer_id" > </span>
2013-08-06 08:04:12 +00:00
</t>
</div>
2013-12-12 10:58:21 +00:00
<div >
<i class= "fa fa-clock-o" > </i> <span t-field= "event.date_begin" > </span> <i > to</i> <span t-field= "event.date_end" > </span>
</div>
<div t-if= "event.country_id" >
<i class= "fa fa-map-marker" > </i> <span t-field= "event.city" /> , <span t-field= "event.country_id" />
</div>
<div class= "text-muted" >
<i class= "fa fa-tag" > </i> <span t-field= "event.type" />
</div>
</div>
</li>
</ul>
</div>
<div class= "col-md-3 oe_structure" id= "right_column" >
2013-08-02 04:35:26 +00:00
</div>
</div>
2013-12-12 10:58:21 +00:00
</div>
<div class= "oe_structure" />
</div>
</t>
</template>
2013-08-05 15:03:19 +00:00
2013-12-12 10:58:21 +00:00
<template id= "event_right_photos" inherit_id= "website_event.index" inherit_option_id= "website_event.index" name= "Photos" >
<xpath expr= "//div[@id='right_column']" position= "inside" >
<div class= "row" >
<div class= "col-md-12 mb16" >
<div class= "oe_demo" >
<img src= "/website_event/static/src/img/openerp_enterprise_of_the_year.png" class= "img-rounded" />
<div class= "text-center" > <a href= "/event" > Photos of Past Events</a> </div>
2013-11-10 12:42:44 +00:00
</div>
</div>
2013-12-12 10:58:21 +00:00
<div class= "col-md-12 mb16" >
<div class= "oe_demo" >
<img src= "/website_event/static/src/img/training.jpg" class= "img-rounded" />
<div class= "text-center" > <a href= "/event" > Our Trainings</a> </div>
2013-11-10 12:42:44 +00:00
</div>
</div>
2013-12-12 10:58:21 +00:00
</div>
</xpath>
</template>
2013-11-10 12:42:44 +00:00
2013-12-12 10:58:21 +00:00
<template id= "event_right_quotes" inherit_id= "website_event.index" inherit_option_id= "website_event.index" name= "Quotes" >
<xpath expr= "//div[@id='right_column']" position= "inside" >
<div class= "row" >
<div class= "col-md-12 mb16" >
<blockquote class= "oe_snippet_body" >
<p >
Write here a quote from one of your attendees.
It gives confidence in your
events.
</p>
<small > Author</small>
</blockquote>
2013-12-12 10:12:58 +00:00
</div>
2013-12-12 10:58:21 +00:00
</div>
</xpath>
</template>
<template id= "event_left_column" inherit_option_id= "website_event.index" name= "Filters" >
<xpath expr= "//div[@id='middle_column']" position= "attributes" >
<attribute name= "class" > col-md-6</attribute>
</xpath>
<xpath expr= "//div[@id='middle_column']" position= "before" >
<div class= "col-md-3 css_noprint" id= "left_column" >
<ul class= "nav nav-pills nav-stacked" >
<t t-foreach= "dates" t-as= "date" >
<li t-att-class= "searches.get('date') == date[0] and 'active' or ''" t-if= "date[3] or (date[0] in ('old','all'))" >
2014-01-08 13:06:45 +00:00
<a t-href= "/event/?date=#{ date[0] }" t-keep-query= "country,type" > <t t-esc= "date[1]" />
2013-12-12 10:58:21 +00:00
<span t-if= "date[3]" class= "badge pull-right" > <t t-esc= "date[3]" /> </span>
2013-09-28 16:43:52 +00:00
</a>
2013-08-12 14:02:43 +00:00
</li>
</t>
</ul>
2013-12-12 10:58:21 +00:00
</div>
</xpath>
</template>
2013-12-22 22:47:53 +00:00
2013-12-22 22:46:04 +00:00
<template id= "event_category" inherit_option_id= "website_event.event_left_column" name= "Filter by Category" >
2013-12-12 10:58:21 +00:00
<xpath expr= "//div[@id='left_column']" position= "inside" >
<ul class= "nav nav-pills nav-stacked mt32" >
<t t-foreach= "types" >
<li t-if= "type" t-att-class= "searches.get('type') == str(type and type[0]) and 'active' or ''" >
2014-01-08 13:06:45 +00:00
<a t-href= "/event/?type=#{ type[0] }" t-keep-query= "country,date" > <t t-esc= "type[1]" />
2013-12-12 10:58:21 +00:00
<span class= "badge pull-right" > <t t-esc= "type_count" /> </span>
</a>
</li>
</t>
</ul>
</xpath>
</template>
2013-12-22 22:46:04 +00:00
<template id= "event_location" inherit_option_id= "website_event.event_left_column" name= "Filter by Country" >
2013-12-12 10:58:21 +00:00
<xpath expr= "//div[@id='left_column']" position= "inside" >
<ul class= "nav nav-pills nav-stacked mt32" >
<t t-foreach= "countries" >
<li t-if= "country_id" t-att-class= "searches.get('country') == str(country_id and country_id[0]) and 'active' or ''" >
2014-01-08 13:06:45 +00:00
<a t-href= "/event/?country=#{ country_id[0] }" t-keep-query= "type,date" > <t t-esc= "country_id[1]" />
2013-12-12 10:58:21 +00:00
<span class= "badge pull-right" > <t t-esc= "country_id_count" /> </span>
</a>
</li>
</t>
</ul>
</xpath>
</template>
2013-08-12 14:02:43 +00:00
2013-12-12 10:58:21 +00:00
<template id= "layout" >
<t t-call= "website.layout" >
2014-01-16 18:05:35 +00:00
<div id= "wrap" class= "js_event" >
2013-12-12 10:58:21 +00:00
<div class= "oe_structure" />
<div class= "container" >
<div class= "row mt8" >
<div class= "col-sm-7" id= "event_menu" >
<ol class= "breadcrumb mb0" t-if= "not event.menu_id" >
<li > <a href= "/event" > All Events</a> </li>
<li t-if= "event.type" >
<a t-href= "/event?type=#{event.type.id}" t-esc= "event.type.name" />
</li>
<li t-if= "event.country_id" >
<a t-href= "/event?country=#{event.country_id.id}" t-esc= "event.country_id.name" />
</li>
<li class= "active" >
<span t-field= "event.name" />
</li>
</ol>
<ol class= "breadcrumb mb0" id= "event_menu" t-if= "event.menu_id" >
<t t-foreach= "event.menu_id.child_id" t-as= "submenu" >
<t t-call= "website.submenu" />
2013-11-16 16:40:23 +00:00
</t>
2013-12-12 10:58:21 +00:00
</ol>
</div>
2014-01-21 12:39:12 +00:00
<div class= "col-sm-5" groups= "event.group_event_manager" >
2013-12-12 10:58:21 +00:00
<t t-call= "website.publish_management" >
<t t-set= "object" t-value= "event" />
<t t-set= "publish_edit" t-value= "True" />
<t t-set= "publish_controller" > /event/publish</t>
</t>
2013-11-16 16:40:23 +00:00
</div>
2013-11-24 18:54:34 +00:00
</div>
2013-12-12 10:58:21 +00:00
</div>
<t t-raw= "0" />
<div class= "oe_structure" />
</div>
</t>
</template>
2013-09-05 10:42:12 +00:00
2013-12-12 10:58:21 +00:00
<template id= "template_location" >
<t t-call= "website_event.layout" >
<section class= "container" data-snippet-id= "title" >
<h1 class= "text-center" > Event Location</h1>
</section>
<div class= "oe_structure oe_empty" />
</t>
</template>
2013-11-24 21:02:21 +00:00
2013-12-12 10:58:21 +00:00
<template id= "template_intro" >
<t t-call= "website_event.layout" >
<section class= "container" data-snippet-id= "title" >
<h1 class= "text-center" > Event Introduction</h1>
</section>
<div class= "oe_structure oe_empty" />
</t>
</template>
2013-11-24 21:02:21 +00:00
2013-12-12 10:58:21 +00:00
<template id= "event_details" >
<t t-call= "website_event.layout" >
<div class= "container" >
<h1 class= "text-center" t-field= "event.name" > </h1>
<h4 class= "text-center text-muted" >
<i class= "fa fa-clock-o" > </i> <span t-field= "event.date_begin" /> to
<span t-field= "event.date_end" />
</h4>
<h4 t-if= "event.city and event.country_id" class= "text-center text-muted" >
<i class= "fa fa-map-marker" />
<span t-field= "event.city" /> ,
<span t-field= "event.country_id" />
</h4>
<div class= "row mt32 mb32" >
<t t-raw= "0" />
2013-11-27 09:22:23 +00:00
</div>
2013-12-12 10:58:21 +00:00
</div>
</t>
</template>
2013-09-28 16:43:52 +00:00
2013-12-12 10:58:21 +00:00
<template id= "404" >
<t t-call= "website.layout" >
<div id= "wrap" >
<div class= "oe_structure oe_empty" >
<div class= "container" >
<h1 class= "mt32" > Event not found!</h1>
<p > Sorry, the requested event is not available anymore.</p>
<p > <a t-href= "/event/" > Return to the event list.</a> </p>
2013-12-05 15:54:50 +00:00
</div>
</div>
2013-12-12 10:58:21 +00:00
</div>
</t>
</template>
2013-12-05 15:54:50 +00:00
2013-12-12 10:58:21 +00:00
<template id= "event_description_full" >
<t t-call= "website_event.event_details" >
<div class= "col-md-8" >
<form t-action= "/event/add_cart?event_id=#{ event.id }" method= "post" t-if= "event.event_ticket_ids" >
<table class= "table table-striped" >
<thead >
<tr >
<th > Ticket Type</th>
<th style= "min-width: 100px" > Sales End</th>
<th style= "min-width: 100px" > Price</th>
<th > </th>
<th > Quantity</th>
</tr>
</thead>
<tbody >
<tr t-foreach= "event.event_ticket_ids" t-as= "ticket" >
<td >
<div t-field= "ticket.name" />
<div > <small t-field= "ticket.product_id.description_sale" /> </div>
</td>
<td > <span t-field= "ticket.deadline" /> </td>
<td >
<t t-if= "ticket.price or editable" > <span t-field= "ticket.price" t-field-options= '{
"widget": "monetary",
"display_currency": "website.pricelist_id.currency_id"
}'/>
</t>
<t t-if= "not ticket.price and not editable" >
<span > Free</span>
</t>
</td>
<td >
<span t-if= "ticket.register_max and ((ticket.register_current or 0)*100 / ticket.register_max)>75" class= "text-muted" >
<t t-esc= "ticket.register_max - ticket.register_current" /> <span > left</span>
</span>
</td>
<td >
<select t-if= "ticket.register_avail" t-attf-name= "ticket-#{ ticket.id }" class= "form-control" >
<t t-foreach= "range(0, ticket.register_avail > 9 and 10 or ticket.register_avail+1 )" t-as= "nb" > <option t-esc= "nb" /> </t>
</select>
<span t-if= "not ticket.register_avail" > Sold Out</span>
</td>
</tr>
</tbody>
</table>
<button type= "submit" class= "btn btn-primary btn-lg pull-right" t-if= "event.register_avail" > Order Now</button>
2013-11-27 09:22:23 +00:00
<div class= "clearfix" />
2013-12-12 10:58:21 +00:00
<hr />
</form>
<div t-field= "event.description" > </div>
<div class= "clearfix" />
<ul class= "media-list" id= "comment" >
<li t-foreach= "event.website_message_ids" t-as= "comment" class= "media" >
<div class= "media-body" >
<t t-call= "website.publish_management" >
<t t-set= "object" t-value= "comment" />
<t t-set= "publish_edit" t-value= "True" />
<t t-set= "publish_controller" > /event/publish</t>
</t>
<t t-raw= "comment.body" />
<small class= "pull-right muted text-right" >
<div t-field= "comment.author_id" />
<div t-field= "comment.date" />
</small>
2013-11-27 09:22:23 +00:00
</div>
2013-12-12 10:58:21 +00:00
</li>
</ul>
</div>
<div class= "col-md-4 css_noprint" >
<div class= "clearfix" />
2013-09-28 16:43:52 +00:00
2013-12-12 10:58:21 +00:00
<div class= "panel panel-default" t-if= "event.address_id" >
<div class= "panel-heading" >
<h4 > Where</h4>
2013-11-27 09:22:23 +00:00
</div>
2013-12-12 10:58:21 +00:00
<div class= "panel-body" >
<a t-att-href= "event.google_map_link()" target= "_BLANK" >
<img t-att-src= "event.google_map_img()" width= "100%%" />
</a>
<div class= "mt16 mb8" t-field= "event.address_id" t-field-options= '{
2013-12-06 13:30:03 +00:00
"widget": "contact",
2013-12-12 10:58:21 +00:00
"fields": ["address", "phone", "mobile", "fax", "email"]
2013-12-06 13:30:03 +00:00
}'/>
2013-11-27 09:22:23 +00:00
</div>
2013-12-12 10:58:21 +00:00
</div>
2013-09-28 16:43:52 +00:00
2013-12-12 10:58:21 +00:00
<div class= "panel panel-default" >
<div class= "panel-heading" >
<h4 > When</h4>
</div>
<div class= "panel-body" >
<i class= "fa fa-clock-o" > </i> <span t-field= "event.date_begin" > </span> <br />
<i class= "fa fa-clock-o" > </i> <span t-field= "event.date_end" > </span>
</div>
</div>
<div class= "panel panel-default" t-if= "event.organizer_id" >
<div class= "panel-heading" >
<h4 > Organizer</h4>
</div>
<div class= "panel-body" t-field= "event.organizer_id" t-field-options= '{
"widget": "contact",
"fields": ["name", "phone", "mobile", "fax", "email"]
}'/>
</div>
<div class= "panel panel-default" >
<div class= "panel-heading" >
<h4 > Social Stream</h4>
</div>
<div class= "panel-body" >
<t t-call= "website_mail.follow" > <t t-set= "object" t-value= "event" /> </t>
<div t-if= "event.twitter_hashtag" class= "mt16" >
<p > <strong > Participate on Twitter</strong> </p>
<p class= "text-muted" >
2014-01-06 10:38:55 +00:00
Find out what people see and say about this event,
and join the conversation.
2013-12-12 10:58:21 +00:00
</p>
<p > <strong > Use this tag:
<a t-att-href= "'http://twitter.com/search?q=#'+event.twitter_hashtag" class= "label label-primary" > #<span t-field= "event.twitter_hashtag" /> </a>
</strong> </p>
2013-09-28 16:43:52 +00:00
</div>
2013-08-05 15:03:19 +00:00
</div>
</div>
2013-12-12 10:58:21 +00:00
</div>
</t>
</template>
2013-11-24 18:54:34 +00:00
</data>
2013-08-08 22:53:36 +00:00
</openerp>