2015-09-16 18:52:52 +05:30
|
|
|
|
{% from "erpnext/templates/includes/macros.html" import product_image_square %}
|
|
|
|
|
|
|
|
|
|
{% macro item_name_and_description(d) %}
|
2016-05-02 11:43:44 +05:30
|
|
|
|
<div class="row item_name_and_description">
|
2015-09-16 18:52:52 +05:30
|
|
|
|
<div class="col-xs-4 col-sm-2 order-image-col">
|
|
|
|
|
<div class="order-image">
|
2016-11-16 15:17:55 +05:30
|
|
|
|
{{ product_image_square(d.thumbnail or d.image) }}
|
2015-09-16 18:52:52 +05:30
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-xs-8 col-sm-10">
|
|
|
|
|
{{ d.item_code }}
|
2019-03-19 11:48:32 +05:30
|
|
|
|
<div class="text-muted small item-description">
|
|
|
|
|
{{ html2text(d.description) | truncate(140) }}
|
|
|
|
|
</div>
|
2015-09-16 18:52:52 +05:30
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-06-22 15:46:38 +05:30
|
|
|
|
{% endmacro %}
|
2016-11-14 13:13:53 +05:30
|
|
|
|
|
2016-06-22 15:46:38 +05:30
|
|
|
|
{% macro item_name_and_description_cart(d) %}
|
2016-05-02 11:43:44 +05:30
|
|
|
|
<div class="row item_name_dropdown">
|
|
|
|
|
<div class="col-xs-4 col-sm-4 order-image-col">
|
|
|
|
|
<div class="order-image">
|
2016-11-16 15:17:55 +05:30
|
|
|
|
{{ product_image_square(d.thumbnail or d.image) }}
|
2016-05-12 15:22:59 +05:30
|
|
|
|
</div>
|
2016-05-02 11:43:44 +05:30
|
|
|
|
</div>
|
|
|
|
|
<div class="col-xs-8 col-sm-8">
|
2018-02-12 06:58:57 +01:00
|
|
|
|
{{ d.item_name|truncate(25) }}
|
2016-06-22 15:46:38 +05:30
|
|
|
|
<div class="input-group number-spinner">
|
|
|
|
|
<span class="input-group-btn">
|
2019-03-19 11:48:32 +05:30
|
|
|
|
<button class="btn btn-light cart-btn" data-dir="dwn">
|
2016-06-22 15:46:38 +05:30
|
|
|
|
–</button>
|
|
|
|
|
</span>
|
2016-11-14 13:13:53 +05:30
|
|
|
|
<input class="form-control text-right cart-qty"
|
|
|
|
|
value = "{{ d.get_formatted('qty') }}"
|
|
|
|
|
data-item-code="{{ d.item_code }}">
|
2016-06-22 15:46:38 +05:30
|
|
|
|
<span class="input-group-btn">
|
2019-03-19 11:48:32 +05:30
|
|
|
|
<button class="btn btn-light cart-btn" data-dir="up">
|
2016-06-22 15:46:38 +05:30
|
|
|
|
+</button>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
2016-05-02 11:43:44 +05:30
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-06-22 15:51:42 +05:30
|
|
|
|
{% endmacro %}
|