remotes/origin/artem
Gena 11 years ago
parent 6f49d871fd
commit 1bd46ab5f3
  1. 13
      batiskaf/templates/jinja2/cart_detail.jinja
  2. 7
      static/less/_.css
  3. 7
      static/less/_.less

@ -29,21 +29,22 @@
<tbody>
{% for item in cart.items %}
<tr>
<td class="text-center">
<td class="text-center table-cart-image">
{% set im = item.item.product.main_image()|thumbnail("80x80") %}
<a href="{{ item.item.product.get_absolute_url() }}"><img src="/static/{{ im.url }}"
alt=""
class="img-thumbnail"/></a>
</td>
<td>
<a href="{{ item.item.product.get_absolute_url() }}">{{ item.item.product.title }}</a>
<a href="{{ item.item.product.get_absolute_url() }}">{{ item.item.product.title }}</a><br/>
<em>{{ item.item.variation }}</em>
</td>
<td class="text-right">{{ item.item.price }} ₸</td>
<td class="text-right info">{{ item.item.price }} ₸</td>
<td class="text-right"><input type="number" value="{{ item.count }}"
name="{{ item.id }}" class="form-control col-xs-1"/>
</td>
<td class="text-right">{{ item.subtotal }} ₸</td>
<td class="text-right success">{{ item.subtotal }} ₸</td>
<td class="text-center">
<a class="text-danger" href="/store/cart/remove/?id={{ item.id }}"><span
class="glyphicon glyphicon-remove"></span> Удалить</a>
@ -54,8 +55,8 @@
</tbody>
<tfoot>
<tr>
<th colspan="2" class="text-left table-cart-itogo"><a href="javascript:history.back()" class="btn btn-warning">
<span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> Продолжить покупки</a></th>
<th colspan="2" class="text-left"><a href="javascript:history.back()" class="">
&larr; Продолжить покупки</a></th>
<th colspan="3" class="text-right table-cart-itogo">Итого: {{ cart.total }} ₸</th>
<th class="text-center">
<button type="submit" class="btn btn-primary"><span

@ -898,10 +898,13 @@ table.table-cart input {
float: right;
}
table.table-cart tbody td {
line-height: 90px;
padding-top: 45px;
}
table.table-cart tbody td.table-cart-image {
padding-top: 8px;
}
table.table-cart tbody td .form-control {
margin-top: 27px;
margin-top: -8px;
}
.breadcrumbs {
overflow: hidden !important;

@ -725,9 +725,12 @@ table.table-cart {
}
tbody{
td{
line-height: 90px;
padding-top: 45px;
&.table-cart-image{
padding-top: 8px;
}
.form-control{
margin-top: 27px;
margin-top: -8px;
}
}
}

Loading…
Cancel
Save