{% extends 'base.html' %} {% block title %}{{ c.name }}{% if c.type == 'lead' %}

Omzetten naar klant

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

{% if klant_relations %} {% endif %}
{% endif %} {% 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

Taken

{% for t in tasks %}
{{ t.title }}
{{ t.user_name or '' }}{% if t.due_date %} · {{ t.due_date|dt('%d-%m-%Y') }}{% endif %}
{% endfor %}

Notitie toevoegen

{% if c.email %}
E-mail sturen
{% 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.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 %}

Bestanden

{% if files %} {% endif %}

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 %}