{% extends '@InstallBois/index.html.twig' %} {% import "forms-macro/popup.html.twig" as popup %} {% import "forms-macro/inputs_form.html.twig" as macro %} {% block page_content_start %} {{ parent() }}

Clients | Fiche client

{% endblock %} {% block page_content %}

{{ finalCustomer.name ~ (finalCustomer.firstname is not empty ? ' ' ~ finalCustomer.firstname : '') ~ (finalCustomer.societe is not empty ? ' - ' ~ finalCustomer.societe : '') }}
Adresse de facturation : {{ finalCustomer.address.adressHumanReadable(true) }}
Latitude / longitude : {{ finalCustomer.address.latitude ~ ' / ' ~ finalCustomer.address.longitude }}
N° de téléphone : {{ finalCustomer.phone }}
Email : {{ finalCustomer.email }}

{{ include('final_customer/_block/customer_contact.html.twig') }}
{{ macro.blockNotes('Customer', path('final_customer_notes_update', {'id': finalCustomer.id}), finalCustomer.note, false, 'Notes générales du client') }}
Études
{% if projects is empty %}

Aucune étude disponible pour ce client

{% else %} {% for project in projects %}

N° {{ project.id }}
{{ project.createdAt|date('d/m/Y') }}

Nom du projet :
{{ project.projectName }}

Adresse d'installation :
{{ project.defaultAddress.adressHumanReadable|replace({',': '
'})|raw }}

Accéder
{% for slug,service in services[project.id] %} {% if service.done %}
Image {{ slug }}
{{ service.label }} : {{ service.info }}
{% endif %} {% endfor %}
{# @TODO add scroll bar + fixed height if too much reports#} {% if services[project.id]['moninstallation']['done'] %} {% if services[project.id]['rtp']['done'] %} {{ macro.rowReport('Rapport client', services[project.id]['rtp']['done'] and services[project.id]['moninstallation']['done'], project.id) }} {{ macro.rowReport('Rapport installateur', services[project.id]['rtp']['done'] and services[project.id]['moninstallation']['done'], project.id) }} {% endif %} {{ macro.rowReport('Rapport audit expertise', services[project.id]['moninstallation']['done'], project.id) }} {% endif %} {% if services[project.id]['deperditionthermique']['done'] %} {{ macro.rowReport('Rapport déperditions thermiques', services[project.id]['deperditionthermique']['done'], project.id) }} {% endif %} {% for key,reportInfo in ramonageReports[project.id] %} {{ macro.rowReport('Rapport ramonage '~reportInfo.date|date('d/m/Y'), services[project.id]['ramonage']['done'], project.id) }} {% endfor %}
{{ macro.blockNotes('Project'~project.id, path('project_notes_update', {'id': project.id}), project.note, true) }}
{% endfor %} {% endif %}
{{ popup.simple_popup('danger', null, null, null, 'popup-delete-contact') }} {{ popup.simple_popup('info', 'Vous allez modifier les informations client pour toutes les études rattachées à ce client', null, null, 'popup-update-customer') }} {{ popup.popup_edit_fc_contact() }} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}