summaryrefslogtreecommitdiff
path: root/app/views/menu_items/_title_fields.html.erb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-08-14 01:23:45 +0200
committererdgeist <erdgeist@erdgeist.org>2026-08-14 01:23:45 +0200
commit3d4eec32441d37460ff6ca60dc7abf31d5b1bba5 (patch)
tree2606d6a38b39329bbc3d7920482a612c4a057a14 /app/views/menu_items/_title_fields.html.erb
parent19b865108c26cf18c26697fee080844de94fb522 (diff)
Bring menu_items#new up to the current markup
The page now uses .admin_layout, so its fields get the shared treatment.xi The title fields carry .menu_field for the 44rem cap, which survives a third locale where an id list would not.
Diffstat (limited to 'app/views/menu_items/_title_fields.html.erb')
-rw-r--r--app/views/menu_items/_title_fields.html.erb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/menu_items/_title_fields.html.erb b/app/views/menu_items/_title_fields.html.erb
index daf449cf..815b8228 100644
--- a/app/views/menu_items/_title_fields.html.erb
+++ b/app/views/menu_items/_title_fields.html.erb
@@ -6,6 +6,7 @@
6 <div class="layout_row_content"> 6 <div class="layout_row_content">
7 <%= text_field_tag "menu_item[titles][#{locale}]", 7 <%= text_field_tag "menu_item[titles][#{locale}]",
8 menu_item.translations.find_by(:locale => locale)&.title, 8 menu_item.translations.find_by(:locale => locale)&.title,
9 :class => "menu_field",
9 :placeholder => (locale == I18n.default_locale ? nil : t(".falls_back")) %> 10 :placeholder => (locale == I18n.default_locale ? nil : t(".falls_back")) %>
10 </div> 11 </div>
11 </div> 12 </div>