summaryrefslogtreecommitdiff
path: root/addons/lunch/static/src/xml
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2015-09-11 14:18:28 +0200
committerqsm-odoo <qsm@odoo.com>2015-09-11 16:22:19 +0200
commit047dab70296267aafbdbc1fe6dd6d545d31e166f (patch)
tree5c2c051d12521534108a98c5de10ee163a3de3c5 /addons/lunch/static/src/xml
parentf5f0edaae13b4bb646fbd6de7bfc0fa5b0d40b0d (diff)
[REF] lunch: XML/LESS/JS
CSS to LESS Adaptation to new webclient
Diffstat (limited to 'addons/lunch/static/src/xml')
-rw-r--r--addons/lunch/static/src/xml/lunch.xml57
1 files changed, 21 insertions, 36 deletions
diff --git a/addons/lunch/static/src/xml/lunch.xml b/addons/lunch/static/src/xml/lunch.xml
index 3eedfc9637d..77bce1be30d 100644
--- a/addons/lunch/static/src/xml/lunch.xml
+++ b/addons/lunch/static/src/xml/lunch.xml
@@ -1,42 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates>
- <t t-name="lunch_order_widget_previous_orders">
- <div>
- <div class="previous_order_lines"></div>
- </div>
- </t>
- <t t-name="lunch_order_widget_no_previous_order">
- <div class="oe_inline o_lunch_intro">
- <h3>This is the first time you order a meal</h3>
- <p class="text-muted">Select a product and put your order comments on the note.</p>
- <p class="text-muted">Your favorite meals will be created based on your last orders.</p>
- <p class="text-muted">Don't forget the alerts displayed in the reddish area</p>
- </div>
- </t>
+ <div t-name="lunch_order_widget_no_previous_order" class="col-md-12">
+ <h3>This is the first time you order a meal</h3>
+ <p class="text-muted">Select a product and put your order comments on the note.</p>
+ <p class="text-muted">Your favorite meals will be created based on your last orders.</p>
+ <p class="text-muted">Don't forget the alerts displayed in the reddish area</p>
+ </div>
<t t-name="lunch_order_widget_previous_orders_list">
- <t t-foreach="categories" t-as="product_category">
- <div class="o_lunch_30pc">
- <h2><t t-esc="product_category"/></h2>
- <t t-foreach='categories[product_category]' t-as='product'>
- <div class="o_lunch_vignette">
- <span class="pull-right add_button oe_edit_only" t-att-id="product.id">
- <button type="button" class="oe_button oe_link">
- <span class="fa fa-plus-square"></span>
- <span>Add</span>
- </button>
- </span>
- <div class="oe_group_text_button">
- <div class="o_lunch_text">
- <t t-esc="product.product_id[1]"/>
- <span class="badge">
- <t t-esc="widget.monetary.format_value(product.price)"/> <t t-esc="product.currency_id[1]"/>
- </span>
- </div>
- </div>
- <div class="text-muted"><t t-if="product.note != false" t-esc="product.note"/></div>
- </div>
- </t>
+ <div t-foreach="categories" t-as="product_category" class="col-sm-4">
+ <h3><t t-esc="product_category"/></h3>
+ <div t-foreach='categories[product_category]' t-as='product' class="o_lunch_vignette">
+ <button type="button" class="pull-right o_add_button oe_edit_only oe_link" t-att-data-id="product.id">
+ <span class="fa fa-plus-square"></span>
+ <span>Add</span>
+ </button>
+ <div class="o_lunch_text">
+ <t t-esc="product.product_id[1]"/>
+ <span class="badge">
+ <t t-esc="widget.monetary.format_value(product.price)"/> <t t-esc="product.currency_id[1]"/>
+ </span>
+ </div>
+ <div class="text-muted"><t t-if="product.note != false" t-esc="product.note"/></div>
</div>
- </t>
+ </div>
</t>
</templates>