From 635d45d7908bd7e4d69238ad2c3b7bea73f8f004 Mon Sep 17 00:00:00 2001 From: Ken Johnson Date: Thu, 11 Dec 2025 13:29:05 +0000 Subject: [PATCH] Add local flash message display to benefit forms page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added flash message rendering directly on the benefit forms page to ensure upload feedback is always visible, even if the layout partial isn't rendering properly. This provides redundancy for flash messages and ensures users always see upload success/error feedback. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/views/benefit_forms/index.html.erb | 34 ++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/app/views/benefit_forms/index.html.erb b/app/views/benefit_forms/index.html.erb index 5ae8a50..0934eda 100644 --- a/app/views/benefit_forms/index.html.erb +++ b/app/views/benefit_forms/index.html.erb @@ -1,4 +1,38 @@
+ + <% if flash.any? %> +
+
+ <% flash.each do |name, msg| %> + <% + alert_class = case name.to_sym + when :error, :alert then 'alert-danger' + when :success, :notice then 'alert-success' + when :info then 'alert-info' + when :warning then 'alert-warning' + else 'alert-secondary' + end + + icon_class = case name.to_sym + when :error, :alert then 'bi-exclamation-circle-fill' + when :success, :notice then 'bi-check-circle-fill' + when :info then 'bi-info-circle-fill' + when :warning then 'bi-exclamation-triangle-fill' + else 'bi-bell-fill' + end + %> + + <% end %> +
+
+ <% end %> +