[IMP] Microdata for event tickets

bzr revid: ddm@openerp.com-20140203151648-hggq6pc54ayuqzj5
This commit is contained in:
ddm@openerp.com 2014-02-03 16:16:48 +01:00
parent 6a20494b50
commit 2646680a45
1 changed files with 7 additions and 7 deletions

View File

@ -22,7 +22,7 @@
<template id="event_description_full" inherit_id="website_event.event_description_full" inherit_option_id="website_event.event_description_full" name="Event's Ticket form">
<xpath expr="//div[@t-field='event.description']" position="before">
<form t-attf-action="/event/add_cart?event_id=#{ event.id }" method="post" t-if="event.event_ticket_ids">
<table class="table table-striped" itemprop="tickets">
<table itemprop="offers" class="table table-striped">
<thead>
<tr>
<th>Ticket Type</th>
@ -33,14 +33,14 @@
</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>
<tr itemscope="itemscope" itemtype="http://data-vocabulary.org/Offer" t-foreach="event.event_ticket_ids" t-as="ticket">
<td itemscope="itemscope" itemtype="http://data-vocabulary.org/Product">
<div itemprop="name" t-field="ticket.name"/>
<div><small itemprop="description" t-field="ticket.product_id.description_sale"/></div>
</td>
<td><span t-field="ticket.deadline"/></td>
<td><span itemprop="priceValidUntil" t-field="ticket.deadline"/></td>
<td>
<t t-if="ticket.price or editable"><span t-field="ticket.price" t-field-options='{
<t t-if="ticket.price or editable"><span itemprop="price" t-field="ticket.price" t-field-options='{
"widget": "monetary",
"display_currency": "website.pricelist_id.currency_id"
}'/>