{% extends 'base.html' %} {% from '_compose.html' import compose %} {% from '_documents.html' import documents_list with context %} {% block title %}{{ c.name }}{% endblock %} {% block content %}
← Contacten

{{ c.name }}

{{ TYPE.get(c.type) }} {% if c.relation_id %}{{ c.relation_name }}{% if c.relation_role %} ({{ c.relation_role }}){% endif %} · {% endif %}{{ [c.company, c.city]|select|join(' · ') }}
{% if c.type == 'lead' %} {% endif %}
Bewerken
{% if woningen %}

Woning

{% if woningen|length > 1 or not woning %}
{% endif %} {% if woning %} {% if woning.versions|length > 1 %}
{% endif %}
{% if tectum_url %}Bewerken in Tectum{% endif %} Openen JSON {% endif %}
{% if woning %}

{{ woning.title }} · versie {{ shown.version }}{% if shown.id != woning.latest.id %} (nieuwste: {{ woning.latest.version }}){% endif %}{% if shown.note %} · {{ shown.note }}{% endif %} · {{ design_meta.units }} unit{{ 's' if design_meta.units != 1 }}{% if design_meta.address %} · {{ design_meta.address }}{% endif %} · {{ shown.created_at|dt }}{% if design_meta.version %} · configurator {{ design_meta.version }}{% endif %}

{% if design_meta.note %}

{{ design_meta.note }}

{% endif %} {% if shown.id == woning.latest.id %} {% endif %}
Nieuwe versie uploaden
{% else %}

Er is geen woning gekozen.

{% endif %}
{% endif %} {% if kaart %}

Kavel

{% endif %}

Taken

{% for t in tasks %}
{{ t.title }}
{{ t.user_name or '' }}{% if t.due_date %} · {{ t.due_date|dt('%d-%m-%Y') }}{% endif %}
{% endfor %}
{% for i in appointments %}
{{ i.when }}
{{ i.title }}{% if i.repeats %} ↻{% endif %}
{{ i.user }}{% if i.location %} · {{ i.location }}{% endif %}
{% else %}

Geen afspraken gepland.

{% endfor %}

Notitie toevoegen

{% if c.unsubscribed_at or c.bounced_at %}
{% if c.bounced_at %}Het e-mailadres is onbestelbaar (sinds {{ c.bounced_at|dt }}){% else %}Afgemeld voor nieuwsbrieven op {{ c.unsubscribed_at|dt }}{% endif %}; dit contact krijgt geen nieuwsbrieven.
{% endif %} {% if c.email %}
E-mail sturen {{ compose({'to': c.email, 'contact_id': c.id}, mail_templates, mail_vars, mailboxes) }}
{% endif %}

Tijdlijn

    {% for a in activities %}
  • {{ ACT.get(a.type, a.type) }} · {{ a.created_at|dt }}{% if a.user_name %} · {{ a.user_name }}{% endif %}
    {{ a.body }}
  • {% else %}
  • Nog geen activiteit.
  • {% endfor %}
{% if emails %}

E-mail

{% for e in emails %} {% endfor %}
{% endif %}

Gegevens

Status
{{ STATUS.get(c.status, c.status) }}
Toegewezen
{{ c.user_name or '—' }}
{% if c.relation_id %}
Relatie
{{ c.relation_name }}
{{ RKIND.get(c.relation_kind) }}{% if c.relation_type %} · {{ c.relation_type }}{% endif %} {% for h in housemates %}
{{ h.name }}{% if h.relation_role %} ({{ h.relation_role }}){% endif %}{% endfor %}
{% endif %} {% if c.value %}
Verwachte waarde
{{ c.value|euro }}
{% endif %} {% if c.email %}
E-mail
{{ c.email }}
{% endif %} {% if c.phone %}
Telefoon
{{ c.phone }}
{% endif %} {% if c.company %}
Bedrijf
{{ c.company }}
{% endif %} {% if c.address or c.postcode or c.city %}
Adres
{{ c.address }}{% if c.address %} {% endif %}{{ c.postcode }} {{ c.city }}
{% endif %} {% if c.source %}
Bron
{{ c.source }}
{% endif %}
Aangemaakt
{{ c.created_at|dt }}
{% if c.notes %}

Notities

{{ c.notes }}

{% endif %} {% if extra %}

Formuliervelden

{% for k, v in extra.items() %}
{{ k }}
{{ v if v is string else v|tojson }}
{% endfor %}
{% endif %}

Documenten

{{ documents_list(documents, url_for('contact_upload', cid=c.id), c.design_id or -1, url_for('contact_design', cid=c.id)) }}

Offertes

{% for qt in quotes %}

{{ qt.number }} {{ QSTATUS.get(qt.status) }}
{{ qt.date|dt('%d-%m-%Y') }} · {{ qt.total|euro }} incl. btw

{% else %}

Nog geen offertes.

{% endfor %}

Klantportaal

{% if c.portal_password_hash %}

Actief{% if c.portal_last_login %} · laatst ingelogd {{ c.portal_last_login|dt }}{% endif %}

{% elif portal_link %}

Uitnodiging klaar, nog niet geactiveerd:

{{ portal_link }}

{% else %}

De klant kan via het portaal offertes bekijken en accepteren, en bestanden en berichten sturen.

{% endif %}
{% if portal_link and c.email %}{% endif %} {% if not c.portal_password_hash %}{% endif %} {% if c.portal_password_hash or portal_link %}{% endif %}
{% if c.type == 'lead' %}

Omzetten naar klant

De contactpersoon komt in een klantrelatie, bijvoorbeeld een huishouden of familie.

{% if klant_relations %}
{% endif %}
{% endif %} {% endblock %}