{# CiviCRM Contact Card Template #} {# Usage: {% civi_contact_card contact show_email=True show_phone=True css_class="my-class" %} #} {% if contact %}

{{ contact.display_name|default:"Unknown Contact" }}

{% if contact.contact_type %} {{ contact.contact_type }} {% endif %}
{% if contact.job_title or contact.organization_name %}
{% if contact.job_title %} {{ contact.job_title }} {% endif %} {% if contact.job_title and contact.organization_name %} at {% endif %} {% if contact.organization_name %} {{ contact.organization_name }} {% endif %}
{% endif %} {% if show_email %} {% with email=contact.email_primary|default:contact.email %} {% if email %}
Email: {{ email }}
{% endif %} {% endwith %} {% endif %} {% if show_phone %} {% with phone=contact.phone_primary|default:contact.phone %} {% if phone %}
Phone: {{ phone }}
{% endif %} {% endwith %} {% endif %} {% if show_address %} {% if contact.address_primary_street_address or contact.address_primary_city %}
Address:
{% if contact.address_primary_street_address %}{{ contact.address_primary_street_address }}
{% endif %} {% if contact.address_primary_city %}{{ contact.address_primary_city }}{% endif %} {% if contact.address_primary_postal_code %}, {{ contact.address_primary_postal_code }}{% endif %}
{% endif %} {% endif %}
{% if contact.id %} {% endif %}
{% else %}

Contact not found

{% endif %}