brotherton-erpnext/erpnext/templates/generators/item/item_details.html

28 lines
796 B
HTML
Raw Normal View History

<div class="col-md-8">
<!-- title -->
2020-12-24 06:10:33 +00:00
<div class="product-title" itemprop="name">
{{ item_name }}
2020-12-24 06:10:33 +00:00
</div>
<p class="product-code">
<span>{{ _("Item Code") }}:</span>
<span itemprop="productID">{{ doc.name }}</span>
</p>
2020-12-24 06:10:33 +00:00
{% if has_variants %}
<!-- configure template -->
{% include "templates/generators/item/item_configure.html" %}
{% else %}
<!-- add variant to cart -->
{% include "templates/generators/item/item_add_to_cart.html" %}
{% endif %}
<!-- description -->
2020-12-24 06:10:33 +00:00
<div class="product-description" itemprop="description">
{% if frappe.utils.strip_html(doc.web_long_description or '') %}
{{ doc.web_long_description | safe }}
{% elif frappe.utils.strip_html(doc.description or '') %}
{{ doc.description | safe }}
{% else %}
{{ _("No description given") }}
{% endif %}
</div>
</div>