{% load template_tags %} Consultation {% include 'html_export/milligram.htm' %} {% include 'html_export/custom_style.htm' %}
{% include 'html_export/custom_header.htm' %}

Consultations

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

{{ resource.displayname }}

{# System Ref #} {% if resource_data|has_key:"System Reference Numbers" %}

System Reference Numbers

Primary Reference Number: {{ resource_data|val_from_key:"System Reference Numbers"|val_from_key:"PrimaryReferenceNumber"|val_from_key:"Primary Reference Number"|val_from_key:"@display_value" }}
Legacy ID: {{ resource_data|val_from_key:"System Reference Numbers"|val_from_key:"LegacyID"|val_from_key:"Legacy ID"|val_from_key:"@display_value" }}


{% endif %} {# External References #} {% if resource_data|has_key:"References" %}

External References

Number
Number Type
{% for ref in resource_data|val_from_key:"References" %}
{{ ref|val_from_key:"Agency Identifier"|val_from_key:"Reference"|val_from_key:"@display_value" }}
{{ ref|val_from_key:"Agency Identifier"|val_from_key:"Reference Type"|val_from_key:"@display_value" }}
{% endfor %}

{% endif %} {# Consultation Names #} {% if resource_data|has_key:"Consultation Names" %}

Consultation Names

Name
Name Type
{% for names in resource_data|val_from_key:"Consultation Names" %}
{% if names|has_key:"Consultation Name" %} {{ names|val_from_key:"Consultation Name"|val_from_key:"@display_value" }} {% endif %}
{% if names|has_key:"Consultation Name Use Type" %} {{ names|val_from_key:"Consultation Name Use Type"|val_from_key:"@display_value" }} {% endif %}
{% endfor %}

{% endif %} {# Application Type #} {% if resource_data|has_key:"Application Type" %}

Application Type

{{resource_data|val_from_key:"Application Type"|val_from_key:"@display_value"}}


{% endif %} {# Consultation Type #} {% if resource_data|has_key:"Consultation Type" %}

Consultation Type

{{resource_data|val_from_key:"Consultation Type"|val_from_key:"@display_value"}}


{% endif %} {# Designation Type #} {% if resource_data|has_key:"Designation Type" %}

Designation Type

{{resource_data|val_from_key:"Designation Type"|val_from_key:"@display_value"}}


{% endif %} {# Proposals #} {% if resource_data|has_key:"Proposal" %}

Proposals

{% for prop in resource_data|val_from_key:"Proposal" %}
{{ prop|val_from_key:"Proposal Text"|val_from_key:"@display_value"|safe }}
{% endfor %}

{% endif %} {# Contacts #} {% if resource_data|has_key:"Contacts" %}

Contacts

Casework Officer

{% if resource_data|val_from_key:"Contacts"|has_key:"Casework Officers" %} {{ resource_data|val_from_key:"Contacts"|val_from_key:"Casework Officers"|val_from_key:"Casework Officer"|val_from_key:"@display_value" }} {% endif %}

Planning Officer

{% if resource_data|val_from_key:"Contacts"|has_key:"Planning Officers" %} {{ resource_data|val_from_key:"Contacts"|val_from_key:"Planning Officers"|val_from_key:"Planning Officer"|val_from_key:"@display_value" }} {% endif %}

Applicants

{% if resource_data|val_from_key:"Contacts"|has_key:"Applicants" %} {{ resource_data|val_from_key:"Contacts"|val_from_key:"Applicants"|val_from_key:"Applicant"|val_from_key:"@display_value" }} {% endif %}

Agents

{% if resource_data|val_from_key:"Contacts"|has_key:"Agents" %} {{ resource_data|val_from_key:"Contacts"|val_from_key:"Agents"|val_from_key:"Agent"|val_from_key:"@display_value" }} {% endif %}


{% endif %} {# Consultation Dates #} {% if resource_data|has_key:"Consultation Dates" %}

Consultation Dates

Log Date: {{ resource_data|val_from_key:"Consultation Dates"|val_from_key:"Log Date"|val_from_key:"@display_value" }}
Target Date: {{ resource_data|val_from_key:"Consultation Dates"|val_from_key:"Target Date"|val_from_key:"Target Date Start"|val_from_key:"@display_value" }}
Completion Date: {{ resource_data|val_from_key:"Consultation Dates"|val_from_key:"Completion Date"|val_from_key:"@display_value" }}


{% endif %} {# Advice #} {% if resource_data|has_key:"Advice" %}

Advice

Advice Type
Advice Text
{% for advice in resource_data|val_from_key:"Advice" %}
{% if advice|has_key:"Advice Type" %} {{ advice|val_from_key:"Advice Type"|val_from_key:"@display_value" }} {% endif %}
{% if advice|has_key:"Advice text" %} {{ advice|val_from_key:"Advice text"|val_from_key:"@display_value"|safe }} {% endif %}
{% endfor %}

{% endif %} {# Site Visits #} {% if resource_data|has_key:"Site Visits" %}

Site Visits

Date of Visit
Recommendation Value
{% for visit in resource_data|val_from_key:"Site Visits" %}
{% if visit|has_key:"Timespan of Visit" %} {{ visit|val_from_key:"Timespan of Visit"|val_from_key:"Date of Visit"|val_from_key:"@display_value" }} {% endif %}
{% if visit|has_key:"Recommendations" %} {% for rec in visit|val_from_key:"Recommendations" %}

{{ rec|val_from_key:"Recommendation"|val_from_key:"Recommendation Value"|val_from_key:"@display_value"|safe }}

{% endfor %} {% endif %}
{% endfor %}

{% endif %} {# Associated Consultations #} {% if resource_data|has_key:"Associated Consultations" %}

Associated Consultations

{{ resource_data|val_from_key:"Associated Consultations"|val_from_key:"@display_value" }}

{% endif %} {# Related Monuments and Areas #} {% if resource_data|has_key:"Related Monuments and Areas" %}

Related Monuments and Areas

{{ resource_data|val_from_key:"Related Monuments and Areas"|val_from_key:"@display_value" }}

{% endif %} {# Associated Activities #} {% if resource_data|has_key:"Associated Activities" %}

Associated Activities

{{ resource_data|val_from_key:"Associated Activities"|val_from_key:"@display_value" }}

{% endif %} {% endwith%} {% endfor %}