From 3d4eec32441d37460ff6ca60dc7abf31d5b1bba5 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Fri, 14 Aug 2026 01:23:45 +0200 Subject: 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. --- app/views/menu_items/new.html.erb | 44 ++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 21 deletions(-) (limited to 'app/views/menu_items/new.html.erb') diff --git a/app/views/menu_items/new.html.erb b/app/views/menu_items/new.html.erb index 047a5a25..7f103f5c 100644 --- a/app/views/menu_items/new.html.erb +++ b/app/views/menu_items/new.html.erb @@ -1,28 +1,30 @@

<%= t(".title") %>

-<%= form_for @menu_item do |f| %> -
-
<%= t("admin.common.search") %>
-
- <%= text_field_tag :menu_search_term %> - +
+ <%= form_for @menu_item do |f| %> +
+
<%= t("admin.common.search") %>
+
+ <%= text_field_tag :menu_search_term, nil, :class => "menu_field" %> + +
-
-
-
<%= MenuItem.human_attribute_name(:node_id) %>
-
<%= f.text_field :node_id %>
-
+
+
<%= MenuItem.human_attribute_name(:node_id) %>
+
<%= f.text_field :node_id, :class => "menu_field" %>
+
-
-
<%= MenuItem.human_attribute_name(:path) %>
-
<%= f.text_field :path %>
-
+
+
<%= MenuItem.human_attribute_name(:path) %>
+
<%= f.text_field :path, :class => "menu_field" %>
+
- <%= render "title_fields", :menu_item => @menu_item %> + <%= render "title_fields", :menu_item => @menu_item %> -
-
-
<%= f.submit t("admin.common.create") %>
-
-<% end %> +
+
+
<%= f.submit t("admin.common.create") %>
+
+ <% end %> +
-- cgit v1.3