From ff28c5e4aeb2955b6c7c95b520dac6ae95ad2e6f Mon Sep 17 00:00:00 2001 From: fusionate Date: Fri, 6 Sep 2024 13:13:08 -0600 Subject: [PATCH] Contacts - Edit: Integrate content cards. --- app/contacts/contact_edit.php | 176 +++++++++++++++++++--------------- 1 file changed, 99 insertions(+), 77 deletions(-) diff --git a/app/contacts/contact_edit.php b/app/contacts/contact_edit.php index 8de8d0baa3..a6b761c25b 100644 --- a/app/contacts/contact_edit.php +++ b/app/contacts/contact_edit.php @@ -1165,89 +1165,113 @@ \n"; -echo "
\n"; +echo "
\n"; echo "
\n"; echo " ".$text['label-name']."\n"; echo "
\n"; @@ -1257,49 +1281,49 @@ echo "
\n"; echo " ".$text['label-contact_organization']."\n"; echo "
\n"; echo "
\n"; -echo " \n"; +echo " \n"; echo "
\n"; echo "
\n"; echo " ".$text['label-contact_name_prefix']."\n"; echo "
\n"; echo "
\n"; -echo " \n"; +echo " \n"; echo "
\n"; echo "
\n"; echo " ".$text['label-contact_name_given']."\n"; echo "
\n"; echo "
\n"; -echo " \n"; +echo " \n"; echo "
\n"; echo "
\n"; echo " ".$text['label-contact_name_middle']."\n"; echo "
\n"; echo "
\n"; -echo " \n"; +echo " \n"; echo "
\n"; echo "
\n"; echo " ".$text['label-contact_name_family']."\n"; echo "
\n"; echo "
\n"; -echo " \n"; +echo " \n"; echo "
\n"; echo "
\n"; echo " ".$text['label-contact_name_suffix']."\n"; echo "
\n"; echo "
\n"; -echo " \n"; +echo " \n"; echo "
\n"; echo "
\n"; echo " ".$text['label-contact_nickname']."\n"; echo "
\n"; echo "
\n"; -echo " \n"; +echo " \n"; echo "
\n"; echo "
\n"; @@ -1308,10 +1332,9 @@ echo "
\n"; echo "
\n"; echo "  \n"; echo "
\n"; - echo "
\n"; -echo "
\n"; +echo "
\n"; echo "
\n"; echo " ".$text['option-other']."\n"; echo "
\n"; @@ -1461,7 +1484,7 @@ unset($contact_note); if ($_SESSION['contact']['permissions']['boolean'] == "true") { if (permission_exists('contact_user_view') || permission_exists('contact_group_view')) { - echo "
\n"; + echo "
\n"; echo "
\n"; echo " ".$text['label-permissions']."\n"; echo "
\n"; @@ -1608,8 +1631,8 @@ if (permission_exists('contact_phone_view')) { $x = 0; foreach($contact_phones as $row) { - echo "
\n"; - echo "
\n"; + echo "
\n"; + echo "
\n"; echo " ".$text['label-phone_numbers']."\n"; if ($row['phone_primary'] == "1") { echo " \n"; @@ -1644,8 +1667,7 @@ if (permission_exists('contact_phone_view')) { echo "
\n"; echo "
\n"; - echo "
\n"; - echo "
\n"; + echo "
\n"; echo " \n"; echo " \n"; @@ -1818,7 +1840,7 @@ if (permission_exists('contact_phone_view')) { if (permission_exists('contact_address_view')) { $x = 0; foreach($contact_addresses as $row) { - echo "
\n"; + echo "
\n"; echo "
\n"; echo " ".$text['label-addresses']."\n"; if ($row['address_primary'] == "1") { @@ -2068,7 +2090,7 @@ if (permission_exists('contact_address_view')) { if (permission_exists('contact_email_view')) { $x = 0; foreach($contact_emails as $row) { - echo "
\n"; + echo "
\n"; echo "
\n"; echo " ".$text['label-emails']."\n"; if ($row['email_primary'] == "1") { @@ -2160,7 +2182,7 @@ if (permission_exists('contact_email_view')) { if (permission_exists('contact_url_view')) { $x = 0; foreach($contact_urls as $row) { - echo "
\n"; + echo "
\n"; echo "
\n"; echo " ".$text['label-contact_url']."\n"; if ($row['url_primary'] == "1") { @@ -2299,7 +2321,7 @@ if (permission_exists('contact_relation_view')) { } } - echo "
\n"; + echo "
\n"; echo "
\n"; echo " ".$text['label-contact_relation_label']."\n"; if (permission_exists('contact_relation_delete')) { @@ -2378,7 +2400,7 @@ if (permission_exists('contact_relation_view')) { if (permission_exists('contact_setting_view')) { $x = 0; foreach($contact_settings as $row) { - echo "
\n"; + echo "
\n"; echo "
\n"; echo " ".$text['label-contact_settings']."\n"; if (permission_exists('contact_setting_delete')) { @@ -2500,7 +2522,7 @@ if (permission_exists('contact_attachment_view')) { foreach($contact_attachments as $row) { $attachment_type = strtolower(pathinfo($row['attachment_filename'], PATHINFO_EXTENSION)); $attachment_type_label = $attachment_type == 'jpg' || $attachment_type == 'jpeg' || $attachment_type == 'gif' || $attachment_type == 'png' ? $text['label-image'] : $text['label-file']; - echo "
\n"; + echo "
\n"; echo "
\n"; echo " ".$text['label-attachments']."\n"; if ($row['attachment_primary'] == "1") { @@ -2608,7 +2630,7 @@ if (permission_exists('contact_attachment_view')) { if (permission_exists('contact_time_view')) { $x = 0; foreach ($contact_times as $row) { - echo "
\n"; + echo "
\n"; echo "
\n"; echo " ".$text['header_contact_times']."\n"; if (permission_exists('contact_time_delete')) { @@ -2666,7 +2688,7 @@ if (permission_exists('contact_note_view')) { $list_row_url = "contact_note_edit.php?contact_uuid=".escape($row['contact_uuid'])."&id=".escape($row['contact_note_uuid']); } - echo "
\n"; + echo "
\n"; echo "
\n"; echo " ".$text['label-contact_notes']."\n"; if (permission_exists('contact_note_delete')) {