Compare commits
2 commits
496e8918cb
...
603e6b6aa1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
603e6b6aa1 | ||
|
|
2caf7673d7 |
3 changed files with 58 additions and 32 deletions
|
|
@ -255,6 +255,12 @@ msgstr "Ya existe un borrador guardado para esta semana."
|
||||||
msgid "Add {{ product.name }} to cart"
|
msgid "Add {{ product.name }} to cart"
|
||||||
msgstr "Añadir {{ product.name }} al carrito"
|
msgstr "Añadir {{ product.name }} al carrito"
|
||||||
|
|
||||||
|
#. module: website_sale_aplicoop
|
||||||
|
#. odoo-python
|
||||||
|
#: code:addons/website_sale_aplicoop/models/js_translations.py:0
|
||||||
|
msgid "Add %(product_name)s to cart"
|
||||||
|
msgstr "Añadir %(product_name)s al carrito"
|
||||||
|
|
||||||
#. module: website_sale_aplicoop
|
#. module: website_sale_aplicoop
|
||||||
#. odoo-python
|
#. odoo-python
|
||||||
#: code:addons/website_sale_aplicoop/controllers/website_sale.py:0
|
#: code:addons/website_sale_aplicoop/controllers/website_sale.py:0
|
||||||
|
|
@ -1240,6 +1246,12 @@ msgstr "Guardar Carrito"
|
||||||
msgid "Save as Draft"
|
msgid "Save as Draft"
|
||||||
msgstr "Guardar como Borrador"
|
msgstr "Guardar como Borrador"
|
||||||
|
|
||||||
|
#. module: website_sale_aplicoop
|
||||||
|
#. odoo-python
|
||||||
|
#: code:addons/website_sale_aplicoop/models/js_translations.py:0
|
||||||
|
msgid "Save Draft"
|
||||||
|
msgstr "Guardar borrador"
|
||||||
|
|
||||||
#. module: website_sale_aplicoop
|
#. module: website_sale_aplicoop
|
||||||
#: model_terms:ir.ui.view,arch_db:website_sale_aplicoop.eskaera_checkout
|
#: model_terms:ir.ui.view,arch_db:website_sale_aplicoop.eskaera_checkout
|
||||||
msgid "Save order as draft"
|
msgid "Save order as draft"
|
||||||
|
|
|
||||||
|
|
@ -256,6 +256,12 @@ msgstr "Gordetako zirriborro bat dagoeneko existitzen da astean honetan."
|
||||||
msgid "Add {{ product.name }} to cart"
|
msgid "Add {{ product.name }} to cart"
|
||||||
msgstr "{{ product.name }} sarrera gehitu"
|
msgstr "{{ product.name }} sarrera gehitu"
|
||||||
|
|
||||||
|
#. module: website_sale_aplicoop
|
||||||
|
#. odoo-python
|
||||||
|
#: code:addons/website_sale_aplicoop/models/js_translations.py:0
|
||||||
|
msgid "Add %(product_name)s to cart"
|
||||||
|
msgstr "%(product_name)s saskira gehitu"
|
||||||
|
|
||||||
#. module: website_sale_aplicoop
|
#. module: website_sale_aplicoop
|
||||||
#. odoo-python
|
#. odoo-python
|
||||||
#: code:addons/website_sale_aplicoop/controllers/website_sale.py:0
|
#: code:addons/website_sale_aplicoop/controllers/website_sale.py:0
|
||||||
|
|
@ -1239,6 +1245,12 @@ msgstr "Saskia Gorde"
|
||||||
msgid "Save as Draft"
|
msgid "Save as Draft"
|
||||||
msgstr "Zirriborro Gisa Gorde"
|
msgstr "Zirriborro Gisa Gorde"
|
||||||
|
|
||||||
|
#. module: website_sale_aplicoop
|
||||||
|
#. odoo-python
|
||||||
|
#: code:addons/website_sale_aplicoop/models/js_translations.py:0
|
||||||
|
msgid "Save Draft"
|
||||||
|
msgstr "Zirriborroa gorde"
|
||||||
|
|
||||||
#. module: website_sale_aplicoop
|
#. module: website_sale_aplicoop
|
||||||
#: model_terms:ir.ui.view,arch_db:website_sale_aplicoop.eskaera_checkout
|
#: model_terms:ir.ui.view,arch_db:website_sale_aplicoop.eskaera_checkout
|
||||||
msgid "Save order as draft"
|
msgid "Save order as draft"
|
||||||
|
|
|
||||||
|
|
@ -267,6 +267,34 @@
|
||||||
</t>
|
</t>
|
||||||
</div>
|
</div>
|
||||||
<div class="row g-2">
|
<div class="row g-2">
|
||||||
|
<div class="col-lg-3 mb-4 mb-lg-0">
|
||||||
|
<div class="card sticky-top cart-sticky-position" aria-label="Cart Summary">
|
||||||
|
<div class="card-header d-flex justify-content-between align-items-center gap-1">
|
||||||
|
<h6 class="mb-0 cart-title-sm" id="cart-title">My Cart</h6>
|
||||||
|
<div class="btn-group cart-btn-group gap-0" role="group">
|
||||||
|
<button type="button" class="btn btn-primary cart-btn-compact" id="save-cart-btn" t-attf-data-order-id="{{ group_order.id }}" data-bs-title="Save Cart" data-bs-toggle="tooltip">
|
||||||
|
<i class="fa fa-save cart-icon-size" />
|
||||||
|
</button>
|
||||||
|
<t t-if="group_order.home_delivery and delivery_product_id">
|
||||||
|
<button type="button" class="btn btn-outline-warning cart-btn-compact" id="home-delivery-btn" t-att-aria-label="_('Toggle home delivery')" t-att-data-bs-title="_('Home Delivery')" data-bs-toggle="tooltip">
|
||||||
|
<i class="fa fa-truck cart-icon-size" aria-hidden="true" />
|
||||||
|
</button>
|
||||||
|
</t>
|
||||||
|
<a t-attf-href="/eskaera/{{ group_order.id }}/checkout" class="btn btn-success cart-btn-compact" aria-label="Proceed to checkout" data-bs-title="Proceed to Checkout" data-bs-toggle="tooltip">
|
||||||
|
<i class="fa fa-check cart-icon-size" aria-hidden="true" />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-body cart-body-lg" id="cart-items-container" t-attf-data-order-id="{{ group_order.id }}" aria-labelledby="cart-title" aria-live="polite" aria-relevant="additions removals">
|
||||||
|
<p class="text-muted">This order's cart is empty</p>
|
||||||
|
</div>
|
||||||
|
<div class="card-footer bg-white text-center">
|
||||||
|
<a t-attf-href="/eskaera/{{ group_order.id }}/checkout" class="btn btn-success checkout-btn-lg" data-bs-title="Proceed to Checkout" data-bs-toggle="tooltip">
|
||||||
|
Proceed to Checkout
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="col-lg-9">
|
<div class="col-lg-9">
|
||||||
<div class="oe_structure oe_empty" data-name="Before Products Filter" />
|
<div class="oe_structure oe_empty" data-name="Before Products Filter" />
|
||||||
<t t-if="products">
|
<t t-if="products">
|
||||||
|
|
@ -298,34 +326,6 @@
|
||||||
</t>
|
</t>
|
||||||
<div class="oe_structure oe_empty mt-4" data-name="After Products" />
|
<div class="oe_structure oe_empty mt-4" data-name="After Products" />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-3">
|
|
||||||
<div class="card sticky-top cart-sticky-position" aria-label="Cart Summary">
|
|
||||||
<div class="card-header d-flex justify-content-between align-items-center gap-1">
|
|
||||||
<h6 class="mb-0 cart-title-sm" id="cart-title">My Cart</h6>
|
|
||||||
<div class="btn-group cart-btn-group gap-0" role="group">
|
|
||||||
<button type="button" class="btn btn-primary cart-btn-compact" id="save-cart-btn" t-attf-data-order-id="{{ group_order.id }}" data-bs-title="Save Cart" data-bs-toggle="tooltip">
|
|
||||||
<i class="fa fa-save cart-icon-size" />
|
|
||||||
</button>
|
|
||||||
<t t-if="group_order.home_delivery and delivery_product_id">
|
|
||||||
<button type="button" class="btn btn-outline-warning cart-btn-compact" id="home-delivery-btn" aria-label="Toggle home delivery" data-bs-title="Home Delivery" data-bs-toggle="tooltip">
|
|
||||||
<i class="fa fa-truck cart-icon-size" aria-hidden="true" />
|
|
||||||
</button>
|
|
||||||
</t>
|
|
||||||
<a t-attf-href="/eskaera/{{ group_order.id }}/checkout" class="btn btn-success cart-btn-compact" aria-label="Proceed to checkout" data-bs-title="Proceed to Checkout" data-bs-toggle="tooltip">
|
|
||||||
<i class="fa fa-check cart-icon-size" aria-hidden="true" />
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="card-body cart-body-lg" id="cart-items-container" t-attf-data-order-id="{{ group_order.id }}" aria-labelledby="cart-title" aria-live="polite" aria-relevant="additions removals">
|
|
||||||
<p class="text-muted">This order's cart is empty</p>
|
|
||||||
</div>
|
|
||||||
<div class="card-footer bg-white text-center">
|
|
||||||
<a t-attf-href="/eskaera/{{ group_order.id }}/checkout" class="btn btn-success checkout-btn-lg" data-bs-title="Proceed to Checkout" data-bs-toggle="tooltip">
|
|
||||||
Proceed to Checkout
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -489,9 +489,9 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="checkout-actions d-grid gap-3" id="checkout-form-labels">
|
<div class="checkout-actions d-grid gap-3" id="checkout-form-labels">
|
||||||
<button class="btn btn-success btn-lg" id="confirm-order-btn" t-attf-data-order-id="{{ group_order.id }}" data-confirmed-label="Order saved as draft" data-pickup-label="Pickup Day" aria-label="Save order as draft" data-bs-title="Save Draft" data-bs-toggle="tooltip">
|
<button class="btn btn-success btn-lg" id="confirm-order-btn" t-attf-data-order-id="{{ group_order.id }}" t-att-data-confirmed-label="_('Order saved as draft')" t-att-data-pickup-label="_('Pickup Day')" t-att-aria-label="_('Save order as draft')" t-att-data-bs-title="_('Save Draft')" data-bs-toggle="tooltip">
|
||||||
<i class="fa fa-save" aria-hidden="true" t-translation="off" />
|
<i class="fa fa-save" aria-hidden="true" t-translation="off" />
|
||||||
<span>Save Draft</span>
|
<span t-esc="_('Save Draft')" />
|
||||||
</button>
|
</button>
|
||||||
<a t-attf-href="/eskaera/{{ group_order.id }}" class="btn btn-outline-secondary btn-lg" aria-label="Back to cart page" data-bs-title="Back to Cart" data-bs-toggle="tooltip">
|
<a t-attf-href="/eskaera/{{ group_order.id }}" class="btn btn-outline-secondary btn-lg" aria-label="Back to cart page" data-bs-title="Back to Cart" data-bs-toggle="tooltip">
|
||||||
<i class="fa fa-arrow-left" aria-hidden="true" t-translation="off" />
|
<i class="fa fa-arrow-left" aria-hidden="true" t-translation="off" />
|
||||||
|
|
@ -636,6 +636,8 @@
|
||||||
<t t-set="safe_uom_category" t-value="product_display_info.get(product.id, {}).get('safe_uom_category', '')" />
|
<t t-set="safe_uom_category" t-value="product_display_info.get(product.id, {}).get('safe_uom_category', '')" />
|
||||||
<t t-set="quantity_step" t-value="product_display_info.get(product.id, {}).get('quantity_step', 1)" />
|
<t t-set="quantity_step" t-value="product_display_info.get(product.id, {}).get('quantity_step', 1)" />
|
||||||
<t t-set="order_id_safe" t-value="group_order.id if group_order else ''" />
|
<t t-set="order_id_safe" t-value="group_order.id if group_order else ''" />
|
||||||
|
<t t-set="out_of_stock_label" t-value="_('Out of stock')" />
|
||||||
|
<t t-set="add_to_cart_label" t-value="_('Add %(product_name)s to cart') % {'product_name': product.name}" />
|
||||||
<form
|
<form
|
||||||
class="add-to-cart-form"
|
class="add-to-cart-form"
|
||||||
t-attf-data-order-id="{{ order_id_safe }}"
|
t-attf-data-order-id="{{ order_id_safe }}"
|
||||||
|
|
@ -660,8 +662,8 @@
|
||||||
class="add-to-cart-btn"
|
class="add-to-cart-btn"
|
||||||
type="button"
|
type="button"
|
||||||
t-att-data-out-of-stock="'true' if product.is_out_of_stock else 'false'"
|
t-att-data-out-of-stock="'true' if product.is_out_of_stock else 'false'"
|
||||||
t-attf-aria-label="{{ 'Out of stock' if product.is_out_of_stock else 'Add %s to cart' % product.name }}"
|
t-att-aria-label="out_of_stock_label if product.is_out_of_stock else add_to_cart_label"
|
||||||
t-attf-title="{{ 'Out of stock' if product.is_out_of_stock else 'Add %s to cart' % product.name }}"
|
t-att-title="out_of_stock_label if product.is_out_of_stock else add_to_cart_label"
|
||||||
>
|
>
|
||||||
<i t-attf-class="fa {{ 'fa-ban text-muted' if product.is_out_of_stock else 'fa-shopping-cart' }}" aria-hidden="true" />
|
<i t-attf-class="fa {{ 'fa-ban text-muted' if product.is_out_of_stock else 'fa-shopping-cart' }}" aria-hidden="true" />
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue