{# Generic -DR (Data_Result / "run") page: title/download-button/processor-reference chrome from run_macros.jinja.html, with the record's resolver services, attribute groups and SUM payload (each if present) rendered the same way the other page templates render them. This is the fallback for any -DR record with no more specific (issuer-registered) dedicated template - see renderer_config.py. An issuer with a dedicated view for a specific record type registers a more specific RendererRule that wins via "last match wins"; this file is never modified per-issuer. #} {% import "pac_info/run_macros.jinja.html" as run_macros with context %} {% import "pac_info/base-components.jinja.html" as pac_macros with context %} {% set title = 'Run' + (' ' + pac_info.main_category.id if pac_info.main_category and pac_info.main_category.id else '') %} {% call run_macros.run_view(title, pac_info.processor_pac_id) %} {# Services (resolver user-handovers) and attributes are both served for a -DR record like they are for any other subject, so the generic run page shows them the same way every other page template does. A dedicated per-record-type template is free to replace this with a purpose-built layout (stat groups etc.) - that's what run_macros' stat_group/run_box are for. #} {% if pac_info.user_handovers %}

Services

{% for sg in pac_info.user_handovers %} {{ pac_macros.service_group_block(sg) }} {% endfor %}
{% endif %} {% if pac_info.attribute_groups %}

Attributes

{% for ag in pac_info.attribute_groups.values() %} {% if ag.group_key not in hide_attribute_groups %} {{ pac_macros.attribute_group_block(ag) }} {% endif %} {% endfor %}
{% endif %} {% if pac_info.attached_data.get('SUM') %} {{ pac_macros.attached_data_trex('SUM', pac_info.attached_data.get('SUM')) }} {% endif %} {% endcall %}