{% extends "base.html" %} {% import "macros.html" as m %} {% block title %}{{ contact.name }}{% endblock %} {% block content %}

{{ contact.name }}

{{ company.name }} · {{ contact.title or 'no title' }} · {{ contact.role or 'no role' }} · {% if contact.email %}{{ contact.email }}{% else %}no email{% endif %} · {{ contact.phone or 'no phone' }} {% if contact.linkedin %} · linkedin{% endif %} {% if enricher and enricher.available %}
{% endif %}

Contact

{{ m.errors_box(errors) }}
{{ m.contact_fields(values, errors) }}

slug {{ contact.slug }} · created {{ fmt_datetime(contact.created) }} · updated {{ fmt_datetime(contact.updated) }}

Interactions ({{ interactions | length }})

{{ m.timeline(company, interactions) }}

Log an interaction

{{ m.interaction_form('/companies/' ~ company.slug ~ '/interactions', company, interaction, contact=contact) }}

Tasks for {{ contact.name }}

Things you owe this person. {{ company.name }}'s next step is its open task due first, which can be one of these.

{{ m.task_list(company, contact.tasks, today, contact=contact.slug) }}
{{ m.drafts_section(company, contact, drafts, signal, observation, '/companies/' ~ company.slug ~ '/contacts/' ~ contact.slug) }} {% if company.contacts | length > 1 %}

Merge

{% endif %}

Delete

{% set open_tasks = contact.tasks | rejectattr('done') | list %} {% set confirm_text = 'Delete ' ~ contact.name ~ '?' ~ ((' Their ' ~ interactions | length ~ ' interaction(s) stay on ' ~ company.name ~ ' without a contact.') if interactions else '') ~ ((' Their ' ~ open_tasks | length ~ ' open task(s) go with them.') if open_tasks else '') %}
{% if interactions %}{{ interactions | length }} interaction(s) stay on {{ company.name }}, without a contact.{% else %}No interactions are linked to this contact.{% endif %}
{% endblock %}