brotherton-erpnext/erpnext/templates/generators/item_group.html

54 lines
1.3 KiB
HTML
Raw Normal View History

{% block header_actions %}
{% include 'templates/includes/product_search_box.html' %}
{% endblock %}
{% block content %}
<div class="item-group-content">
<div>
{% if slideshow %}<!-- slideshow -->
{% include "templates/includes/slideshow.html" %}
{% endif %}
{% if description %}<!-- description -->
<div itemprop="description">{{ description or ""}}</div>
{% endif %}
</div>
<div>
{% if items %}
<div id="search-list" class="row">
{% for item in items %}
{{ item }}
{% endfor %}
</div>
{% if (items|length)==100 %}
2015-01-23 09:52:13 +00:00
<div class="text-muted info">Showing top 100 items.</div>
{% endif %}
{% else %}
2014-04-21 16:40:15 +00:00
<div class="text-muted">No items listed.</div>
{% endif %}
2014-04-21 06:12:22 +00:00
</div>
</div>
<script>
$(function() {
if(window.logged_in && getCookie("system_user")==="yes") {
frappe.has_permission("Item Group", "{{ name }}", "write", function(r) {
frappe.require("/assets/frappe/js/frappe/website/editable.js");
frappe.make_editable($('[itemprop="description"]'), "Item Group", "{{ name }}", "description");
});
}
});
</script>
{% endblock %}
2015-02-23 16:44:12 +00:00
{% block style %}
<style>
.product-image.missing-image {
2015-02-24 12:20:44 +00:00
border: 1px dashed {{ theme.border_color or "#d1d8dd" }};
2015-02-23 16:44:12 +00:00
}
2015-02-24 12:20:44 +00:00
.product-image.missing-image .octicon {
color: {{ theme.border_color or "#d1d8dd" }};
2015-02-23 16:44:12 +00:00
}
</style>
{% endblock %}