From 38e9243bcd4961b50147ce4ab27c9311877c6a7e Mon Sep 17 00:00:00 2001 From: "Janus C. H. Knudsen" Date: Sat, 24 Jan 2026 10:59:21 +0100 Subject: [PATCH] Adds create customer drawer to customers page Implements new drawer for creating customers with form inputs for contact details and notes Enhances customer management by providing a streamlined way to add new customer records directly from the customers index page --- .../Components/CustomerTable/Default.cshtml | 2 +- .../Features/Customers/Pages/Index.cshtml | 74 +++++++++++++++++++ .../Localization/Translations/da.json | 7 ++ .../Localization/Translations/en.json | 54 ++++++++++++++ .../wwwroot/css/customers.css | 57 ++++++++++++++ 5 files changed, 193 insertions(+), 1 deletion(-) diff --git a/PlanTempus.Application/Features/Customers/Components/CustomerTable/Default.cshtml b/PlanTempus.Application/Features/Customers/Components/CustomerTable/Default.cshtml index 8b25c9f..5aa369a 100644 --- a/PlanTempus.Application/Features/Customers/Components/CustomerTable/Default.cshtml +++ b/PlanTempus.Application/Features/Customers/Components/CustomerTable/Default.cshtml @@ -10,7 +10,7 @@ @Model.ExportButtonText - + @Model.CreateButtonText diff --git a/PlanTempus.Application/Features/Customers/Pages/Index.cshtml b/PlanTempus.Application/Features/Customers/Pages/Index.cshtml index 2122810..a6c827b 100644 --- a/PlanTempus.Application/Features/Customers/Pages/Index.cshtml +++ b/PlanTempus.Application/Features/Customers/Pages/Index.cshtml @@ -197,6 +197,80 @@ + +
+ + + + Opret ny kunde + + + + + + + + + + Navn * + + + + + + + + + Kontaktoplysninger + + + + + + Telefon + + + + + + Email + + + + + + Adresse + + + + + + Postnr + By + + + + + + + + + + + Note + + + + + + + Annuller + + + Opret kunde + + +
+ @section Scripts {