2017-10-17 07:00:34 +00:00
|
|
|
<div class="app-listing item-list image-view-container item-selector">
|
2016-04-07 09:55:43 +00:00
|
|
|
{% for (var i=0; i < data.length; i++) { var item = data[i]; %}
|
2017-10-17 07:00:34 +00:00
|
|
|
{% if (i % 4 === 0) { %}<div class="image-view-row">{% } %}
|
|
|
|
<div class="image-view-item" data-name="{{ item.name }}">
|
|
|
|
<div class="image-view-header doclist-row">
|
|
|
|
<div class="list-value">
|
|
|
|
<a class="grey list-id" data-name="{{item.name}}"
|
|
|
|
title="{{ item.item_name || item.name}}">
|
|
|
|
{{item.item_name || item.name}}</a>
|
|
|
|
</div>
|
2016-04-07 09:55:43 +00:00
|
|
|
</div>
|
2017-10-17 07:00:34 +00:00
|
|
|
<div class="image-view-body">
|
|
|
|
<a data-item-code="{{ item.name }}"
|
|
|
|
title="{{ item.item_name || item.name }}"
|
|
|
|
>
|
|
|
|
<div class="image-field"
|
|
|
|
style="
|
|
|
|
{% if (!item.image) { %}
|
|
|
|
background-color: #fafbfc;
|
|
|
|
{% } %}
|
|
|
|
border: 0px;"
|
|
|
|
>
|
|
|
|
{% if (!item.image) { %}
|
|
|
|
<span class="placeholder-text">
|
|
|
|
{%= frappe.get_abbr(item.item_name || item.name) %}
|
|
|
|
</span>
|
|
|
|
{% } %}
|
|
|
|
{% if (item.image) { %}
|
|
|
|
<img src="{{ item.image }}" alt="{{item.item_name || item.name}}">
|
|
|
|
{% } %}
|
|
|
|
</div>
|
|
|
|
</a>
|
2016-04-07 09:55:43 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-10-17 07:00:34 +00:00
|
|
|
{% if ((i % 4 === 3) || (i===data.length - 1)) { %}</div>{% } %}
|
|
|
|
{% endfor %}
|
2021-08-19 08:11:10 +00:00
|
|
|
</div>
|