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

39 lines
1.0 KiB
HTML
Raw Normal View History

{% block content %}
<div class="item-group-content">
{% include 'templates/includes/product_search_box.html' %}
<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 %}
<div class="alert alert-info 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 %}