From abf01384caf7fcf931a36e038867fab4865ef131 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Sun, 7 Apr 2024 09:52:23 +0100 Subject: [PATCH] Client archiving Relates to #510 - Ability to see archived clients - Ability to un-archive a client - To help prevent accidents, client deletion button now only shows once the client is archived --- client_assets.php | 8 ++++---- clients.php | 26 +++++++++++++++++++------- inc_all_client.php | 1 + inc_client_top_head.php | 22 ++++++++++++++++------ 4 files changed, 40 insertions(+), 17 deletions(-) diff --git a/client_assets.php b/client_assets.php index 21322ee0c..4ecc5d68e 100644 --- a/client_assets.php +++ b/client_assets.php @@ -173,10 +173,10 @@ } ?>
- - Archived + + Archived - Archived + Archived diff --git a/inc_all_client.php b/inc_all_client.php index 94d6d9256..f11d434c5 100644 --- a/inc_all_client.php +++ b/inc_all_client.php @@ -45,6 +45,7 @@ $client_rate = floatval($row['client_rate']); $client_notes = nullable_htmlentities($row['client_notes']); $client_created_at = nullable_htmlentities($row['client_created_at']); + $client_archived_at = nullable_htmlentities($row['client_archived_at']); $contact_id = intval($row['contact_id']); $contact_name = nullable_htmlentities($row['contact_name']); $contact_title = nullable_htmlentities($row['contact_title']); diff --git a/inc_client_top_head.php b/inc_client_top_head.php index 19ab16ebf..21f9c6b02 100644 --- a/inc_client_top_head.php +++ b/inc_client_top_head.php @@ -2,7 +2,7 @@