[FIX] website(_*): properly style primary buttons

* portal, sale

Some primary buttons had both the 'btn-primary' and 'btn-default'
classes, which is wrong. In standard bootstrap, the 'btn-default'
class seems to be masked by the use of 'btn-primary' but it is not
the case in some of our themes.
This commit is contained in:
qsm-odoo
2017-06-19 16:10:30 +02:00
parent 3553c555e0
commit 0bd189d280
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ response = request.website.render("website.template_partner_post", {'partner': p
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-default btn-primary">
<button type="submit" class="btn btn-primary">
Send <span class="fa fa-long-arrow-right"/>
</button>
</div>
@@ -251,7 +251,7 @@
<input type="hidden" name="redirect" t-att-value="redirect"/>
</div>
<div class="clearfix">
<button type="submit" class="btn btn-default btn-primary pull-right mb32 ">
<button type="submit" class="btn btn-primary pull-right mb32 ">
Confirm
<span class="fa fa-long-arrow-right" />
</button>
+4 -4
View File
@@ -33,7 +33,7 @@
<script type="text/javascript" src="/website_sale/static/src/js/website_sale_tour_shop.js"></script>
</xpath>
</template>
<template id="header" inherit_id="website.layout" name="Header Shop My Cart Link">
<xpath expr="//header//ul[@id='top_menu']/li" position="before">
<t t-set="website_sale_order" t-value="website.sale_get_order()" />
@@ -805,7 +805,7 @@
</div>
<div class="col-md-8 col-sm-7">
<a href="/shop/checkout" class="btn btn-default mb32 pull-left"><span class="fa fa-long-arrow-left" /> Previous</a>
<a class="btn btn-default btn-primary pull-right mb32 o_website_form_send" href="/shop/confirm_order">Next <span class="fa fa-long-arrow-right" /></a>
<a class="btn btn-primary pull-right mb32 o_website_form_send" href="/shop/confirm_order">Next <span class="fa fa-long-arrow-right" /></a>
</div>
</div>
</form>
@@ -1116,7 +1116,7 @@
<div>
<a href="/shop/cart" class="btn btn-default mb32">
<span class="fa fa-long-arrow-left" /> Return to Cart</a>
<a class="btn btn-default btn-primary pull-right mb32 " href="/shop/confirm_order">Confirm <span class="fa fa-long-arrow-right" /></a>
<a class="btn btn-primary pull-right mb32 " href="/shop/confirm_order">Confirm <span class="fa fa-long-arrow-right" /></a>
</div>
</div>
</div>
@@ -1273,7 +1273,7 @@
<a t-att-href="mode == ('new', 'billing') and '/shop/cart' or '/shop/checkout'" class="btn btn-default mb32">
<span class="fa fa-long-arrow-left" /> Back
</a>
<a class="btn btn-default btn-primary pull-right mb32 a-submit a-submit-disable a-submit-loading">
<a class="btn btn-primary pull-right mb32 a-submit a-submit-disable a-submit-loading">
<span>Next </span><span class="fa fa-long-arrow-right" />
</a>
</div>