{% extends "base.html" %} {% block title %}{{ contact.last_name }} {% if contact.first_name %}{{ contact.first_name }}{% endif %} — ArtNode{% endblock %} {% block content %}
Contact
{% macro row(label, value) %} {% if value %}
{{ label }} {{ value }}
{% endif %} {% endmacro %} {{ row("Type", contact.contact_type) }} {% if contact.email %}{{ row("Email", contact.email) }}{% endif %} {% if contact.phone %}{{ row("Phone", contact.phone) }}{% endif %} {% if contact.address or contact.city %}
Address
{% if contact.address %}{{ contact.address }}
{% endif %} {% if contact.zip_code %}{{ contact.zip_code }} {% endif %}{{ contact.city or "" }}{% if contact.country %}, {{ contact.country }}{% endif %}
{% endif %} {% if contact.notes %}
Notes

{{ contact.notes }}

{% endif %}
{% if 'artist' in (contact.roles or []) %}
Artist Profile
{% if contact.nationality %}{{ row("Nationality", contact.nationality) }}{% endif %} {% if contact.birth_year %}{{ row("Born", contact.birth_year ~ ((" – " ~ contact.death_year) if contact.death_year else "")) }}{% endif %} {% if contact.artist_website %}
Website {{ contact.artist_website }}
{% endif %} {% if contact.is_active_representation %}
Represented
{% endif %} {% if contact.biography %}
Biography

{{ contact.biography }}

{% endif %}
{% endif %}
{% if artworks %}
Artworks ({{ artworks|length }})
{% for aw in artworks %} {% set img = aw.images[0] if aw.images else none %}
{% if img and img.iiif_url %} {% else %}
{% endif %}
{{ aw.title }}
{{ aw.year_from or "" }}
{% endfor %}
{% endif %}
{% endblock %}