[FIX] website_sale: fix 'I have a coupon code' alignment
closes odoo/odoo#27633
This commit is contained in:
@@ -1512,11 +1512,11 @@
|
||||
<template id="reduction_code" inherit_id="website_sale.total" active="True" customize_show="True" name="Promo Code">
|
||||
<xpath expr="//div[@id='cart_total']//table/tr[last()]" position="after">
|
||||
<tr t-if="not hide_coupon">
|
||||
<td colspan="3" class="text-center text-xl-right noborder">
|
||||
<td colspan="3" class="text-center text-xl-right noborder p-0">
|
||||
<span class=''>
|
||||
<t t-set='force_coupon' t-value="website_sale_order.pricelist_id.code or request.params.get('code_not_available')"/>
|
||||
<t t-if="not force_coupon">
|
||||
<button type="button" class="btn btn-link show_coupon">I have a promo code</button>
|
||||
<a href="#" class="show_coupon">I have a promo code</a>
|
||||
</t>
|
||||
<div t-attf-class="coupon_form #{not force_coupon and 'd-none'}">
|
||||
<t t-call="website_sale.coupon_form"/>
|
||||
|
||||
Reference in New Issue
Block a user