summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-30 19:52:09 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-30 19:52:09 +0200
commitbc116a2acfe2450d85229379d54c3344e485db6a (patch)
treebd49c465f45bcec6251325d406c7de3cd6733ddf /config/routes.rb
parent6a1102e69230ed62138b8e6aec8a6348e8571b23 (diff)
Replaces the grey slab and filled-box handle with the house card idiom,
a tabler grip and icon-only edit and delete actions. Shows each item's non-default translations muted below the title, read from the translation rows rather than the accessor so the fallback chain cannot disguise a missing label as a translated one. Adds move up/down buttons via acts_as_list, the single-pointer alternative WCAG 2.5.7 requires: the jQuery UI sortable binds mouse events only, so dragging works neither on touch nor from the keyboard. The grip is hidden below the desktop breakpoint for the same reason. The sort handler dropped dataType: "json" against a head :ok response, which sent every success down the error path, and now reloads so the disabled chevron states match the stored order after a drag.
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 9793c6a6..4b5d15c9 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -108,6 +108,8 @@ Cccms::Application.routes.draw do
108 resources :menu_items, :except => :show do 108 resources :menu_items, :except => :show do
109 member do 109 member do
110 post :sort 110 post :sort
111 post :move_up
112 post :move_down
111 end 113 end
112 end 114 end
113 115