From 85997296023f01be02b2f366eebed34942bd1504 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sun, 24 Nov 2024 12:11:31 -0500 Subject: [PATCH] Defined a note_type_array in get_settings to define note type and associated icon incorporated the array into the Selectboxes to create note and the UI display in contact details --- client_contact_create_note_modal.php | 8 +++----- client_contact_details.php | 5 ++++- get_settings.php | 7 +++++++ 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/client_contact_create_note_modal.php b/client_contact_create_note_modal.php index 92d37be5..de9ebf3d 100644 --- a/client_contact_create_note_modal.php +++ b/client_contact_create_note_modal.php @@ -19,11 +19,9 @@ diff --git a/client_contact_details.php b/client_contact_details.php index c2e57c9f..90228273 100644 --- a/client_contact_details.php +++ b/client_contact_details.php @@ -645,10 +645,13 @@ if (isset($_GET['contact_id'])) { $note_by = nullable_htmlentities($row['user_name']); $contact_note_created_at = nullable_htmlentities($row['contact_note_created_at']); + // Get the corresponding icon for the note type + $note_type_icon = isset($note_types_array[$contact_note_type]) ? $note_types_array[$contact_note_type] : 'fa-fw fa-sticky-note'; // default icon if not found + ?> - + diff --git a/get_settings.php b/get_settings.php index b74f7a66..c41d7b19 100644 --- a/get_settings.php +++ b/get_settings.php @@ -298,3 +298,10 @@ $rack_type_select_array = array( "Other" ); +$note_types_array = array ( + 'Call'=>'fa-phone-alt', + 'Email'=>'fa-envelope', + 'Meeting'=>'fa-handshake', + 'In Person'=>'fa-people-arrows', + 'Note'=>'fa-sticky-note' +);