2013-08-02 04:35:26 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
|
|
|
|
<!-- Layout add nav and footer -->
|
|
|
|
|
2013-09-05 09:29:27 +00:00
|
|
|
<template id="header_footer" inherit_id="website_sale.header_footer">
|
|
|
|
<xpath expr="//body/header//ul[@id='top_menu']/li" position="before">
|
2013-08-12 09:32:55 +00:00
|
|
|
<li><a href="/event">Events</a></li>
|
|
|
|
</xpath>
|
2013-09-05 09:29:27 +00:00
|
|
|
<xpath expr="//body/footer//ul[@name='products']/li" position="after">
|
2013-08-12 09:32:55 +00:00
|
|
|
<li><a href="/event">Events</a></li>
|
|
|
|
</xpath>
|
|
|
|
</template>
|
2013-08-02 04:35:26 +00:00
|
|
|
|
2013-08-28 09:41:18 +00:00
|
|
|
<template id="event_website_sale_mycart" inherit_id="website_sale.mycart">
|
|
|
|
<xpath expr="//small[@class='text-error']" position="replace">
|
2013-09-02 10:46:46 +00:00
|
|
|
<t t-if="(not line.event_id or line.event_ticket_id and line.event_ticket_id.price == line.product_id.lst_price)">
|
|
|
|
<small class="text-error" style="text-decoration: line-through;"><t t-esc="line.product_id.lst_price" /> €</small>
|
|
|
|
</t>
|
2013-08-28 09:41:18 +00:00
|
|
|
</xpath>
|
|
|
|
</template>
|
|
|
|
|
2013-08-02 04:35:26 +00:00
|
|
|
<!-- Page -->
|
2013-08-06 08:04:12 +00:00
|
|
|
|
2013-08-21 12:13:58 +00:00
|
|
|
<template id="index" name="Events" page="True">
|
2013-08-02 04:35:26 +00:00
|
|
|
<t t-call="website.layout">
|
|
|
|
<t t-set="head">
|
2013-08-13 14:27:43 +00:00
|
|
|
<script type="text/javascript" src="/website_hr/static/src/js/website_hr.js"></script>
|
2013-08-08 22:53:36 +00:00
|
|
|
<t t-raw="head or ''"/>
|
2013-08-02 04:35:26 +00:00
|
|
|
</t>
|
|
|
|
<t t-set="title">Events</t>
|
2013-08-31 09:01:12 +00:00
|
|
|
<h1 class="text-center">Our Events</h1>
|
|
|
|
<div class="container">
|
2013-08-02 09:11:31 +00:00
|
|
|
<div class="row">
|
2013-08-23 12:19:30 +00:00
|
|
|
<div class="col-md-4 css_noprint" id="left_column">
|
|
|
|
<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-08-05 10:21:10 +00:00
|
|
|
<li t-att-class="searches.get('date') == date[0] and 'active' or ''">
|
2013-08-21 14:57:31 +00:00
|
|
|
<a t-attf-href="/event/#{ search_path }&date=#{ date[0] }"><t t-esc="date[1]"/> <small t-if="date[3]">(<t t-esc="date[3]"/>)</small></a>
|
2013-08-02 10:11:22 +00:00
|
|
|
</li>
|
|
|
|
</t>
|
|
|
|
</ul>
|
2013-08-02 09:11:31 +00:00
|
|
|
</div>
|
2013-08-31 09:01:12 +00:00
|
|
|
<div class="col-md-8">
|
|
|
|
<t t-call="website.pager" >
|
|
|
|
<t t-set="classname">pull-left</t>
|
|
|
|
</t>
|
2013-08-12 13:43:12 +00:00
|
|
|
</div>
|
2013-08-23 12:19:30 +00:00
|
|
|
<div class="col-md-8">
|
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="">
|
|
|
|
<t t-call="website.publish"><t t-set="object" t-value="event"/></t>
|
2013-08-06 08:04:12 +00:00
|
|
|
<div class="media-body">
|
2013-08-23 12:19:30 +00:00
|
|
|
<span t-if="not event.event_ticket_ids" class="label label-default pull-right">No tickets needed.</span>
|
2013-08-21 14:09:53 +00:00
|
|
|
<t t-if="event.event_ticket_ids">
|
2013-08-23 12:19:30 +00:00
|
|
|
<span t-if="event.register_avail == 9999" class="label label-default pull-right label-info">Tickets availables.</span>
|
|
|
|
<span t-if="not event.register_avail" class="label label-default pull-right">No ticket available.</span>
|
|
|
|
<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-08-21 14:09:53 +00:00
|
|
|
<t t-if="event.register_avail <= 10">Only</t>
|
|
|
|
<t t-esc="event.register_avail"/>
|
|
|
|
<t t-if="event.register_avail > 1">tickets</t>
|
|
|
|
<t t-if="event.register_avail == 1">ticket</t>
|
2013-08-06 08:04:12 +00:00
|
|
|
available.
|
|
|
|
</span>
|
|
|
|
</t>
|
2013-08-21 14:57:31 +00:00
|
|
|
<h4 class="media-heading"><a t-attf-href="/event/#{ event.id }/"><span t-field="event.name"> </span></a></h4>
|
2013-08-06 08:04:12 +00:00
|
|
|
<div>
|
2013-08-21 14:09:53 +00:00
|
|
|
<span t-field="event.type">: </span>
|
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">
|
|
|
|
<i class="icon-map-marker"></i> <span t-field="event.city"> </span> <span t-field="event.zip"> </span>, <span t-field="event.country_id"> </span>
|
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>
|
|
|
|
</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-08-21 14:57:31 +00:00
|
|
|
<a t-attf-href="/event/#{ search_path }&type=#{ type[0] }"><t t-esc="type[1]"/> <small>(<t t-esc="type_count"/>)</small></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-08-21 14:57:31 +00:00
|
|
|
<a t-attf-href="/event/#{ search_path }&country=#{ country_id[0] }"><t t-esc="country_id[1]"/><small>(<t t-esc="country_id_count"/>)</small></a>
|
2013-08-12 14:02:43 +00:00
|
|
|
</li>
|
|
|
|
</t>
|
|
|
|
</ul>
|
|
|
|
</xpath>
|
|
|
|
</template>
|
|
|
|
|
2013-08-05 15:03:19 +00:00
|
|
|
<template id="detail">
|
|
|
|
<t t-call="website.layout">
|
|
|
|
<t t-set="head">
|
|
|
|
<script type="text/javascript" src="/website_event/static/src/js/website_event.js"></script>
|
2013-08-14 13:57:41 +00:00
|
|
|
<t t-raw="head or ''"/>
|
2013-08-05 15:03:19 +00:00
|
|
|
</t>
|
|
|
|
<t t-set="title">Events</t>
|
2013-08-31 09:01:12 +00:00
|
|
|
<div class="container">
|
2013-09-03 10:41:15 +00:00
|
|
|
<t t-call="website.publish"><t t-set="object" t-value="event_id"/></t>
|
2013-08-31 09:01:12 +00:00
|
|
|
<h1 class="text-center" t-field="event_id.name"></h1>
|
2013-09-03 10:41:15 +00:00
|
|
|
<span t-if="not event_id.event_ticket_ids" class="label label-default pull-left">No tickets needed.</span>
|
|
|
|
<t t-if="event_id.event_ticket_ids">
|
|
|
|
<span t-if="event_id.register_avail == 9999" class="label label-default pull-left">Tickets availables.</span>
|
|
|
|
<span t-if="not event_id.register_avail" class="label label-default pull-left">No ticket available.</span>
|
|
|
|
<span t-if="event_id.register_avail and event_id.register_avail != 9999" t-attf-class="label label-default pull-left label-#{ event_id.register_avail <= 10 and 'warning' or 'info' }">
|
|
|
|
<t t-if="event_id.register_avail <= 10">Only</t>
|
|
|
|
<t t-esc="event_id.register_avail"/>
|
|
|
|
<t t-if="event_id.register_avail > 1">tickets </t>
|
|
|
|
<t t-if="event_id.register_avail == 1">ticket </t>
|
|
|
|
available.
|
|
|
|
</span>
|
|
|
|
</t>
|
2013-08-31 09:01:12 +00:00
|
|
|
<h4 class="text-center">
|
|
|
|
<i class="icon-time"></i> <span t-field="event_id.date_begin"/> to
|
|
|
|
<span t-field="event_id.date_end"/>
|
|
|
|
</h4>
|
|
|
|
<h5 class="text-center" t-field="event_id.address_id"/>
|
2013-08-05 15:03:19 +00:00
|
|
|
<div class="row">
|
2013-08-23 12:19:30 +00:00
|
|
|
<div class="col-md-4 css_noprint">
|
2013-08-05 15:03:19 +00:00
|
|
|
<h4>When & Where</h4>
|
2013-08-14 13:57:41 +00:00
|
|
|
<a t-att-href="event_id.google_map_link()" target="_BLANK">
|
|
|
|
<img class="thumbnail" t-att-src="event_id.google_map_img()"/>
|
|
|
|
</a>
|
2013-08-05 15:03:19 +00:00
|
|
|
<address>
|
2013-08-06 13:00:53 +00:00
|
|
|
<pre t-field="event_id.address_id"/>
|
2013-08-05 15:03:19 +00:00
|
|
|
<i class="icon-time"></i> <span t-field="event_id.date_begin"> </span><br/>
|
2013-08-06 13:00:53 +00:00
|
|
|
<i class="icon-time"></i> <span t-field="event_id.date_end"> </span>
|
2013-08-29 15:37:48 +00:00
|
|
|
<t t-if="event_id.organizer_id">
|
2013-08-06 13:00:53 +00:00
|
|
|
<h6>Organized by:</h6>
|
2013-09-03 08:28:14 +00:00
|
|
|
<pre><t t-field="event_id.organizer_id"/><t t-if="event_id.phone"><br/><span>&#x2706;</span> <span t-field="event_id.phone"></span></t><t t-if="event_id.email"><br/><i class="icon-envelope"></i> <span t-field="event_id.email"></span></t></pre>
|
2013-08-05 15:03:19 +00:00
|
|
|
</t>
|
|
|
|
</address>
|
|
|
|
</div>
|
2013-08-23 12:19:30 +00:00
|
|
|
<div class="col-md-8">
|
2013-08-05 15:03:19 +00:00
|
|
|
<div class="media-body">
|
2013-08-07 09:47:34 +00:00
|
|
|
<t t-if="event_id.event_ticket_ids">
|
2013-09-03 10:41:15 +00:00
|
|
|
<hr/>
|
|
|
|
<form t-attf-action="/event/#{ event_id.id }/add_cart" method="post">
|
2013-08-06 15:21:58 +00:00
|
|
|
<table class="table">
|
2013-08-07 09:47:34 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2013-08-29 15:37:48 +00:00
|
|
|
<th>Ticket</th>
|
2013-08-07 09:47:34 +00:00
|
|
|
<th>Sales End</th>
|
|
|
|
<th>Price</th>
|
|
|
|
<th>Seats</th>
|
|
|
|
<th>Quantity</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr t-foreach="event_id.event_ticket_ids" t-as="ticket">
|
2013-08-29 15:37:48 +00:00
|
|
|
<td t-field="ticket.name"/>
|
2013-08-07 09:47:34 +00:00
|
|
|
<td t-field="ticket.deadline"/>
|
|
|
|
<td t-field="ticket.price"/>
|
|
|
|
<td><span t-if="ticket.register_max"><t t-esc="ticket.register_current"/>/<t t-field="ticket.register_max"/></span></td>
|
|
|
|
<td>
|
2013-08-30 10:03:16 +00:00
|
|
|
<select t-if="ticket.register_avail" t-attf-name="ticket- #{ ticket.id }" class="form-control">
|
2013-08-07 13:45:47 +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>
|
2013-08-07 09:47:34 +00:00
|
|
|
</select>
|
2013-08-07 13:45:47 +00:00
|
|
|
<span t-if="not ticket.register_avail">Not ticket available</span>
|
2013-08-07 09:47:34 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
2013-08-06 15:21:58 +00:00
|
|
|
</table>
|
2013-08-07 14:03:34 +00:00
|
|
|
<button type="submit" class="btn btn-primary" t-if="event_id.register_avail">Order Now</button>
|
2013-08-05 15:03:19 +00:00
|
|
|
</form>
|
2013-09-03 10:41:15 +00:00
|
|
|
</t>
|
|
|
|
<hr/>
|
2013-08-05 15:03:19 +00:00
|
|
|
<div t-field="event_id.description_website"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</template>
|
2013-08-02 04:35:26 +00:00
|
|
|
</data>
|
2013-08-08 22:53:36 +00:00
|
|
|
</openerp>
|