{#- Small pieces the pages share: icons, and the chips for severity and status. -#}
{%- macro icon(name) -%}
{%- endmacro -%}
{%- macro severity_chip(severity) -%}
{%- if severity == "ERROR" -%}Error
{%- else -%}Warning
{%- endif -%}
{%- endmacro -%}
{%- macro status_chip(row) -%}
{%- if row.status == "FAIL" -%}{{ severity_chip(row.severity) }}
{%- elif row.status == "PASS" -%}Passed
{%- else -%}Not evaluated
{%- endif -%}
{%- endmacro -%}
{#- The file and header fields of a form that opens a return (Open and Compare pages). -#}
{%- macro open_fields(values, modules) -%}
Return header
A fact table (.parquet or .csv) carries no header, so the entity, the reference date and the module are required for one. A workbook or an XBRL instance states its own; anything entered here overrides it.