{% extends "base.html" %} {% import "macros.html" as m %} {# filter_columns are the columns shown, in order: the defaults, or layout.toml's [contacts] columns (help: adjust-layout). #} {% block title %}Contacts{% endblock %} {% block content %}

Contacts ({{ rows | length }}){% if q %} matching “{{ q }}”{% endif %}

New contact Import

{{ m.filter_form('contact-filters', '/contacts', active, q, sort, dir) }}
{% for col in filter_columns %}{% endfor %}{% for col in filter_columns %}{% endfor %} {%- set custom = custom_fields_for('contact') %} {% for r in rows %} {%- for col in filter_columns %} {%- if col.key == 'name' %} {%- elif col.key == 'company_name' %} {%- elif col.key == 'title' %} {%- elif col.key == 'email' %} {%- elif col.key == 'linkedin' %} {%- elif col.key == 'last_touch' %} {%- elif col.key == 'interaction_count' %} {%- else %} {%- endif %} {%- endfor %} {% else %} {% endfor %}
{{ col.label }} {{ m.sort_links(col, sort, dir, sort_url) }}
{{ m.filter_control(col, active, 'contact-filters') }}
{{ r.name }}{{ r.company_name }}{{ r.title }}{% if r.email %}{{ r.email }}{% endif %}{% if r.linkedin %}{{ r.linkedin | replace('https://www.linkedin.com/in/', '') | replace('https://', '') }}{% endif %}{{ fmt_datetime(r.last_touch).replace('T', ' ') if r.last_touch else 'none' }}{{ r.interaction_count }}{% for f in custom if f.key == col.key %}{{ f.display(r.extra.get(f.key)) }}{% endfor %}
No contacts.
{% endblock %}