[IMP]Improved

bzr revid: psa@tinyerp.com-20130826110531-mnqj1q62l6epxvws
This commit is contained in:
Paramjit Singh Sahota 2013-08-26 16:35:31 +05:30
parent e6b47051ea
commit 07d067a544
1 changed files with 9 additions and 9 deletions

View File

@ -109,7 +109,7 @@
</nav>
<div class='row grid grid-align-top' style="margin-left: 16px !important;">
<t t-foreach="products" t-as="product">
<div t-attf-class="col-md-2 mb16 thumbnail text-center #{not product.website_published and 'alert alert-warning' or ''}">
<div t-attf-class="col-md-2 mb16 thumbnail text-center #{not product.website_published and 'alert alert-warning' or ''}" style="margin-right: 16px; width: 170px;">
<a t-attf-href="/shop/product/#{ product.id }/?#{ search and ('search=%s' % search) or ''}#{ category_id and ('&amp;category_id=%s' % category_id) or ''}">
<h5 t-field="product.name"> </h5>
<img class="img-rounded" t-att-src="product.img('image_small')" />
@ -123,7 +123,7 @@
<b><t t-esc="product.product_variant_ids[0].price" /></b>
</div>
<div class="mb8 mt8">
<a t-if="product.website_published" t-attf-href="./add_cart/#{ product.id }/" class="btn btn-default btn-small btn-success">Add to cart</a>
<a t-if="product.website_published" t-attf-href="./add_cart/#{ product.id }/" class="btn btn-default btn-sm btn-success">Add to cart</a>
</div>
</div>
</div>
@ -152,14 +152,14 @@
<div id="product_detail">
<t t-call="website.publish"><t t-set="object" t-value="product"/></t>
<h2 t-field="product.name"></h2>
<a t-if="not product.product_variant_ids" t-attf-href="./add_cart/#{ product.id }/" class="btn btn-default btn-small btn-success pull-right">Add to cart</a>
<a t-if="not product.product_variant_ids" t-attf-href="./add_cart/#{ product.id }/" class="btn btn-default btn-sm btn-success pull-right">Add to cart</a>
<form t-if="len(product.product_variant_ids) > 1" action="./add_cart/" class="pull-right">
<label label-default="label-default" class="radio" t-foreach="product.product_variant_ids" t-as="product">
<input type="radio" name="product_id" t-att-value="product.id" t-att-checked="product == product.product_variant_ids[0] or None" />
<t t-esc="product.variants or ''">Standard</t>
<span class="badge" t-if="product.price_extra"><t t-esc="product.price_extra > 0 and '+' or ''"/><t t-esc="product.price_extra"/></span>
</label><br/>
<button class="btn btn-default btn-small btn-success">Add to cart</button>
<button class="btn btn-default btn-sm btn-success">Add to cart</button>
</form>
<img class="media-object img-responsive" t-att-src="product.img('image_medium')"/>
<div t-field="product.website_description"></div>
@ -199,7 +199,7 @@
<t t-call="website_sale.layout">
<t t-set="title">My cart</t>
<t t-set="shop_content">
<div class="col-md-8 oe_mycart">
<div class="col-md-12 oe_mycart">
<h2>My Shopping Cart</h2>
<table class='table' id="mycart_products">
<colgroup>
@ -236,9 +236,9 @@
</td>
<td>
<div class="mb8 mt8 pull-right">
<input type="text" class="js_quantity input-mini" t-att-data-id="line.product_id.id" t-att-value="line.product_uom_qty"/>
<a t-attf-href="./remove_cart/#{ line.product_id.id }/" class="btn btn-default mb8 btn-small btn-inverse">-</a>
<a t-attf-href="./add_cart/#{ line.product_id.id }/" class="btn btn-default mb8 btn-small btn-success">+</a>
<input type="text" class="js_quantity input-sm col-md-5" t-att-data-id="line.product_id.id" t-att-value="line.product_uom_qty"/>
<a t-attf-href="./remove_cart/#{ line.product_id.id }/" class="btn btn-default mb8 btn-sm btn-inverse">-</a>
<a t-attf-href="./add_cart/#{ line.product_id.id }/" class="btn btn-default mb8 btn-sm btn-success">+</a>
</div>
</td>
</tr>
@ -288,7 +288,7 @@
</td>
<td>
<div class="pull-right">
<a t-attf-href="./add_cart/#{ product.id }/" class="btn btn-default btn-small btn-success">+</a>
<a t-attf-href="./add_cart/#{ product.id }/" class="btn btn-default btn-sm btn-success">+</a>
</div>
</td>
</tr>