{% from "erpnext/templates/includes/macros.html" import item_card, item_card_body %}
{%- if title -%}
{{ title }}
{%- endif -%} {%- if subtitle -%}
{{ subtitle }}
{%- endif -%}
{%- if primary_action -%}
{{ primary_action_label }}
{%- endif -%}
{%- for index in ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'] -%} {%- set item = values['card_' + index + '_item'] -%} {%- if item -%} {%- set web_item = frappe.get_doc("Website Item", item) -%} {{ item_card( web_item, is_featured=values['card_' + index + '_featured'], is_full_width=True, align="Center" ) }} {%- endif -%} {%- endfor -%}