2021-04-20 16:24:52 +00:00
|
|
|
{% from "erpnext/templates/includes/macros.html" import field_filter_section, attribute_filter_section, discount_range_filters %}
|
2016-01-01 11:53:12 +00:00
|
|
|
{% extends "templates/web.html" %}
|
|
|
|
|
2020-12-29 11:48:41 +00:00
|
|
|
{% block header %}
|
2021-07-11 21:58:33 +00:00
|
|
|
<div class="mb-6">{{ _(item_group_name) }}</div>
|
2020-12-29 11:48:41 +00:00
|
|
|
{% endblock header %}
|
|
|
|
|
|
|
|
{% block script %}
|
|
|
|
<script type="text/javascript" src="/all-products/index.js"></script>
|
|
|
|
{% endblock %}
|
2016-01-04 12:20:40 +00:00
|
|
|
|
2021-03-02 14:24:01 +00:00
|
|
|
{% block breadcrumbs %}
|
|
|
|
<div class="item-breadcrumbs small text-muted">
|
|
|
|
{% include "templates/includes/breadcrumbs.html" %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
2016-01-01 11:53:12 +00:00
|
|
|
{% block page_content %}
|
2021-05-12 19:52:05 +00:00
|
|
|
<div class="item-group-content" itemscope itemtype="http://schema.org/Product"
|
|
|
|
data-item-group="{{ name }}">
|
2020-08-11 10:33:46 +00:00
|
|
|
<div class="item-group-slideshow">
|
2021-06-01 07:14:49 +00:00
|
|
|
{% if slideshow %} <!-- slideshow -->
|
2020-12-30 07:30:35 +00:00
|
|
|
{{ web_block(
|
|
|
|
"Hero Slider",
|
|
|
|
values=slideshow,
|
|
|
|
add_container=0,
|
|
|
|
add_top_padding=0,
|
|
|
|
add_bottom_padding=0,
|
|
|
|
) }}
|
2014-04-18 10:45:31 +00:00
|
|
|
{% endif %}
|
2021-06-01 07:14:49 +00:00
|
|
|
|
|
|
|
{% if description %} <!-- description -->
|
2020-12-30 07:30:35 +00:00
|
|
|
<div class="item-group-description text-muted mb-5" itemprop="description">{{ description or ""}}</div>
|
2014-04-18 10:45:31 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2020-12-30 07:30:35 +00:00
|
|
|
<div class="row">
|
2021-05-12 19:52:05 +00:00
|
|
|
<div id="product-listing" class="col-12 order-2 col-md-9 order-md-2 item-card-group-section">
|
|
|
|
<!-- Products Rendered in all-products/index.js-->
|
2020-12-29 11:48:41 +00:00
|
|
|
</div>
|
2021-05-17 15:14:41 +00:00
|
|
|
|
2020-12-29 11:48:41 +00:00
|
|
|
<div class="col-12 order-1 col-md-3 order-md-1">
|
|
|
|
<div class="collapse d-md-block mr-4 filters-section" id="product-filters">
|
|
|
|
<div class="d-flex justify-content-between align-items-center mb-5 title-section">
|
|
|
|
<div class="mb-4 filters-title" > {{ _('Filters') }} </div>
|
|
|
|
<a class="mb-4 clear-filters" href="/{{ doc.route }}">{{ _('Clear All') }}</a>
|
|
|
|
</div>
|
2021-04-20 16:24:52 +00:00
|
|
|
<!-- field filters -->
|
|
|
|
{{ field_filter_section(field_filters) }}
|
2020-12-29 11:48:41 +00:00
|
|
|
|
2021-04-20 16:24:52 +00:00
|
|
|
<!-- attribute filters -->
|
|
|
|
{{ attribute_filter_section(attribute_filters) }}
|
2020-12-29 11:48:41 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-04-18 10:45:31 +00:00
|
|
|
</div>
|
2021-07-14 14:31:36 +00:00
|
|
|
|
|
|
|
<script>
|
|
|
|
frappe.ready(() => {
|
|
|
|
$('.btn-prev, .btn-next').click((e) => {
|
|
|
|
const $btn = $(e.target);
|
|
|
|
$btn.prop('disabled', true);
|
|
|
|
const start = $btn.data('start');
|
|
|
|
let query_params = frappe.utils.get_query_params();
|
|
|
|
query_params.start = start;
|
|
|
|
let path = window.location.pathname + '?' + frappe.utils.get_url_from_dict(query_params);
|
|
|
|
window.location.href = path;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
2021-08-19 08:11:10 +00:00
|
|
|
{% endblock %}
|