5f8b358fd4
- Refactored Homepage with customisable Hero Section - New Homepage Section to add content on Homepage as cards or using Custom HTML - Products page at "/all-products" with customisable filters - Item Configure dialog to find an Item Variant filtered by attribute values - Contact Us dialog on Item page - Customisable Item page content using the Website Content field
43 lines
1.4 KiB
HTML
43 lines
1.4 KiB
HTML
{% for d in doc.items %}
|
||
<tr data-name="{{ d.name }}">
|
||
<td>
|
||
<div class="font-weight-bold">
|
||
{{ d.item_name }}
|
||
</div>
|
||
<div>
|
||
{{ d.item_code }}
|
||
</div>
|
||
{%- set variant_of = frappe.db.get_value('Item', d.item_code, 'variant_of') %}
|
||
{% if variant_of %}
|
||
<span class="text-muted">
|
||
{{ _('Variant of') }} <a href="{{frappe.db.get_value('Item', variant_of, 'route')}}">{{ variant_of }}</a>
|
||
</span>
|
||
{% endif %}
|
||
<div class="mt-2">
|
||
<textarea data-item-code="{{d.item_code}}" class="form-control" rows="2" placeholder="{{ _('Add notes') }}">{{d.additional_notes or ''}}</textarea>
|
||
</div>
|
||
</td>
|
||
<td class="text-right">
|
||
<div class="input-group number-spinner">
|
||
<span class="input-group-prepend d-none d-sm-inline-block">
|
||
<button class="btn btn-outline-secondary cart-btn" data-dir="dwn">–</button>
|
||
</span>
|
||
<input class="form-control text-right cart-qty border-secondary" value="{{ d.get_formatted('qty') }}" data-item-code="{{ d.item_code }}">
|
||
<span class="input-group-append d-none d-sm-inline-block">
|
||
<button class="btn btn-outline-secondary cart-btn" data-dir="up">+</button>
|
||
</span>
|
||
</div>
|
||
</td>
|
||
{% if cart_settings.enable_checkout %}
|
||
<td class="text-right">
|
||
<div>
|
||
{{ d.get_formatted('amount') }}
|
||
</div>
|
||
<span class="text-muted">
|
||
{{ _('Rate:') }} {{ d.get_formatted('rate') }}
|
||
</span>
|
||
</td>
|
||
{% endif %}
|
||
</tr>
|
||
{% endfor %}
|