diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-26 13:40:55 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-26 13:40:55 +0200 |
| commit | 811bb04649365b0faaa00b1e0810bb101a4d19b1 (patch) | |
| tree | 581d52faa6e1bf21a1cdfd4da7127a0f95786bad /app/views/menu_items/index.html.erb | |
| parent | a1ddc25da0d2aa79a4d9216ef7792f26233bd38e (diff) | |
Stage 5 click-testing fixes
- Fix link_to :method → button_to for all PUT/DELETE actions
- Add button_to CSS reset to admin.css for visual consistency
- Fix admin layout: replace broken jquery/jquery_ujs pipeline refs with
admin_bundle via sprockets; add sprockets-rails, jquery-ui-rails gems
- Add app/assets/javascripts/admin_bundle.js pipeline manifest
- Fix event_information helper: use safe_join to avoid double-escaping
- Fix nodes_helper: to_s(:db) → to_fs(:db) for event times
- Fix revisions view: eliminate nested forms; diff button uses vanilla JS
to collect radio button values before POST
- Fix config/environments/development.rb and test.rb: cache_classes →
enable_reloading
- Add routing_filter_rails71_patch.rb version guard
- Move LockedByAnotherUser to own file for Zeitwerk autoloading
- Fix Globalize fallbacks via config.i18n.fallbacks in application.rb
Diffstat (limited to 'app/views/menu_items/index.html.erb')
| -rw-r--r-- | app/views/menu_items/index.html.erb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/app/views/menu_items/index.html.erb b/app/views/menu_items/index.html.erb index 7d0ce62..c52c150 100644 --- a/app/views/menu_items/index.html.erb +++ b/app/views/menu_items/index.html.erb | |||
| @@ -14,12 +14,9 @@ | |||
| 14 | <td class="menu_item_title"><%= menu_item.title %></td> | 14 | <td class="menu_item_title"><%= menu_item.title %></td> |
| 15 | <td><%= link_to "Edit", edit_menu_item_path(menu_item) %></td> | 15 | <td><%= link_to "Edit", edit_menu_item_path(menu_item) %></td> |
| 16 | <td> | 16 | <td> |
| 17 | <%= link_to( | 17 | <%= button_to "Delete", menu_item_path(menu_item), |
| 18 | "Delete", | 18 | method: :delete, |
| 19 | menu_item_path(menu_item), | 19 | form: { data: { confirm: "Are you sure?" } } %> |
| 20 | :method => :delete, | ||
| 21 | :data => { :confirm => "Are you sure?" } | ||
| 22 | ) %> | ||
| 23 | </td> | 20 | </td> |
| 24 | </tr> | 21 | </tr> |
| 25 | <% end %> | 22 | <% end %> |
