{% load template_tags %} Report

Heritage Assets

{% for resource in resources %} {% with resource_data=resource_data %}

{{ resource.displayname }}


Description

{{ resource.displayname }}

{% comment "Example of adding a description from an array of Description cards based on the type" %} {% if resource_data|has_key:"Descriptions" %}
{% for desc in resource_data|val_from_key:"Descriptions" %} {% if desc|val_from_key:"Description Type"|val_from_key:"@value" == "Summary" %}

Summary

{{ desc|val_from_key:"Description" }}

{% endif %} {% endfor %} {% for desc in resource_data|val_from_key:"Descriptions" %} {% if desc|val_from_key:"Description Type"|val_from_key:"@value" == "Full" %}

Full

{{ desc|val_from_key:"Description" }}

{% endif %} {% endfor %}
{% endif %} {% endcomment %} {% comment "Example of creating a responsive table from a list of card values" %} {% if resource_data|has_key:"External Cross References" %}

External Cross References

Number
Description
Source
{% for src in resource_data|val_from_key:"External Cross References" %}
{{ src|val_from_key:"External Cross Reference Number" }}
{% if src|has_key:"External Cross Reference Notes" %} {{ src|val_from_key:"External Cross Reference Notes"|val_from_key:"External Cross Reference Description" }} {% endif %}
{{ src|val_from_key:"External Cross Reference Source" }}
{% endfor %}
{% endif %} {% endcomment %}
{% endwith%} {% endfor %}