brotherton-erpnext/erpnext/public/js/templates/item_selector.html

16 lines
546 B
HTML
Raw Normal View History

2016-04-07 09:55:43 +00:00
<div class="row pos-item-area">
{% for (var i=0; i < data.length; i++) { var item = data[i]; %}
<div class="col-xs-3 pos-item-wrapper">
<div class="pos-item" data-name="{{ item.name }}">
<div class="pos-item-image"
{% if(item.image) { %}style="background-image: url({{ item.image }});"{% }
else { %}style="background-color: {{ item.color }};"{% } %}>
{% if(!item.image) { %}{{ item.abbr }}{% } %}
</div>
<div class="pos-item-text">
<h6 class="item-code text-ellipsis">{{ item.name }}</h6>
</div>
</div>
</div>
{% } %}
</div>