[IMP] bundlify addons (except website)
[odoo/odoo.git] / addons / website_sale / views / website_sale.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3 <data>
4
5 <!-- Layout add nav and footer -->
6
7 <template id="debugger" inherit_id="website.debugger" name="Event Debugger">
8     <xpath expr="//script[last()]" position="after">
9         <script type="text/javascript" src="/website_sale/static/src/js/website.tour.sale.js"></script>
10     </xpath>
11 </template>
12
13 <template id="editor_assets" inherit_id="website.editor_assets" name="Shop Editor" groups="base.group_sale_manager">
14   <xpath expr="." position="inside">
15       <script type="text/javascript" src="/website_sale/static/src/js/website_sale.editor.js"></script>
16       <script type="text/javascript" src="/website_sale/static/src/js/website.tour.shop.js"></script>
17   </xpath>
18 </template>
19
20 <template id="header" inherit_id="website.layout" name="Header Shop My Cart Link">
21   <xpath expr="//header//ul[@id='top_menu']/li" position="before">
22       <li t-att-class="(not website_sale_order or not website_sale_order.get_number_of_products()) and 'hidden' or ''">
23           <a href="/shop/mycart">
24               <i class="fa fa-shopping-cart"></i>
25               My cart <sup t-attf-class="my_cart_quantity label label-primary"
26                             t-esc="website_sale_order and website_sale_order.get_number_of_products() or ''"/>
27           </a>
28       </li>
29   </xpath>
30 </template>
31
32 <!-- List of categories -->
33
34 <template id="categories_recursive" name="Category list">
35   <li t-att-class="int(categ) == int(category or 0) and 'active' or ''">
36     <t t-if="categ in all_categories">
37       <a t-attf-href="/shop/category/#{ slug(categ) }" t-field="categ.name"></a>
38       <ul t-if="categ.child_id" class="nav nav-pills nav-stacked nav-hierarchy">
39           <t t-foreach="categ.child_id" t-as="categ">
40               <t t-call="website_sale.categories_recursive"/>
41           </t>
42       </ul>
43     </t>
44   </li>
45 </template>
46
47 <!-- Product list -->
48
49 <template id="search" name="Search hidden fields">
50   <form t-attf-action="/shop/{{'category/%s' % slug(category) if category else ''}}" method="get" t-att-class="search_class">
51     <input t-if="search.get('filters')" type="hidden" name="filters" t-att-value="search.get('filters')"/>
52     <div class="input-group">
53       <input type="text" name="search" class="search-query form-control" placeholder="Search..." t-att-value="search.get('search') or ''"/>
54       <span class="input-group-btn">
55         <a class="btn btn-default a-submit"><i class="fa fa-search"/></a>
56       </span>
57     </div>
58   </form>
59 </template>
60
61 <template id="products_cart" name="Product Cell">
62   <div itemscope="itemscope" itemtype="http://schema.org/Product">
63   <div class="ribbon-wrapper">
64     <div class="ribbon btn btn-danger">Sale</div>
65   </div>
66   <div class="oe_product_image">
67       <a itemprop="url" t-attf-href="/shop/product/{{ slug(product) }}?{{ keep_query('search', 'filters', category=(category and int(category)), page=(pager['page']['num'] if pager['page']['num']>1 else None)) }}">
68           <img itemprop="image" class="img img-responsive" t-attf-src="/website/image/product.template/#{product.id}/image#{'' if product_image_big else '?max_width=300&amp;max_height=300'}"/>
69       </a>
70   </div>
71   <section>
72       <h5><strong><a itemprop="name" t-attf-href="/shop/product/{{ slug(product) }}?{{ keep_query('search', 'filters', category=(category and int(category)), page=(pager['page']['num'] if pager['page']['num']>1 else None)) }}" t-field="product.name"/></strong></h5>
73       <div itemprop="offers" itemscope="itemscope" itemtype="http://schema.org/Offer" class="product_price" t-if="product.product_variant_ids">
74           <b>
75               <t t-if="product.product_variant_ids[0].lst_price != product.product_variant_ids[0].price">
76                 <del class="text-danger"
77                   t-field="product.product_variant_ids[0].lst_price" t-field-options='{
78                        "widget": "monetary",
79                        "display_currency": "website.pricelist_id.currency_id"
80                   }'/>&amp;nbsp;
81               </t>
82               <span t-field="product.product_variant_ids[0].price"  t-field-options='{
83                    "widget": "monetary",
84                    "display_currency": "website.pricelist_id.currency_id"
85                }'>
86               </span>
87               <span itemprop="price" style="display:none;" t-esc="product.product_variant_ids[0].price"/>
88               <span itemprop="priceCurrency" style="display:none;" t-esc="website.pricelist_id.currency_id.name"/>
89           </b>
90       </div>
91   </section>
92   </div>
93 </template>
94
95 <template id="products" name="Products">
96   <t t-call="website.layout">
97       <t t-set="head">
98           <script type="text/javascript" src="/web/static/lib/jquery.ui/js/jquery-ui-1.9.1.custom.js"></script>
99           <link rel='stylesheet' href="/web/static/lib/jquery.ui/css/smoothness/jquery-ui-1.9.1.custom.css"/>
100           <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
101           <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
102           <t t-raw="head or ''"/>
103       </t>
104       <t t-set="additional_title">Shop</t>
105       <div id="wrap" class="js_sale">
106         <div class="oe_structure"/>
107         <div class="container oe_website_sale">
108           <div class="products_pager">
109             <div class="row">
110               <t t-set="search_class">pagination form-inline col-md-3</t>
111               <t t-call="website_sale.search"/>
112               <t t-call="website.pager"/>
113             </div>
114           </div>
115           <div class='row'>
116             <div class="hidden" id="products_grid_before"></div>
117             <div class="col-md-12" id="products_grid">
118               <table width="100%">
119                 <tbody>
120                   <tr t-ignore="true">
121                     <td t-foreach="range(0,rows)" t-as="row" t-attf-width="#{100/rows}%"></td>
122                   </tr>
123                   <tr t-foreach="bins" t-as="tr_product">
124                     <t t-foreach="tr_product" t-as="td_product">
125                       <t t-if="td_product">
126                       <t t-set="product" t-value="td_product['product']"/>
127                       <td t-att-colspan="td_product['x'] != 1 and td_product['x']"
128                           t-att-rowspan="td_product['y'] != 1 and td_product['y']"
129                           t-attf-class="oe_product oe_grid oe-height-#{td_product['y']*2} #{ td_product['class'] }">
130
131                           <div class="oe_product_cart" t-att-data-publish="product.website_published and 'on' or 'off'">
132
133                             <div class="css_options" t-ignore="true" groups="base.group_website_publisher">
134                               <div t-attf-class="dropdown js_options" t-att-data-id="product.id">
135                                 <button class="btn btn-default" t-att-id="'dopprod-%s' % product.id" role="button" data-toggle="dropdown">Options <span class="caret"></span></button>
136                                 <ul class="dropdown-menu" role="menu" t-att-aria-labelledby="'dopprod-%s' % product.id">
137                                   <li class='dropdown-submenu'>
138                                     <a tabindex="-1" href="#">Size</a>
139                                     <ul class="dropdown-menu" name="size">
140                                       <li><a href="#">
141                                         <table>
142                                           <tr>
143                                             <td class="selected"></td>
144                                             <td t-att-class="product.website_size_x > 1 and 'selected'"></td>
145                                             <td t-att-class="product.website_size_x > 2 and 'selected'"></td>
146                                             <td t-att-class="product.website_size_x > 3 and 'selected'"></td>
147                                           </tr>
148                                           <tr>
149                                             <td t-att-class="product.website_size_y > 1 and 'selected'"></td>
150                                             <td t-att-class="product.website_size_y > 1 and product.website_size_x > 1 and 'selected'"></td>
151                                             <td t-att-class="product.website_size_y > 1 and product.website_size_x > 2 and 'selected'"></td>
152                                             <td t-att-class="product.website_size_y > 1 and product.website_size_x > 3 and 'selected'"></td>
153                                           </tr>
154                                           <tr>
155                                             <td t-att-class="product.website_size_y > 2 and 'selected'"></td>
156                                             <td t-att-class="product.website_size_y > 2 and product.website_size_x > 1 and 'selected'"></td>
157                                             <td t-att-class="product.website_size_y > 2 and product.website_size_x > 2 and 'selected'"></td>
158                                             <td t-att-class="product.website_size_y > 2 and product.website_size_x > 3 and 'selected'"></td>
159                                           </tr>
160                                           <tr>
161                                             <td t-att-class="product.website_size_y > 3 and 'selected'"></td>
162                                             <td t-att-class="product.website_size_y > 3 and product.website_size_x > 1 and 'selected'"></td>
163                                             <td t-att-class="product.website_size_y > 3 and product.website_size_x > 2 and 'selected'"></td>
164                                             <td t-att-class="product.website_size_y > 3 and product.website_size_x > 3 and 'selected'"></td>
165                                           </tr>
166                                         </table>
167                                       </a></li>
168                                     </ul>
169                                   </li>
170                                   <li class='dropdown-submenu'>
171                                     <a tabindex="-1" href="#">Styles</a>
172                                     <ul class="dropdown-menu" name="style">
173                                       <t t-foreach="styles" t-as="style">
174                                         <li t-att-class="style_in_product(style, product) and 'active' or ''"><a href="#" t-att-data-id="style.id" t-att-data-class="style.html_class"><t t-esc="style.name"/></a></li>
175                                       </t>
176                                     </ul>
177                                   </li>
178                                   <li class='dropdown-submenu'>
179                                       <a tabindex="-1" href="#">Promote</a>
180                                       <ul class="dropdown-menu" name="sequence">
181                                           <li><a href="#" class="js_go_to_top">Push to top</a></li>
182                                           <li><a href="#" class="js_go_up">Push up</a>
183                                           </li>
184                                           <li><a href="#" class="js_go_down">Push down</a></li>
185                                           <li><a href="#" class="js_go_to_bottom">Push to bottom</a></li>
186                                       </ul>
187                                   </li>
188                                 </ul>
189                               </div>
190                             </div>
191
192                             <t t-set="product_image_big" t-value="td_product['x']+td_product['y'] > 2"/>
193                             <t t-call="website_sale.products_cart"/>
194                           </div>
195
196                       </td>
197                       </t>
198                       <td t-if="not td_product" class="oe-height-2"/>
199                     </t>
200                   </tr>
201                 </tbody>
202               </table>
203               <t t-if="not bins">
204                 <div class="text-center text-muted">
205                   <h3>No product found.</h3>
206                   <t groups="base.group_website_publisher" t-ignore="true">
207                     <p groups="base.group_sale_manager">Use the <i>'Content'</i> top menu to create a new product.</p>
208                   </t>
209                 </div>
210               </t>
211             </div>
212           </div>
213           <div class="products_pager">
214               <t t-call="website.pager"/>
215           </div>
216         </div>
217         <div class="oe_structure mb32"/>
218       </div>
219   </t>
220 </template>
221
222 <!-- Product Description-->
223
224 <template id="product_description" inherit_option_id="website_sale.products_cart" name="Product Description">
225   <xpath expr="//div[@class='product_price']" position="before">
226       <div class="text-info oe_subdescription" contenteditable="false">
227         <div itemprop="description" t-field="product.description_sale"></div>
228       </div>
229   </xpath>
230 </template>
231
232 <!-- Add to cart button-->
233
234 <template id="add_to_basket" inherit_option_id="website_sale.products_cart" name="Add to Cart">
235   <xpath expr="//div[@class='product_price']" position="inside">
236       <form action="/shop/add_cart" method="post" style="display: inline-block;">
237           <input name="product_id" t-att-value="product.product_variant_ids[0].id" type="hidden"/>
238           <a class="btn btn-default btn-xs fa fa-shopping-cart a-submit"/>
239       </form>
240   </xpath>
241 </template>
242
243 <!-- List view of products -->
244
245 <template id="list_view" inherit_option_id="website_sale.products" name="List View">
246   <xpath expr="//div[@id='products_grid']//table" position="replace">
247     <t t-foreach="products" t-as="product">
248       <div class="oe_product oe_list oe_product_cart" t-att-data-publish="product.website_published and 'on' or 'off'">
249         <t t-call="website_sale.products_cart"/>
250       </div>
251     </t>
252   </xpath>
253 </template>
254
255
256 <!-- product -->
257 <template id="404">
258   <t t-call="website.layout">
259       <div id="wrap">
260           <div class="oe_structure oe_empty">
261               <div class="container">
262                   <h1 class="mt32">Product not found!</h1>
263                   <p>Sorry, this product is not available anymore.</p>
264                   <p><a t-attf-href="/shop">Return to the product list.</a></p>
265               </div>
266           </div>
267       </div>
268   </t>
269 </template>
270
271 <template id="product" name="Product">
272   <t t-call="website.layout">
273       <t t-set="head">
274           <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
275           <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
276           <link rel='stylesheet' href='/website_sale/static/src/css/website_mail.css'/>
277       </t>
278       <t t-set="additional_title" t-value="product.name"/>
279       <div itemscope="itemscope" itemtype="http://schema.org/Product" id="wrap" class="js_sale">
280
281         <section class="container mt8">
282           <div class="row">
283             <div class="col-sm-4">
284                 <ol class="breadcrumb">
285                     <li><a t-attf-href="/shop?{{ keep_query('search', 'filters', 'page') if not category else keep_query('search', 'filters') }}">Products</a></li>
286                     <li t-if="category"><a t-attf-href="/shop/category/{{ slug(category) }}?{{ keep_query('search', 'filters', 'page') }}" t-field="category.name"/></li>
287                     <li class="active"><span t-field="product.name"/></li>
288                 </ol>
289             </div>
290             <div class="col-sm-3">
291               <t t-set="search_class">pull-right</t>
292               <t t-call="website_sale.search"/>
293             </div>
294             <div class="col-sm-4" groups="base.group_sale_manager">
295                 <t t-call="website.publish_management">
296                   <t t-set="object" t-value="product"/>
297                   <t t-set="publish_edit" t-value="True"/>
298                   <t t-set="action" t-value="'product.product_template_action'"/>
299                 </t>
300             </div>
301           </div>
302         </section>
303
304         <section class="container oe_website_sale" id="product_detail">
305           <div class="row">
306             <div class="col-sm-7 col-md-7 col-lg-7">
307                 <span itemprop="image" t-field="product.image" t-field-options='{"widget": "image", "class": "product_detail_img"}'/>
308             </div><div class="col-sm-5 col-md-5 col-lg-4 col-lg-offset-1">
309                 <h1 itemprop="name" t-field="product.name">Product Name</h1>
310                 <span itemprop="url" style="display:none;" t-esc="'/shop/product/%s' % slug(product)"/>
311                 <form action="/shop/add_cart" class="js_add_cart_json" method="POST">
312                     <input type="hidden" t-if="len(product.product_variant_ids) == 1" name="product_id" t-att-value="product.product_variant_ids[0].id"/>
313                     <t t-if="len(product.product_variant_ids) &gt; 1">
314                         <label label-default="label-default" class="radio" t-foreach="product.product_variant_ids" t-as="variant_id">
315                             <input type="radio" name="product_id" t-att-value="variant_id.id" t-att-checked="variant_id == product.product_variant_ids[0] or None"/>
316                             <t t-esc="variant_id.variants or ''">Standard</t>
317                             <span class="badge" t-if="variant_id.price_extra">
318                                 <t t-esc="variant_id.price_extra > 0 and '+' or ''"/><span t-field="variant_id.price_extra" t-field-options='{
319                                              "widget": "monetary",
320                                              "display_currency": "website.pricelist_id.currency_id"
321                                          }'/>
322                             </span>
323                         </label>
324                     </t>
325
326                     <div itemprop="offers" itemscope="itemscope" itemtype="http://schema.org/Offer" class="product_price mt16" t-if="product.product_variant_ids">
327                         <h4>
328                             <t t-if="product.product_variant_ids[0].lst_price != product.product_variant_ids[0].price">
329                             <span class="text-danger" style="text-decoration: line-through;"
330                               t-field="product.product_variant_ids[0].lst_price"
331                               t-field-options='{
332                                  "widget": "monetary",
333                                  "display_currency": "website.pricelist_id.currency_id"
334                              }'/><br/>
335                             </t>
336                             <b class="oe_price"
337                               t-field="product.product_variant_ids[0].price"
338                               t-field-options='{
339                                  "widget": "monetary",
340                                  "display_currency": "website.pricelist_id.currency_id"
341                              }'/>
342                             <span itemprop="price" style="display:none;" t-esc="product.product_variant_ids[0].price"/>
343                             <span itemprop="priceCurrency" style="display:none;" t-esc="website.pricelist_id.currency_id.name"/>
344                         </h4>
345                     </div>
346                     <a class="btn btn-primary btn-lg mt8 a-submit">Add to Cart</a>
347                     <hr t-if="product.description_sale"/>
348                     <div><p t-field="product.description_sale" class="text-muted"/></div>
349                     <hr/>
350                     <p class="text-muted">
351                         30-day money-back guarantee<br/>
352                         Free Shipping in U.S.<br/>
353                         Buy now, get in 2 days
354                     </p>
355                 </form>
356             </div>
357           </div>
358         </section>
359         <div itemprop="description" t-field="product.website_description" class="oe_structure mt16" id="product_full_description"/>
360       </div>
361   </t>
362 </template>
363
364 <!-- Product option: related / recommended products -->
365 <template id="recommended_products" inherit_id="website_sale.product" inherit_option_id="website_sale.product" name="Recommended Products">
366   <xpath expr="//div[@id='product_full_description']" position="after">
367       <div class="container mt32" t-if="product.recommended_products()">
368           <h3>Customers who have bought this product also bought:</h3>
369           <div class='row mt16' style="margin-left: 15px !important;">
370           <t t-foreach="product.recommended_products()" t-as="product">
371               <div class='col-md-2 thumbnail' style='width: 170px; margin-right: 16px;'>
372                   <div class='mt16 text-center'>
373                       <span t-field="product.image_small" t-field-options='{"widget": "image", "class": "img-rounded shadow" }'/>
374                       <h5>
375                           <a t-attf-href="/shop/product/#{ slug(product) }"
376                              style="display: block">
377                               <span t-field='product.name'
378                                     style="display: block"/>
379                           </a>
380                       </h5>
381                   </div>
382               </div>
383           </t>
384           </div>
385       </div>
386   </xpath>
387 </template>
388
389 <!-- Product option: attributes -->
390 <template id="product_attributes" inherit_id="website_sale.product" inherit_option_id="website_sale.product" name="Product attributes" groups="product.group_product_attributes">
391 <xpath expr="//p[@t-field='product.description_sale']" position="after">
392   <hr t-if="product.attribute_lines"/>
393   <p class="text-muted">
394     <t t-set="attr" t-value="None"/>
395     <t t-foreach="product.attribute_lines" t-as="attribute"><br t-if="attr and attribute.attribute_id.id != attr"/><t t-if="attribute.attribute_id.id != attr"><span t-field="attribute.attribute_id"/>: </t><t t-if="attribute.attribute_id.id == attr">, </t><t t-if="attribute.attribute_id.type == 'distinct'"><span t-field="attribute.value_id"/></t><t t-if="attribute.attribute_id.type == 'float'"><span t-field="attribute.value"/></t><t t-set="attr" t-value="attribute.attribute_id.id"/></t>
396   </p>
397 </xpath>
398 </template>
399
400 <!-- Product options: OpenChatter -->
401 <template id="product_option_openchatter" inherit_option_id="website_sale.product" name="Discussion">
402     <xpath expr="//div[@t-field='product.website_description']" position="after">
403         <hr class="mb32"/>
404         <section class="container">
405             <div class="row col-md-10 col-md-offset-1">
406                 <div class="text-muted">
407                     <h3 class="fa fa-comment-o">
408                         <a id="comments">
409                             <t t-if="len(product.website_message_ids) &lt;= 1" ><t t-esc="len(product.website_message_ids)"/> comment</t>
410                             <t t-if="len(product.website_message_ids) > 1"><t t-esc="len(product.website_message_ids)"/> comments</t>
411                         </a>
412                     </h3>
413                 </div>
414                 <ul class="media-list" id="comments-list"  t-if="product.website_message_ids">
415                     <li t-foreach="product.website_message_ids" t-as="message" class="media">
416                         <div class="media-body oe_msg">
417                             <img class="media-object pull-left oe_msg_avatar" t-att-src="'/website/image?model=res.partner&amp;field=image_small&amp;id='+str(message.author_id.id)" style="width: 50px; margin-right: 10px;"/>
418                             <div class="media-body oe_msg_content">
419                                 <t t-call="website.publish_short">
420                                     <t t-set="object" t-value="message"/>
421                                 </t>
422                                 <h5 class="media-heading">
423                                     <span t-field="message.author_id"/> <small>on <span t-field="message.date"/></small>
424                                 </h5>
425                                 <div t-field="message.body"/>
426                                 <div>
427                                     <div class="oe_msg_attachment" t-foreach='message.attachment_ids' t-as='attachment'>
428                                         <a t-att-href="'/mail/download_attachment?model=mail.message&amp;id='+str(message.id)+'&amp;method=download_attachment&amp;attachment_id='+str(attachment.id)" target="_blank">
429                                             <t t-if="attachment.file_type_icon == 'webimage'">
430                                                 <img t-att-src="'/web/binary/image?model=ir.attachment&amp;field=datas&amp;id=' + str(attachment.id) + '&amp;resize=100,80'"
431                                                     class='oe_attachment_embedded'></img>
432                                             </t>
433                                             <t t-if="attachment.file_type_icon != 'webimage'">
434                                                 <img t-att-src="'/mail/static/src/img/mimetypes' + attachment.file_type + '.png'"
435                                                     class='oe_attachment_webimage'></img>
436                                             </t>
437                                             <div class='oe_attachment_name'><t t-raw='attachment.name' /></div>
438                                         </a>
439                                     </div>
440                                 </div>
441                             </div>
442                         </div>
443                     </li>
444                 </ul>
445                 <div class="css_editable_mode_hidden">
446                     <t groups="base.group_public">
447                         <a class="btn btn-primary mt8" t-attf-href="/web/login?redirect=/shop/product/#{product.id}%23comment">Log in </a> <span>to post comments</span>
448                     </t>
449                     <t groups="base.group_user,base.group_portal">
450                       <form id="comment" t-attf-action="/shop/product/#{product.id}/comment"
451                               method="POST">
452                           <img class="img pull-left img-rounded" t-att-src="'/website/image?model=res.partner&amp;field=image_small&amp;id='+str(user_id.partner_id.id)" style="width: 50px; margin-right: 10px;"/>
453                           <div class="pull-left mb32" style="width: 75%%">
454                             
455                               <textarea rows="3" name="comment" class="form-control" placeholder="Write a comment..."></textarea>
456                               <a class="btn btn-primary mt8 a-submit">Post</a>
457                           </div>
458                       </form>
459                     </t>
460                 </div>
461             </div>
462         </section>
463     </xpath>
464 </template>
465
466 <!-- Page Shop my cart -->
467
468 <template id="mycart" name="Your Cart">
469   <t t-call="website.layout">
470       <t t-set="head">
471           <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
472           <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
473           <t t-raw="head or ''"/>
474       </t>
475       <div id="wrap">
476         <div class="container oe_website_sale">
477
478           <ul class="wizard pull-right">
479               <li class="text-primary">Review Order<span class="chevron"></span></li>
480               <li class="text-muted">Shipping &amp; Billing<span class="chevron"></span></li>
481               <li class="text-muted">Payment<span class="chevron"></span></li>
482               <li class="text-muted">Confirmation<span class="chevron"></span></li>
483           </ul>
484           <h1 class="mb32">Shopping Cart</h1>
485           <div class="row">
486               <div class="col-md-8 col-sm-9 oe_mycart">
487                   <div t-if="not website_sale_order or not website_sale_order.website_order_line" class="well well-lg">
488                       Your cart is empty!
489                   </div>
490                   <table class='table table-striped table-condensed' id="mycart_products" t-if="website_sale_order and website_sale_order.website_order_line">
491                       <thead>
492                           <tr>
493                               <th colspan="2" width="100">Product</th>
494                               <th width="100">Price</th>
495                               <th width="120">Quantity</th>
496                           </tr>
497                       </thead>
498                       <tbody>
499                           <tr t-foreach="website_sale_order.website_order_line" t-as="line">
500                               <td colspan="2" t-if="not line.product_id.product_tmpl_id"></td>
501                               <td align="center" t-if="line.product_id.product_tmpl_id">
502                                   <span t-field="line.product_id.image_small"
503                                         t-field-options='{"widget": "image", "class": "img-rounded"}'/>
504                               </td>
505                               <td t-if="line.product_id.product_tmpl_id">
506                                   <div>
507                                       <a t-attf-href="/shop/product/#{ slug(line.product_id.product_tmpl_id) }">
508                                           <strong t-field="line.name"/>
509                                       </a>
510                                   </div>
511                                   <div class="text-muted" t-field="line.product_id.description_sale"/>
512                               </td>
513                               <td class="text-center" name="price">
514                                 <t t-if="abs(line.product_id.lst_price - line.price_unit) &gt; 0.2">
515                                   <del class="text-danger"
516                                     t-field="line.product_id.lst_price" t-field-options='{
517                                          "widget": "monetary",
518                                          "display_currency": "website.pricelist_id.currency_id"
519                                     }'/>&amp;nbsp;
520                                 </t>
521                                 <span t-field="line.price_unit"  t-field-options='{
522                                      "widget": "monetary",
523                                      "display_currency": "website.pricelist_id.currency_id"
524                                  }'/>
525                               </td>
526                               <td>
527                                   <div class="input-group">
528                                       <span class="input-group-addon">
529                                           <a t-attf-href="../change_cart/#{ line.id }/?remove=True" class="mb8 js_add_cart_json">
530                                               <i class="fa fa-minus"></i>
531                                           </a>
532                                       </span>
533                                       <input type="text" class="js_quantity form-control"
534                                           t-att-data-id="line.id" t-att-value="int(line.product_uom_qty)"/>
535                                       <span class="input-group-addon">
536                                           <a t-attf-href="../change_cart/#{ line.id }" class="mb8 float_left js_add_cart_json">
537                                               <i class="fa fa-plus"></i>
538                                           </a>
539                                       </span>
540                                   </div>
541
542                               </td>
543                           </tr>
544                       </tbody>
545                   </table>
546                   <t t-call="website_sale.total"/>
547                   <div class="clearfix"/>
548                   <a t-if="website_sale_order and website_sale_order.website_order_line" href="/shop/checkout" class="btn btn-primary pull-right mb32">Process Checkout <span class="fa fa-long-arrow-right"/></a>
549                   <div class="oe_structure"/>
550               </div>
551               <div class="col-lg-3 col-lg-offset-1 col-sm-3 col-md-3 text-muted" id="right_column">
552                   <h4>Policies</h4>
553                   <ul class="list-unstyled mb32">
554                       <li>&#9745; 30-days money-back guarantee</li>
555                       <li>&#9745; Invoice sent by e-Mail</li>
556                   </ul>
557                   <h4>Secure Payment</h4>
558                   <ul class="list-unstyled mb32">
559                       <li>&#9745; 256 bit encryption</li>
560                       <li>&#9745; Processed by Ogone</li>
561                   </ul>
562               </div>
563           </div>
564
565         </div>
566         <div class="oe_structure"/>
567       </div>
568   </t>
569 </template>
570
571
572 <template id="continue_shopping" inherit_id="website_sale.mycart" inherit_option_id="website_sale.mycart" name="Continue Shopping Button">
573   <xpath expr="//a[@href='/shop/checkout']" position="before">
574     <a href="/shop" class="btn btn-default mb32"><span class="fa fa-long-arrow-left"/> Continue Shopping</a>
575   </xpath>
576 </template>
577
578
579 <!-- Page Shop -->
580
581 <template id="products_categories" inherit_option_id="website_sale.products" name="Product Categories">
582   <xpath expr="//div[@id='products_grid_before']" position="inside">
583       <ul class="nav nav-pills nav-stacked mt16">
584           <li t-att-class=" '' if category else 'active' "><a href="/shop">All Products</a></li>
585           <t t-foreach="categories" t-as="categ">
586               <t t-call="website_sale.categories_recursive"/>
587           </t>
588       </ul>
589   </xpath>
590   <xpath expr="//div[@id='products_grid_before']" position="attributes">
591       <attribute name="class">col-md-3 hidden-xs</attribute>
592   </xpath>
593   <xpath expr="//div[@id='products_grid']" position="attributes">
594       <attribute name="class">col-md-9</attribute>
595   </xpath>
596 </template>
597
598 <template id="products_attributes" inherit_id="website_sale.products" inherit_option_id="website_sale.products" name="Product attribute's Filters" groups="product.group_product_attributes">
599   <xpath expr="//div[@id='products_grid_before']" position="inside">
600       <form t-attf-action="/shop/filters?{{ keep_query('search', category=(category and int(category))) }}" class="attributes" method="post">
601           <ul class="nav nav-pills nav-stacked mt16">
602               <t t-set="attribute_ids" t-value="Ecommerce.get_attribute_ids()"/>
603               <t t-foreach="attribute_ids" t-as="attribute_id">
604                 <t t-if="attribute_id.visible">
605                   <li t-if="attribute_id.value_ids and attribute_id.type == 'distinct'">
606                       <div t-field="attribute_id.name"/>
607                       <ul class="nav nav-pills nav-stacked">
608                           <t t-foreach="attribute_id.value_ids" t-as="value_id">
609                               <li t-att-class="Ecommerce.has_search_filter(attribute_id.id, value_id.id) and 'active' or ''">
610                                   <label style="margin: 0 20px;">
611                                       <input type="checkbox" t-att-name="'att-%s-%s' % (attribute_id.id, value_id.id)"
612                                           t-att-checked="Ecommerce.has_search_filter(attribute_id.id, value_id.id) and 'checked' or ''"/>
613                                       <span style="font-weight: normal" t-field="value_id.name"/>
614                                   </label>
615                               </li>
616                           </t>
617                       </ul>
618                   </li>
619                   <li t-if="attribute_id.type == 'float' and attribute_id.float_min != attribute_id.float_max">
620                       <div t-field="attribute_id.name"/>
621                       <t t-set="attribute" t-value="Ecommerce.has_search_filter(attribute_id.id)"/>
622                       <div style="margin: 0 20px;" class="js_slider"
623                         t-att-data-id="attribute_id.id"
624                         t-att-data-value-min="attribute and attribute[1][0] or attribute_id.float_min or '0'"
625                         t-att-data-value-max="attribute and attribute[1][1] or attribute_id.float_max"
626                         t-att-data-min="attribute_id.float_min or '0'"
627                         t-att-data-max="attribute_id.float_max"></div>
628                   </li>
629                 </t>
630               </t>
631           </ul>
632       </form>
633   </xpath>
634   <xpath expr="//div[@id='products_grid_before']" position="attributes">
635       <attribute name="class">col-md-3 hidden-xs</attribute>
636   </xpath>
637   <xpath expr="//div[@id='products_grid']" position="attributes">
638       <attribute name="class">col-md-9</attribute>
639   </xpath>
640 </template>
641
642 <template id="suggested_products_list" inherit_id="website_sale.mycart" inherit_option_id="website_sale.mycart" name="Suggested Products in my cart">
643   <xpath expr="//table[@id='mycart_products']" position="after">
644       <table t-if="suggested_products" class='table table-striped table-condensed'>
645           <colgroup>
646               <col width="80"/>
647               <col/>
648               <col width="100"/>
649               <col width="120"/>
650           </colgroup>
651           <thead>
652               <tr>
653                   <th colspan="2">Suggested products</th>
654               </tr>
655           </thead>
656           <tbody>
657               <tr t-foreach="suggested_products" t-as="product">
658
659                   <td>
660                       <a t-attf-href="/shop/product/#{ slug(product.product_tmpl_id) }">
661                           <span t-field="product.image_small"
662                                 t-field-options='{"widget": "image", "class": "img-rounded"}'/>
663                       </a>
664                   </td>
665                   <td>
666                       <div>
667                           <a t-attf-href="/shop/product/#{ slug(product.product_tmpl_id) }">
668                               <strong t-field="product.name"/>
669                           </a>
670                       </div>
671                       <div class="text-muted" t-field="product.description_sale"/>
672                   </td>
673                   <td>
674                       <t t-if="abs(product.lst_price - product.price) &gt; 0.2">
675                         <del class="text-danger"
676                           t-field="product.lst_price" t-field-options='{
677                                "widget": "monetary",
678                                "display_currency": "website.pricelist_id.currency_id"
679                           }'/>&amp;nbsp;
680                       </t>
681                       <span t-field="product.price"  t-field-options='{
682                            "widget": "monetary",
683                            "display_currency": "website.pricelist_id.currency_id"
684                        }'/>
685                   </td>
686                   <td class="text-center">
687                       <form action="/shop/add_cart" method="post">
688                           <input name="product_id" t-att-value="product.product_variant_ids[0].id" type="hidden"/>
689                           <a class="btn btn-link a-submit"><strong>Add to Cart</strong></a>
690                       </form>
691                   </td>
692               </tr>
693           </tbody>
694       </table>
695   </xpath>
696 </template>
697
698 <template id="reduction_code" inherit_option_id="website_sale.mycart" name="Reduction Code">
699   <xpath expr="//div[@id='right_column']" position="inside">
700       <h4>Coupon Code</h4>
701       <p>
702           Have a coupon code? Fill in this field and apply.
703       </p>
704       <form t-if="website_sale_order and website_sale_order.website_order_line" action="/shop/pricelist" method="post" class="mb32">
705           <div class="input-group">
706               <input name="promo" class='form-control' type="text" placeholder="code..." t-att-value="website_sale_order.pricelist_id.code or ''"/>
707               <div class="input-group-btn">
708                   <a class="btn btn-default a-submit">Apply</a>
709               </div>
710           </div>
711       </form>
712   </xpath>
713 </template>
714
715
716 <!-- Page confirm my cart -->
717
718 <template id="checkout">
719   <t t-call="website.layout">
720     <t t-set="head">
721         <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
722         <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
723         <t t-raw="head or ''"/>
724     </t>
725     <t t-set="additional_title">Shop - Checkout</t>
726     <div id="wrap">
727       <div class="container oe_website_sale">
728           <ul class="wizard pull-right">
729               <li><a href="/shop/mycart" class="text-success">Review Order<span class="chevron"></span></a></li>
730               <li class="text-primary">Shipping &amp; Billing<span class="chevron"></span></li>
731               <li class="text-muted">Payment<span class="chevron"></span></li>
732               <li class="text-muted">Confirmation<span class="chevron"></span></li>
733           </ul>
734           <h1>Your Address</h1>
735           <form action="/shop/confirm_order" method="post">
736
737           <div class="row">
738           <div class="col-md-8 oe_mycart">
739               <h3 class="page-header mt16">Billing Information
740                   <small groups="base.group_public"> or
741                       <a class='btn btn-primary' t-if="not partner" t-attf-href="/web/login?redirect=#{ request.httprequest.url }">Sign in</a>
742                   </small>
743               </h3>
744               <div class="row">
745                   <div t-attf-class="form-group #{error.get('name') and 'has-error' or ''} col-lg-6">
746                       <label class="control-label" for="contact_name">Your Name</label>
747                       <input type="text" name="name" class="form-control" t-att-value="checkout.get('name')"/>
748                   </div>
749                   <div t-attf-class="form-group #{error.get('company') and 'has-error' or ''} col-lg-6">
750                       <label class="control-label" for="company" style="font-weight: normal">Your Company</label>
751                       <input type="text" name="company" class="form-control" t-att-value="checkout.get('company')"/>
752                   </div>
753                   <div t-attf-class="form-group #{error.get('email') and 'has-error' or ''} col-lg-6">
754                       <label class="control-label" for="contact_name">Email</label>
755                       <input type="email" name="email" class="form-control" t-att-value="checkout.get('email')"/>
756                   </div>
757                   <div t-attf-class="form-group #{error.get('phone') and 'has-error' or ''} col-lg-6">
758                       <label class="control-label" for="phone">Phone</label>
759                       <input type="tel" name="phone" class="form-control" t-att-value="checkout.get('phone')"/>
760                   </div>
761
762                   <div t-attf-class="form-group #{error.get('street') and 'has-error' or ''} col-lg-6">
763                       <label class="control-label" for="street">Street</label>
764                       <input type="text" name="street" class="form-control" t-att-value="checkout.get('street')"/>
765                   </div>
766                   <div class="clearfix"/>
767
768                   <div t-attf-class="form-group #{error.get('city') and 'has-error' or ''} col-lg-6">
769                       <label class="control-label" for="city">City</label>
770                       <input type="text" name="city" class="form-control" t-att-value="checkout.get('city')"/>
771                   </div>
772                   <div t-attf-class="form-group #{error.get('zip') and 'has-error' or ''} col-lg-6">
773                       <label class="control-label" for="zip">Zip / Postal Code</label>
774                       <input type="text" name="zip" class="form-control" t-att-value="checkout.get('zip')"/>
775                   </div>
776                   <div t-attf-class="form-group #{error.get('state_id') and 'has-error' or ''} col-lg-6">
777                       <label class="control-label" for="state_id" style="font-weight: normal">State / Province</label>
778                       <select name="state_id" class="form-control">
779                           <option value="">select...</option>
780                           <t t-foreach="states or []" t-as="state">
781                               <option t-att-value="state.id" t-att-selected="state.id == checkout.get('state_id')"><t t-esc="state.name"/></option>
782                           </t>
783                       </select>
784                   </div>
785                   <div t-attf-class="form-group #{error.get('country_id') and 'has-error' or ''} col-lg-6">
786                       <label class="control-label" for="contact_name">Country</label>
787                       <select name="country_id" class="form-control">
788                           <option value="">Country...</option>
789                           <t t-foreach="countries or []" t-as="country">
790                               <option t-att-value="country.id" t-att-selected="country.id == checkout.get('country_id')"><t t-esc="country.name"/></option>
791                           </t>
792                       </select>
793                   </div>
794
795                   <div class="clearfix"/>
796
797                   <div class="form-group col-lg-6" groups="sale.group_delivery_invoice_address">
798                       <label>
799                           <input type="checkbox" name="shipping_different" t-att-checked="shipping"/>
800                           <span>Ship to a different address</span>
801                       </label>
802                   </div>
803               </div>
804               <div class="js_shipping row mb16" t-att-style="not shipping and 'display:none' or ''" groups="sale.group_delivery_invoice_address">
805                   <h3 class="oe_shipping col-lg-12 mt16">Shipping Information</h3>
806
807                   <div t-attf-class="form-group #{error.get('shipping_name') and 'has-error' or ''} col-lg-6">
808                       <label class="control-label" for="contact_name">Name (Shipping)</label>
809                       <input type="text" name="shipping_name" class="form-control" t-att-value="checkout.get('shipping_name', '')"/>
810                   </div>
811                   <div t-attf-class="form-group #{error.get('shipping_phone') and 'has-error' or ''} col-lg-6">
812                       <label class="control-label" for="contact_name">Phone</label>
813                       <input type="tel" name="shipping_phone" class="form-control" t-att-value="checkout.get('shipping_phone', '')"/>
814                   </div>
815                   <div t-attf-class="form-group #{error.get('shipping_street') and 'has-error' or ''} col-lg-6">
816                       <label class="control-label" for="contact_name">Street</label>
817                       <input type="text" name="shipping_street" class="form-control" t-att-value="checkout.get('shipping_street', '')"/>
818                   </div>
819                   <div class="clearfix"/>
820                   <div t-attf-class="form-group #{error.get('shipping_city') and 'has-error' or ''} col-lg-6">
821                       <label class="control-label" for="contact_name">City</label>
822                       <input type="text" name="shipping_city" class="form-control" t-att-value="checkout.get('shipping_city', '')"/>
823                   </div>
824                   <div t-attf-class="form-group #{error.get('shipping_zip') and 'has-error' or ''} col-lg-6">
825                       <label class="control-label" for="contact_name">Zip / Postal Code</label>
826                       <input type="text" name="shipping_zip" class="form-control" t-att-value="checkout.get('shipping_zip', '')"/>
827                   </div>
828                   <div t-attf-class="form-group #{error.get('shipping_state_id') and 'has-error' or ''} col-lg-6">
829                       <label class="control-label" for="contact_name" style="font-weight: normal">State / Province</label>
830                       <select name="shipping_state_id" class="form-control">
831                           <option value="">State / Province...</option>
832                           <t t-foreach="states or []" t-as="state">
833                               <option t-att-value="state.id" t-att-selected="state.id == checkout.get('shipping_state_id')"><t t-esc="state.name"/></option>
834                           </t>
835                       </select>
836                   </div>
837                   <div t-attf-class="form-group #{error.get('shipping_country_id') and 'has-error' or ''} col-lg-6">
838                       <label class="control-label" for="contact_name">Country</label>
839                       <select name="shipping_country_id" class="form-control">
840                           <option value="">Country...</option>
841                           <t t-foreach="countries or []" t-as="country">
842                               <option t-att-value="country.id" t-att-selected="country.id == checkout.get('shipping_country_id')"><t t-esc="country.name"/></option>
843                           </t>
844                       </select>
845                   </div>
846               </div>
847               <a class="btn btn-default btn-primary pull-right mb32 a-submit">Confirm <span class="fa fa-long-arrow-right"/></a>
848           </div>
849           <div class="col-lg-offset-1 col-lg-3 col-md-3 text-muted">
850               <h3 class="page-header mt16">Your Order <small><a href="/shop/mycart"><span class="fa fa-arrow-right"/> change</a></small></h3>
851               <div class="row">
852                   <div class="col-sm-6 text-right">Subtotal:</div>
853                   <div class="col-sm-6"><span t-field="website_sale_order.amount_untaxed" t-field-options='{
854                       "widget": "monetary",
855                       "display_currency": "website.pricelist_id.currency_id"
856                   }'/></div>
857                   <div class="col-sm-6 text-right">Taxes:</div>
858                   <div class="col-sm-6"><span t-field="website_sale_order.amount_tax" t-field-options='{
859                       "widget": "monetary",
860                       "display_currency": "website.pricelist_id.currency_id"
861                   }'/></div>
862                   <div class="col-sm-6 text-right"><h4>Total To Pay:</h4></div>
863                   <div class="col-sm-6"><h4><span t-field="website_sale_order.amount_total" t-field-options='{
864                       "widget": "monetary",
865                       "display_currency": "website.pricelist_id.currency_id"
866                   }'/></h4></div>
867               </div>
868           </div>
869       </div>
870       </form>
871     </div>
872     </div>
873   </t>
874 </template>
875
876 <template id="payment">
877   <t t-call="website.layout">
878       <t t-set="head">
879           <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
880           <script type="text/javascript" src="/website_sale/static/src/js/website_sale_payment.js"></script>
881           <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
882           <t t-raw="head or ''"/>
883       </t>
884       <t t-set="additional_title">Shop - Select Payment Mode</t>
885       <div id="wrap">
886         <div class="container oe_website_sale">
887
888           <ul class="wizard pull-right">
889               <li><a href="/shop/mycart" class="text-success">Review Order<span class="chevron"></span></a></li>
890               <li><a href="/shop/checkout" class="text-success">Shipping &amp; Billing<span class="chevron"></span></a></li>
891               <li class="text-primary">Payment<span class="chevron"></span></li>
892               <li class="text-muted">Confirmation<span class="chevron"></span></li>
893           </ul>
894           <h1 class="mb32">Validate Order</h1>
895           <t t-foreach="errors" t-as="error">
896             <div class="alert alert-danger" t-if="error">
897               <h4><t t-esc="error[0]"/></h4>
898               <t t-esc="error[1]"/>
899             </div>
900           </t>
901           <div class="row">
902           <div class="col-lg-8 col-sm-9 oe_mycart">
903               <table class='table table-striped table-condensed' id="mycart_products" t-if="website_sale_order and website_sale_order.website_order_line">
904                   <thead>
905                       <tr>
906                           <th colspan="2" width="80">Product</th>
907                           <th width="100">Price</th>
908                           <th width="120">Quantity</th>
909                       </tr>
910                   </thead>
911                   <tbody>
912                       <tr t-foreach="website_sale_order.website_order_line" t-as="line">
913                           <td colspan="2" t-if="not line.product_id.product_tmpl_id"></td>
914                           <td t-if="line.product_id.product_tmpl_id">
915                               <a t-attf-href="/shop/product/#{ slug(line.product_id.product_tmpl_id) }">
916                                   <span t-field="line.product_id.image_small"
917                                         t-field-options='{"widget": "image", "class": "img-rounded"}'/>
918                               </a>
919                           </td>
920                           <td t-if="line.product_id.product_tmpl_id">
921                              <strong t-field="line.product_id.name"/>
922                           </td>
923                           <td class="text-center">
924                              <span t-field="line.price_unit" t-field-options='{
925                                  "widget": "monetary",
926                                  "display_currency": "website.pricelist_id.currency_id"
927                              }'/>
928                           </td>
929                           <td>
930                              <div t-esc="line.product_uom_qty"/>
931                           </td>
932                       </tr>
933                   </tbody>
934               </table>
935               <t t-call="website_sale.total"/>
936               <div class="clearfix"/>
937               <div class="oe_structure"/>
938             </div>
939             <div class="col-lg-3 col-lg-offset-1 col-sm-3 text-muted" id="right_column">
940                 <h4>Bill To:</h4>
941                 <div t-field="order.partner_invoice_id" t-field-options='{
942                     "widget": "contact",
943                     "fields": ["address", "name", "phone", "email"]
944                     }'/>
945                 <div>
946                   <a href="/shop/checkout"><span class="fa fa-arrow-right"/> Change Address</a>
947                 </div>
948                 <t groups="sale.group_delivery_invoice_address">
949                     <h4 class="mt32">Ship To:</h4>
950                     <t t-if="website_sale_order.partner_shipping_id and website_sale_order.partner_shipping_id.id != website_sale_order.partner_invoice_id.id">
951                       <div t-field="order.partner_shipping_id" t-field-options='{
952                         "widget": "contact",
953                         "fields": ["address", "name", "phone"]
954                         }'/>
955                     </t>
956                     <address t-if="website_sale_order.partner_shipping_id.id == website_sale_order.partner_invoice_id.id">Ship to the same address</address>
957                     <div class="mb32">
958                       <a href="/shop/checkout"><span class="fa fa-arrow-right"/> Change Address</a>
959                     </div>
960                 </t>
961             </div>
962           </div>
963
964           <div class="js_payment mb64 row" t-if="acquirers and website_sale_order.amount_total" id="payment_method">
965               <div class="col-lg-5 col-sm-6">
966                   <h4>Payment Method:</h4>
967                   <ul class="list-unstyled">
968                     <li t-foreach="acquirers or []" t-as="acquirer">
969                       <label t-if="acquirer.button">
970                           <input t-att-value="acquirer.id" type="radio" name="acquirer" t-att-checked="acquirers[0] == acquirer"/>
971                           <img class="media-object" style="width: 60px; display: inline-block;"
972                               t-att-title="acquirer.name"
973                               t-att-src="'/payment_%s/static/src/img/%s_icon.png' % (acquirer.provider, acquirer.provider)"/>
974                               <span t-field="acquirer.name"/>
975                       </label>
976                     </li>
977                   </ul>
978               </div>
979               <div class="col-lg-3 col-sm-3">
980                   <t t-foreach="acquirers or []" t-as="acquirer">
981                       <div t-att-data-id="acquirer.id" class="oe_sale_acquirer_button hidden pull-right">
982                         <div t-raw="acquirer.button"/>
983                         <div t-field="acquirer.pre_msg"/>
984                       </div>
985                   </t>
986               </div>
987           </div>
988           <div class="js_payment mb64 row" t-if="not website_sale_order.amount_total and not errors" id="payment_method">
989             <div class="col-lg-8 col-sm-8">
990               <form target="_self" action="/shop/payment/validate" method="post" class="pull-right">
991                   <a style="width:100px;" class="btn btn-primary a-submit">
992                     <span>Pay Now <span class="fa fa-long-arrow-right"></span></span>
993                   </a>
994               </form>
995             </div>
996           </div>
997
998         </div>
999         <div class="oe_structure"/>
1000       </div>
1001
1002   </t>
1003 </template>
1004
1005 <template id="confirmation">
1006   <t t-call="website.layout">
1007       <t t-set="head">
1008           <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
1009           <script type="text/javascript" src="/website_sale/static/src/js/website_sale_validate.js"></script>
1010           <t t-raw="head or ''"/>
1011       </t>
1012       <t t-set="additional_title">Shop - Confirmed</t>
1013       <div id="wrap">
1014         <div class="container oe_website_sale">
1015
1016           <ul class="wizard pull-right">
1017               <li class="text-muted">Review Order<span class="chevron"></span></li>
1018               <li class="text-muted">Shipping &amp; Billing<span class="chevron"></span></li>
1019               <li class="text-muted">Payment<span class="chevron"></span></li>
1020               <li class="text-primary">Confirmation<span class="chevron"></span></li>
1021           </ul>
1022           <h1 class="mb32">Order <em t-field="order.name"/> Confirmed</h1>
1023           <div class="row">
1024               <div class="col-md-8 oe_mycart">
1025                   <h2>Thank you for your order.</h2>
1026                   <div class="oe_website_sale_tx_status" t-att-data-order-id="order.id">
1027                   </div>
1028                   <div class="clearfix"/>
1029                   <div class="oe_structure"/>
1030               </div>
1031               <div class="col-md-3 col-md-offset-1 text-muted" id="right_column">
1032                 <h4>Bill To:</h4>
1033                 <div t-field="order.partner_invoice_id" t-field-options='{
1034                     "widget": "contact",
1035                     "fields": ["address", "name", "phone", "email"]
1036                     }'/>
1037                 <t groups="sale.group_delivery_invoice_address">
1038                     <h4 class="mt32">Ship To:</h4>
1039                     <t t-if="order.partner_shipping_id and order.partner_shipping_id.id != order.partner_invoice_id.id">
1040                       <div t-field="order.partner_shipping_id" t-field-options='{
1041                         "widget": "contact",
1042                         "fields": ["address", "name", "phone"]
1043                         }'/>
1044                     </t>
1045                     <address t-if="order.partner_shipping_id.id == order.partner_invoice_id.id">Ship to the same address</address>
1046                 </t>
1047               </div>
1048           </div>
1049
1050         </div>
1051         <div class="oe_structure"/>
1052       </div>
1053
1054   </t>
1055 </template>
1056
1057 <!-- Page Shop my cart and payment total -->
1058
1059 <template id="total">
1060     <table class='pull-right mb16' id="mycart_total" t-if="website_sale_order">
1061         <thead>
1062             <tr width="100" style="border-top: 1px solid #000" id="order_total">
1063                 <th><h3>Total:</h3></th>
1064                 <th class="text-right">
1065                   <h3><span t-field="website_sale_order.amount_total" t-field-options='{
1066                       "widget": "monetary",
1067                       "display_currency": "website.pricelist_id.currency_id"
1068                     }'/></h3>
1069                 </th>
1070             </tr>
1071             <tr width="120" class="text-muted" id="order_total_taxes">
1072                 <td><abbr title="Taxes may be updated after providing shipping address">Taxes:</abbr></td>
1073                 <td class="text-right">
1074                     <span t-field="website_sale_order.amount_tax" t-field-options='{
1075                         "widget": "monetary",
1076                         "display_currency": "website.pricelist_id.currency_id"
1077                     }'/>
1078                 </td>
1079             </tr>
1080         </thead>
1081     </table>
1082 </template>
1083
1084 </data>
1085 </openerp>