{% extends "base.html" %} {% from "components/ui.html" import page_header, breadcrumb_nav %} {% block title %}{{ contact.full_name }} - {{ config.APP_NAME }}{% endblock %} {% block content %} {% set breadcrumbs = [ {'text': 'Clients', 'url': url_for('clients.list_clients')}, {'text': contact.client.name, 'url': url_for('clients.view_client', client_id=contact.client_id)}, {'text': 'Contacts', 'url': url_for('contacts.list_contacts', client_id=contact.client_id)}, {'text': contact.full_name} ] %} {{ page_header( icon_class='fas fa-user', title_text=contact.full_name, subtitle_text=contact.title or 'Contact', breadcrumbs=breadcrumbs, actions_html='Edit' ) }}

{{ _('Contact Information') }}

{% if contact.is_primary %}
{{ _('Primary Contact') }}
{% endif %}

{{ _('Email') }}

{% if contact.email %}{{ contact.email }}{% else %}N/A{% endif %}

{{ _('Phone') }}

{{ contact.phone or 'N/A' }}

{% if contact.mobile %}

{{ _('Mobile') }}

{{ contact.mobile }}

{% endif %} {% if contact.title %}

{{ _('Title') }}

{{ contact.title }}

{% endif %} {% if contact.department %}

{{ _('Department') }}

{{ contact.department }}

{% endif %}

{{ _('Role') }}

{{ contact.role|title }}

{% if contact.address %}

{{ _('Address') }}

{{ contact.address }}

{% endif %} {% if contact.notes %}

{{ _('Notes') }}

{{ contact.notes }}

{% endif %}

{{ _('Communication History') }}

{{ _('Add Communication') }}
{% if communications %}
{% for comm in communications %}

{{ comm.subject or comm.type|title }}

{{ comm.communication_date.strftime('%Y-%m-%d %H:%M') }}

{% if comm.content %}

{{ comm.content }}

{% endif %}
{{ comm.type|title }}
{% endfor %}
{% else %}

{{ _('No communications recorded') }}

{% endif %}
{% endblock %}