You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a js script that makes an html modal appear, the problem I have is that the modal does not appear on all active admin pages, even if I render it from the application_controller.rb.
It only works in app/admin/dashboard.rb. I want to avoid duplicating code to place in every file I have. Here is an example of what I have on the dashboard:
ActiveAdmin.register_page "Dashboard" do content title: proc { I18n.t("active_admin.dashboard_welcome.welcome") } do div id: "modal", class: "modal", style: "display: none;" do render partial: "shared/modal" end end end
So this is what I want to be on each active_admin page, any suggestions would be greatly appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I need your help please.
I have a js script that makes an html modal appear, the problem I have is that the modal does not appear on all active admin pages, even if I render it from the application_controller.rb.
It only works in app/admin/dashboard.rb. I want to avoid duplicating code to place in every file I have. Here is an example of what I have on the dashboard:
ActiveAdmin.register_page "Dashboard" do
content title: proc { I18n.t("active_admin.dashboard_welcome.welcome") } do
div id: "modal", class: "modal", style: "display: none;" do
render partial: "shared/modal"
end
end
end
So this is what I want to be on each active_admin page, any suggestions would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions