{% set contract_url = url if not 'external_provider_name' in pkg else "#" %}
{% set policies = h.string_to_json(contract.additional.policies) if "additional" in contract else contract.policies %}
{% block contract_item_title %}
{{ contract.title }}
{% endblock %}
{% block contract_dates %}
Start date: {{ contract.start }}
End date: {{ contract.end }}
{% endblock %}
{% block policies %}
Policies:
{% for policy in policies %}
-
{% set attributes = policy.keys()|list %}
{% set _ = attributes.remove("type") %}
{{ policy.type }}
{% if attributes|length > 0 %}
{% for attribute in attributes %}
-
{{ attribute }}: {{ policy[attribute] }}
{% endfor %}
{% endif %}
{% endfor %}
{% endblock %}
{% block accept_contract_action %}
{% if 'external_provider_name' in pkg %}
{% endif %}
{% endblock %}