diff --git a/erpnext/templates/generators/item_group.html b/erpnext/templates/generators/item_group.html index 40a064fc76..f2f16d8718 100644 --- a/erpnext/templates/generators/item_group.html +++ b/erpnext/templates/generators/item_group.html @@ -1,6 +1,12 @@ {% extends "templates/web.html" %} -{% block header %}

{{ name }}

{% endblock %} +{% block header %} +

{{ name }}

+{% endblock header %} + +{% block script %} + +{% endblock %} {% block page_content %}
@@ -9,30 +15,118 @@ {% include "templates/includes/slideshow.html" %} {% endif %} {% if description %} -
{{ description or ""}}
+
{{ description or ""}}
{% endif %}
-
-
- {% if items %} -
- {% for i in range(0, page_length) %} - {% if items[i] %} - {%- set item = items[i] %} +
+
+
+ {% if items %} + {% for item in items %} {% include "erpnext/www/all-products/item_row.html" %} - {% endif %} + {% endfor %} + {% else %} + {% include "erpnext/www/all-products/not_found.html" %} + {% endif %} +
+
+
+
+
+
{{ _('Filters') }}
+ {{ _('Clear All') }} +
+ {% for field_filter in field_filters %} + {%- set item_field = field_filter[0] %} + {%- set values = field_filter[1] %} +
+
{{ item_field.label }}
+ + {% if values | len > 20 %} + + + {% endif %} + + {% if values %} +
+ {% for value in values %} +
+ +
+ {% endfor %} +
+ {% else %} + {{ _('No values') }} + {% endif %} +
+ {% endfor %} + + {% for attribute in attribute_filters %} +
+
{{ attribute.name}}
+ {% if values | len > 20 %} + + + {% endif %} + + {% if attribute.item_attribute_values %} +
+ {% for attr_value in attribute.item_attribute_values %} +
+ +
+ {% endfor %} +
+ {% else %} + {{ _('No values') }} + {% endif %} +
{% endfor %}
-
- {% if frappe.form_dict.start|int > 0 %} - {{ _("Prev") }} - {% endif %} - {% if items|length > page_length %} - {{ _("Next") }} - {% endif %} -
- {% else %} -
{{ _("No items listed") }}.
+ + +
+
+
+
+ {% if frappe.form_dict.start|int > 0 %} + + {% endif %} + {% if items|length >= page_length %} + {% endif %}