{% extends "base.html" %} {% from "components/ui.html" import page_header, breadcrumb_nav %} {% block title %}Contacts - {{ client.name }} - {{ config.APP_NAME }}{% endblock %} {% block content %} {% set breadcrumbs = [ {'text': 'Clients', 'url': url_for('clients.list_clients')}, {'text': client.name, 'url': url_for('clients.view_client', client_id=client.id)}, {'text': 'Contacts'} ] %} {{ page_header( icon_class='fas fa-address-book', title_text='Contacts', subtitle_text='Manage contacts for ' + client.name, breadcrumbs=breadcrumbs, actions_html='Add Contact' ) }}
{% if contacts %}
{% for contact in contacts %} {% endfor %}
{{ _('Name') }} {{ _('Title') }} {{ _('Email') }} {{ _('Phone') }} {{ _('Role') }} {{ _('Actions') }}
{{ contact.full_name }} {% if contact.is_primary %} {{ _('Primary') }} {% endif %}
{{ contact.title or 'N/A' }} {% if contact.email %} {{ contact.email }} {% else %} N/A {% endif %} {{ contact.phone or 'N/A' }} {{ contact.role|title }}
{{ _('View') }} {{ _('Edit') }} {% if not contact.is_primary %}
{% endif %}
{% else %}

{{ _('No contacts found') }}

{{ _('Add First Contact') }}
{% endif %}
{% endblock %}