From 3fe108d38aabd02a52693fc307bfcd63dccffd8a Mon Sep 17 00:00:00 2001 From: Matthieu Date: Wed, 24 Jun 2026 09:07:13 +0200 Subject: [PATCH] feat(directory) : add editable Information tab on client/prospect detail Add an Information tab (first, active by default) to the client and prospect detail pages so base fields can be edited directly from the record. Client: name/email/phone. Prospect: name/company/status/email/phone/source/notes. Fields are edited in memory and persisted only on explicit save (PATCH), matching the Contact/Address tabs pattern. --- frontend/i18n/locales/fr.json | 8 ++ .../pages/directory/clients/[id].vue | 60 +++++++++- .../pages/directory/prospects/[id].vue | 109 +++++++++++++++++- 3 files changed, 174 insertions(+), 3 deletions(-) diff --git a/frontend/i18n/locales/fr.json b/frontend/i18n/locales/fr.json index 9c9c74a..95ed502 100644 --- a/frontend/i18n/locales/fr.json +++ b/frontend/i18n/locales/fr.json @@ -934,12 +934,20 @@ "directory": { "title": "Répertoire", "tabs": { + "info": "Informations", "clients": "Clients", "prospects": "Prospects", "contact": "Contact", "address": "Adresse", "report": "Rapport" }, + "info": { + "fields": { + "name": "Nom", + "email": "Email", + "phone": "Téléphone" + } + }, "clients": { "add": "Ajouter un client", "empty": "Aucun client trouvé." diff --git a/frontend/modules/directory/pages/directory/clients/[id].vue b/frontend/modules/directory/pages/directory/clients/[id].vue index 6cbe09e..d0b18db 100644 --- a/frontend/modules/directory/pages/directory/clients/[id].vue +++ b/frontend/modules/directory/pages/directory/clients/[id].vue @@ -8,6 +8,39 @@

{{ $t('common.loading') }}