From 903d3b95ff2e69643b278fb9b01316f351cc3f84 Mon Sep 17 00:00:00 2001 From: TheRON Date: Sat, 6 Jun 2026 09:41:43 -0400 Subject: [PATCH] Updated --- .../assoc_profile/assoc_profile_manage.php | 56 ++++++++++++------- 1 file changed, 35 insertions(+), 21 deletions(-) diff --git a/hubzilla/addon/assoc_profile/assoc_profile_manage.php b/hubzilla/addon/assoc_profile/assoc_profile_manage.php index bfc04bc..e77ce6c 100644 --- a/hubzilla/addon/assoc_profile/assoc_profile_manage.php +++ b/hubzilla/addon/assoc_profile/assoc_profile_manage.php @@ -45,25 +45,30 @@ function assoc_render_manage_index() { return $out; } - // Search and filter bar + // Search and filter bar — single row $out .= ''; + $out .= ''; - $out .= '
'; - $out .= ''; + $out .= ''; foreach ($types as $t => $_) { $out .= ''; } - $out .= '
'; + $out .= ''; - $out .= '
'; - $out .= ''; + $out .= ''; foreach ($statuses as $s => $_) { $out .= ''; } - $out .= '
'; + $out .= ''; + $out .= ''; // Bulk bar (hidden until selection) @@ -86,10 +91,7 @@ function assoc_render_manage_index() { $out .= ''; $out .= 'Slug'; $out .= 'Legal Name'; - $out .= 'Type'; - $out .= 'County'; $out .= 'Units'; - $out .= 'Standing'; $out .= 'Updated'; $out .= ''; $out .= ''; @@ -103,6 +105,14 @@ function assoc_render_manage_index() { if ($status === 'Active') $status_class = 'civicinfra-status-active'; if ($status === 'Dissolved') $status_class = 'civicinfra-status-alert'; + // Inline status badge — shown only when not Active + $badge = ''; + if ($status && $status !== 'Active') { + $badge = ' ' + . assoc_h($status === 'UNK' ? 'Standing UNK' : $status) + . ''; + } + $out .= ''; $out .= ''; - $out .= '' . assoc_h($slug) . ''; + + $out .= '' + . '' . assoc_h($slug) . '' + . '' . $badge . ''; + $out .= '' . assoc_h($entry['assoc_legal_name'] ?? '—') . ''; - $out .= '' . assoc_h($type ?: '—') . ''; - $out .= '' . assoc_h($county ?: '—') . ''; - $out .= '' . assoc_h($entry['assoc_units'] ?? '—') . ''; - $out .= '' . assoc_h($status ?: 'UNK') . ''; + $out .= '' . assoc_h($entry['assoc_units'] ?? '—') . ''; $out .= '' . assoc_h($entry['assoc_updated'] ?? '—') . ''; - $out .= 'Edit'; + $out .= 'Edit'; $out .= ''; }