Skip to content
Permalink
Browse files

[IMP] website_sale: improve promo code alert style

By using proper BS4 classes for alert, so it looks better and it is more
compatible with themes.

Also removed the unused "Option not available".
  • Loading branch information...
seb-odoo committed Mar 22, 2019
1 parent 3a56e34 commit 9916fe5e81f12d1b8d36ead325ecbdc9b5d2c037
Showing with 4 additions and 5 deletions.
  1. +4 −5 addons/website_sale/views/templates.xml
@@ -599,7 +599,6 @@
"display_currency": product.currency_id,
}'/>
</h4>
<h4 class="d-none oe_not_available bg-warning">Option not available</h4>
</div>
</template>

@@ -977,11 +976,8 @@
</template>

<template id='coupon_form' name='Coupon form'>
<t t-if="request.params.get('code_not_available')" name="code_not_available">
<p class="bg-warning">This promo code is not available</p>
</t>
<form t-att-action="'/shop/pricelist%s' % (redirect and '?r=' + redirect or '')"
method="post" class="mb32" name="coupon_code">
method="post" name="coupon_code">
<input type="hidden" name="csrf_token" t-att-value="request.csrf_token()" />
<div class="input-group w-100">
<input name="promo" class="form-control" type="text" placeholder="code..." t-att-value="website_sale_order.pricelist_id.code or None"/>
@@ -990,6 +986,9 @@
</div>
</div>
</form>
<t t-if="request.params.get('code_not_available')" name="code_not_available">
<div class="alert alert-danger text-left" role="alert">This promo code is not available.</div>
</t>
</template>

<template id="checkout">

0 comments on commit 9916fe5

Please sign in to comment.
You can’t perform that action at this time.