{% from "partials/_contact_macros.html" import edit_value %} {% if current %}
{{ current.get('full_name') or '(без имени)' }}
{{ current.get('company') or '—' }}{% if current.get('position') %} · {{ current.get('position') }}{% endif %}
{% if current.get('email') %}{{ current.get('email') }}{% endif %} {% if current.get('phone') %} · {{ current.get('phone') }}{% endif %} {% if current.get('caldav', {}).get('dirty') %}не синхронизировано{% endif %}
{% for field, title in [('last_name','Фамилия'), ('first_name','Имя'), ('middle_name','Отчество'), ('company','Компания'), ('position','Должность'), ('phone','Телефон'), ('phone_secondary','Телефон 2'), ('email','Почта'), ('address','Адрес')] %}
{{ title }}
{{ edit_value(current, field) }}
{% endfor %}
📥 Полученные {{ mails.received|length }}
{% for m in mails.received %} {{ (m.date or '')[:10] }} {{ m.subject or '(без темы)' }} {% else %}
писем нет
{% endfor %}
📤 Отправленные {{ mails.sent|length }}
{% for m in mails.sent %} {{ (m.date or '')[:10] }} {{ m.subject or '(без темы)' }} {% else %}
писем нет
{% endfor %}
{% if ctasks %}
✅ Задачи из писем {{ ctasks|length }}
{% for t in ctasks %}
{{ t.due or '' }} {{ t.summary }}
{% endfor %}
{% endif %}
id: {{ current.get('id') }} {% if current.get('caldav', {}).get('uid') %}CardDAV: {{ current.get('caldav', {}).get('uid') }}{% endif %} {% if current.get('first_seen') %}впервые: {{ current.get('first_seen') }}{% endif %} {% if current.get('source_folders') %}папки: {{ current.get('source_folders')|join(', ') }}{% endif %} {% if current.get('manual_fields') %}правки: {{ current.get('manual_fields')|join(', ') }}{% endif %}
{% else %}
Выберите контакт в таблице
{% endif %}