2013-08-02 04:35:26 +00:00
<?xml version="1.0" encoding="utf-8"?>
<openerp >
<data >
<!-- Layout add nav and footer -->
2013-11-07 13:19:49 +00:00
<template id= "header_footer_custom" inherit_id= "website.layout" name= "Footer Events Link" >
<xpath expr= "//footer//ul[@name='products']" position= "inside" >
2013-09-26 15:07:29 +00:00
<li > <a t-href= "/event" > Events</a> </li>
2013-08-12 09:32:55 +00:00
</xpath>
</template>
2013-08-02 04:35:26 +00:00
2013-10-30 16:29:09 +00:00
<!-- Page -->
2013-11-05 15:14:04 +00:00
<template id= "index" name= "Events" >
2013-08-02 04:35:26 +00:00
<t t-call= "website.layout" >
2013-09-15 17:25:37 +00:00
<div id= "wrap" >
2013-08-31 09:01:12 +00:00
<div class= "container" >
2013-09-28 16:43:52 +00:00
<div class= "oe_structure" />
<h1 class= "text-center" >
Our Events
</h1>
<h3 class= "text-center text-muted" >
<t t-esc= "current_date" /> <t t-if= "current_type" > ,
<t t-esc= "current_type.name" /> </t> <t t-if= "current_country" > ,
<t t-esc= "current_country.name" />
</t>
</h3>
<div class= "row mt16 mb32" >
<div class= "col-md-3 col-sm-4 css_noprint" id= "left_column" >
2013-08-23 12:19:30 +00:00
<ul class= "nav nav-pills nav-stacked" >
2013-08-02 10:11:22 +00:00
<li class= "nav-header" > Date</li>
<t t-foreach= "dates" t-as= "date" >
2013-09-28 16:43:52 +00:00
<li t-att-class= "searches.get('date') == date[0] and 'active' or ''" t-if= "date[3]" >
<a t-href= "/event/#{ search_path }&date=#{ date[0] }" > <t t-esc= "date[1]" />
<span t-if= "date[3]" class= "badge pull-right" > <t t-esc= "date[3]" /> </span>
</a>
2013-08-02 10:11:22 +00:00
</li>
</t>
</ul>
2013-08-02 09:11:31 +00:00
</div>
2013-09-28 16:43:52 +00:00
<div class= "col-sm-8 col-md-9" >
2013-08-31 09:01:12 +00:00
<t t-call= "website.pager" >
<t t-set= "classname" > pull-left</t>
</t>
2013-09-24 11:19:57 +00:00
<div class= "oe_structure" >
</div>
2013-08-12 13:43:12 +00:00
<ul class= "media-list" >
2013-09-03 10:41:15 +00:00
<li t-foreach= "event_ids" t-as= "event" class= "media" data-publish= "" >
2013-11-04 15:52:30 +00:00
<t t-call= "website.publish_management" >
<t t-set= "object" t-value= "event" />
<t t-set= "publish_controller" > /event/publish</t>
</t>
2013-08-06 08:04:12 +00:00
<div class= "media-body" >
2013-09-28 20:18:40 +00:00
<span t-if= "not event.event_ticket_ids" class= "label label-danger pull-right" > Registration Closed</span>
2013-08-21 14:09:53 +00:00
<t t-if= "event.event_ticket_ids" >
2013-09-28 20:18:40 +00:00
<span t-if= "event.register_avail == 9999" class= "label label-default pull-right label-info" > Tickets Available</span>
<span t-if= "not event.register_avail" class= "label label-danger pull-right" > Sold Out</span>
2013-08-23 12:19:30 +00:00
<span t-if= "event.register_avail and event.register_avail != 9999" t-attf-class= "label label-default pull-right label-#{ event.register_avail <= 10 and 'warning' or 'info' }" >
2013-09-28 20:18:40 +00:00
Tickets Available
2013-08-06 08:04:12 +00:00
</span>
</t>
2013-09-26 15:07:29 +00:00
<h4 class= "media-heading" > <a t-href= "/event/#{ event.id }/" > <span t-field= "event.name" > </span> </a> </h4>
2013-08-06 08:04:12 +00:00
<div >
2013-08-29 15:37:48 +00:00
<t t-if= "event.organizer_id" >
Organized by: <span t-field= "event.organizer_id" > </span>
2013-08-06 08:04:12 +00:00
</t>
2013-08-02 09:11:31 +00:00
</div>
2013-08-06 08:04:12 +00:00
<div >
2013-08-21 14:09:53 +00:00
<i class= "icon-time" > </i> <span t-field= "event.date_begin" > </span> <i > to</i> <span t-field= "event.date_end" > </span>
2013-08-06 08:04:12 +00:00
</div>
2013-08-21 14:09:53 +00:00
<div t-if= "event.country_id" >
2013-09-28 16:43:52 +00:00
<i class= "icon-map-marker" > </i> <span t-field= "event.city" /> , <span t-field= "event.country_id" />
</div>
<div class= "text-muted" >
<i class= "icon-tag" > </i> <span t-field= "event.type" />
2013-08-06 08:04:12 +00:00
</div>
</div>
</li>
2013-08-02 09:11:31 +00:00
</ul>
</div>
2013-08-23 12:19:30 +00:00
<div class= "col-md-8 col-lg-offset-4 text-center" >
2013-08-12 13:43:12 +00:00
<t t-call= "website.pager" />
</div>
2013-08-02 04:35:26 +00:00
</div>
</div>
2013-09-15 17:25:37 +00:00
<div class= "oe_structure" />
</div>
2013-08-02 04:35:26 +00:00
</t>
</template>
2013-08-05 15:03:19 +00:00
2013-08-12 14:02:43 +00:00
<template id= "event_category" inherit_id= "website_event.index" inherit_option_id= "website_event.index" name= "Category" >
<xpath expr= "//div[@id='left_column']" position= "inside" >
2013-08-31 09:01:12 +00:00
<ul class= "nav nav-pills nav-stacked mt32" >
2013-08-12 14:02:43 +00:00
<li class= "nav-header" > Category</li>
<t t-foreach= "types" >
<li t-if= "type" t-att-class= "searches.get('type') == str(type and type[0]) and 'active' or ''" >
2013-09-28 16:43:52 +00:00
<a t-href= "/event/#{ search_path }&type=#{ type[0] }" > <t t-esc= "type[1]" />
<span class= "badge pull-right" > <t t-esc= "type_count" /> </span>
</a>
2013-08-12 14:02:43 +00:00
</li>
</t>
</ul>
</xpath>
</template>
<template id= "event_location" inherit_id= "website_event.index" inherit_option_id= "website_event.index" name= "Location" >
<xpath expr= "//div[@id='left_column']" position= "inside" >
2013-08-31 09:01:12 +00:00
<ul class= "nav nav-pills nav-stacked mt32" >
2013-08-12 14:02:43 +00:00
<li class= "nav-header" > Location</li>
<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 ''" >
2013-09-28 16:43:52 +00:00
<a t-href= "/event/#{ search_path }&country=#{ country_id[0] }" > <t t-esc= "country_id[1]" />
<span class= "badge pull-right" > <t t-esc= "country_id_count" /> </span>
</a>
2013-08-12 14:02:43 +00:00
</li>
</t>
</ul>
</xpath>
</template>
2013-09-24 10:52:06 +00:00
<template id= "event_description_full" >
2013-08-05 15:03:19 +00:00
<t t-call= "website.layout" >
2013-10-10 13:29:07 +00:00
<t t-set= "additional_title" > Events</t>
2013-09-15 17:25:37 +00:00
<div id= "wrap" >
2013-08-31 09:01:12 +00:00
<div class= "container" >
2013-09-05 10:42:12 +00:00
2013-09-28 16:43:52 +00:00
<h1 class= "text-center" t-field= "event_id.name" > </h1>
<h4 class= "text-center text-muted" >
2013-10-30 16:29:09 +00:00
<i class= "icon-time" > </i> <span t-field= "event_id.date_begin" /> to
2013-09-28 16:43:52 +00:00
<span t-field= "event_id.date_end" />
</h4>
<h4 t-if= "event_id.city and event_id.country_id" class= "text-center text-muted" >
<i class= "icon-map-marker" />
<span t-field= "event_id.city" /> ,
<span t-field= "event_id.country_id" />
</h4>
2013-09-28 19:13:47 +00:00
<div class= "row mt32 mb32" >
2013-08-23 12:19:30 +00:00
<div class= "col-md-8" >
2013-09-28 16:43:52 +00:00
<form t-action= "/event/#{ event_id.id }/add_cart" method= "post" t-if= "event_id.event_ticket_ids" >
<table class= "table table-striped" >
2013-09-05 10:42:12 +00:00
<thead >
<tr >
2013-09-28 19:13:47 +00:00
<th > Ticket Type</th>
2013-10-01 06:57:37 +00:00
<th style= "min-width: 100px" > Sales End</th>
<th style= "min-width: 100px" > Price</th>
2013-09-28 19:13:47 +00:00
<th > </th>
2013-09-05 10:42:12 +00:00
<th > Quantity</th>
</tr>
</thead>
<tbody >
<tr t-foreach= "event_id.event_ticket_ids" t-as= "ticket" >
2013-10-01 06:57:37 +00:00
<td >
<div t-field= "ticket.name" />
<div > <small t-field= "ticket.product_id.description_sale" /> </div>
</td>
2013-09-17 11:26:49 +00:00
<td > <span t-field= "ticket.deadline" /> </td>
<td > <span t-field= "ticket.price" /> </td>
2013-09-28 19:13:47 +00:00
<td >
<span t-if= "ticket.register_max and (float(ticket.register_current or 0) / ticket.register_max)<=0.2" class= "text-muted" >
<t t-esc= "ticket.register_max - ticket.register_current" /> <span > left</span>
</span>
</td>
2013-09-05 10:42:12 +00:00
<td >
2013-09-12 14:47:07 +00:00
<select t-if= "ticket.register_avail" t-attf-name= "ticket-#{ ticket.id }" class= "form-control" >
2013-09-05 10:42:12 +00:00
<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>
2013-09-28 19:13:47 +00:00
<span t-if= "not ticket.register_avail" > Sold Out</span>
2013-09-05 10:42:12 +00:00
</td>
</tr>
</tbody>
</table>
2013-09-28 16:43:52 +00:00
<button type= "submit" class= "btn btn-primary btn-lg pull-right" t-if= "event_id.register_avail" > Order Now</button>
2013-09-28 19:13:47 +00:00
<div class= "clearfix" />
2013-09-28 16:43:52 +00:00
<hr />
2013-09-05 10:42:12 +00:00
</form>
2013-09-24 10:26:51 +00:00
<div t-field= "event_id.description" > </div>
2013-09-28 20:18:40 +00:00
<div class= "clearfix" />
2013-09-05 10:42:12 +00:00
<ul class= "media-list" id= "comment" >
2013-09-24 10:52:06 +00:00
<li t-foreach= "event_id.website_message_ids" t-as= "comment" class= "media" >
2013-09-05 10:42:12 +00:00
<div class= "media-body" >
2013-11-04 15:52:30 +00:00
<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>
2013-09-05 10:42:12 +00:00
<t t-raw= "comment.body" />
<small class= "pull-right muted text-right" >
<div t-field= "comment.author_id" />
<div t-field= "comment.date" />
</small>
</div>
</li>
</ul>
2013-08-05 15:03:19 +00:00
</div>
2013-09-28 16:43:52 +00:00
<div class= "col-md-4 css_noprint" >
<div class= "clearfix" />
<div class= "panel panel-default" t-if= "event_id.address_id" >
<div class= "panel-heading" >
2013-11-04 15:52:30 +00:00
<t t-call= "website.publish_management" >
<t t-set= "object" t-value= "event_id" />
<t t-set= "publish_edit" t-value= "True" />
<t t-set= "publish_controller" > /event/publish</t>
2013-11-07 10:12:06 +00:00
<t t-set= "style" > position: relative; top: -80px;</t>
2013-11-04 15:52:30 +00:00
</t>
2013-09-28 16:43:52 +00:00
<h4 > Where</h4>
</div>
<div class= "panel-body" >
<a t-att-href= "event_id.google_map_link()" target= "_BLANK" >
<img t-att-src= "event_id.google_map_img()" width= "100%%" />
</a>
<address class= "mt16 mb8" >
<strong t-field= "event_id.address_id.name" />
<p t-field= "event_id.address_id" />
<div t-if= "event_id.address_id.phone" >
<span class= "icon-phone" /> <span t-field= "event_id.address_id.phone" />
</div>
<div t-if= "event_id.address_id.email" >
<span class= "icon-envelope" />
<a t-att-href= "'mailto:'+event_id.address_id.email" >
<span t-field= "event_id.address_id.email" />
</a>
</div>
</address>
</div>
</div>
<div class= "panel panel-default" t-if= "event_id.address_id" >
<div class= "panel-heading" >
<h4 > When</h4>
</div>
<div class= "panel-body" >
<i class= "icon-time" > </i> <span t-field= "event_id.date_begin" > </span> <br />
<i class= "icon-time" > </i> <span t-field= "event_id.date_end" > </span>
</div>
</div>
<div class= "panel panel-default" t-if= "event_id.organizer_id" >
<div class= "panel-heading" >
<h4 > Organizer</h4>
</div>
<div class= "panel-body" >
2013-09-28 19:13:47 +00:00
<p > <strong t-field= "event_id.organizer_id.display_name" /> </p>
<div t-if= "event_id.phone" >
2013-09-28 16:43:52 +00:00
<span class= "icon-phone" /> <span t-field= "event_id.phone" />
2013-09-28 19:13:47 +00:00
</div>
<div t-if= "event_id.email" >
2013-09-28 16:43:52 +00:00
<i class= "icon-envelope" /> <span t-field= "event_id.email" />
2013-09-28 19:13:47 +00:00
</div>
2013-09-28 16:43:52 +00:00
</div>
</div>
<div class= "panel panel-default" >
<div class= "panel-heading" >
2013-09-28 20:18:40 +00:00
<h4 > Social Stream</h4>
2013-09-28 16:43:52 +00:00
</div>
<div class= "panel-body" >
<t t-call= "website_mail.follow" > <t t-set= "object" t-value= "event_id" /> </t>
2013-09-28 20:18:40 +00:00
<div t-if= "event_id.twitter_hashtag" >
<p > <strong > Join the Experience</strong> </p>
<p class= "text-muted" >
Find out what others are seeing and
saying about this event, and join the
conversation.
</p>
<p > <strong > Use this tag:
<a t-att-href= "'twitter.com/search?q=#'+event_id.twitter_hashtag" class= "label label-primary" > #<span t-field= "event_id.twitter_hashtag" /> </a>
</strong> </p>
</div>
2013-09-28 16:43:52 +00:00
</div>
</div>
<ul class= "list-unstyled" >
2013-09-28 19:13:47 +00:00
<li t-if= "event_id.type" >
2013-10-30 16:29:09 +00:00
<a t-href= "/event?type=#{event_id.type.id}" > <strong > <span class= "icon-double-angle-right" /> Other <t t-esc= "event_id.type.name" /> </strong> </a>
2013-09-28 19:13:47 +00:00
</li>
<li t-if= "event_id.country_id" >
2013-10-30 16:29:09 +00:00
<a t-href= "/event?country=#{event_id.country_id.id}" > <strong > <span class= "icon-double-angle-right" /> Other Events in <span t-esc= "event_id.country_id.name" /> </strong> </a>
2013-09-28 19:13:47 +00:00
</li>
2013-10-30 16:29:09 +00:00
<li > <a t-href= "/event" > <strong > <span class= "icon-double-angle-right" /> All Events</strong> </a> </li>
2013-09-28 16:43:52 +00:00
</ul>
</div>
2013-08-05 15:03:19 +00:00
</div>
</div>
2013-09-15 17:25:37 +00:00
</div>
2013-08-05 15:03:19 +00:00
</t>
</template>
2013-08-02 04:35:26 +00:00
</data>
2013-08-08 22:53:36 +00:00
</openerp>