[FIX] sale,website: fix variant alert style

It should be warning instead of danger, and use appropriate BS4 classes.

Without this commit, the resulting style might be wrong with some themes.
This commit is contained in:
Sébastien Theys
2018-12-18 13:02:06 +00:00
parent 9e71571999
commit dc1b20f484
2 changed files with 3 additions and 3 deletions
@@ -37,7 +37,7 @@
</button>
</div>
</div>
<p class="css_not_available_msg bg-danger" style="padding: 15px;">This combination does not exist.</p>
<p class="css_not_available_msg alert alert-warning">This combination does not exist.</p>
</div>
</div>
</div>
@@ -155,7 +155,7 @@
"display_currency": to_currency
}'/>
<span class="js_raw_price d-none" t-esc="product.price" />
<p class="css_not_available_msg bg-danger" style="padding: 5px;">Option not available</p>
<p class="css_not_available_msg alert alert-warning">Option not available</p>
<input type="hidden" class="js_optional_same_quantity" t-attf-name="optional-add-#{product.id}" value="0"/>
<a role="button" href="#" class="js_add"><i class="fa fa-shopping-cart add-optionnal-item"></i></a>
+1 -1
View File
@@ -494,7 +494,7 @@
</t>
</t>
<t t-call="website_sale.product_price" />
<p t-if="product.has_dynamic_attributes() or len(product.product_variant_ids) &gt; 1" class="css_not_available_msg bg-danger" style="padding: 15px;">This combination does not exist.</p>
<p t-if="product.has_dynamic_attributes() or len(product.product_variant_ids) &gt; 1" class="css_not_available_msg alert alert-warning">This combination does not exist.</p>
<a role="button" id="add_to_cart" class="btn btn-primary btn-lg mt8 js_check_product a-submit" href="#">Add to Cart</a>
</div>
</form>