From c2c70505e56c1e4d9fee43c77e7314a7f68efb7b Mon Sep 17 00:00:00 2001 From: mahdahar <89adham@gmail.com> Date: Wed, 4 Mar 2026 13:49:46 +0700 Subject: [PATCH] Remove unused dialog include and add Phlebo role-specific UI logic - Remove dialog_eng_result.php include from CS index view - Add role-based status display for Phlebo (role 3) showing Ready/Pending badges - Fix indentation inconsistencies in content_requests.php dropdown menus - Add role restrictions: hide Generate Result and Create Eng Result buttons for CS (role 4) and Phlebo (role 3) - Move status sorting logic from fetchList to computeSorted for proper Alpine.js reactivity - Add statusOrder mapping (Pend -> Coll -> Recv -> Inc -> Fin) for consistent request sorting - Simplify Actions dropdown for Phlebo role to show only status indicator --- app/Views/cs/index.php | 1 - app/Views/shared/content_requests.php | 100 ++++++++++++++------------ app/Views/shared/script_requests.php | 17 +++-- 3 files changed, 66 insertions(+), 52 deletions(-) diff --git a/app/Views/cs/index.php b/app/Views/cs/index.php index 9043ee6..3cf0cc8 100644 --- a/app/Views/cs/index.php +++ b/app/Views/cs/index.php @@ -11,7 +11,6 @@ $roleConfig = $config['cs']; include('shared/dialog_unval'); ?> include('shared/dialog_audit'); ?> include('shared/dialog_results_generate'); ?> - include('shared/dialog_eng_result'); ?> endSection(); ?> diff --git a/app/Views/shared/content_requests.php b/app/Views/shared/content_requests.php index 6bcd763..a9184e6 100644 --- a/app/Views/shared/content_requests.php +++ b/app/Views/shared/content_requests.php @@ -214,6 +214,9 @@ $configKey = $roleMap[$userRole] ?? ''; $previewEnabled = $configFile[$configKey]['previewEnabled'] ?? false; ?> + + + - - - - - - + + + + + + + -