<% content_for :page_title do %> <%= link_to Spree.t('admin.navigation.all_menus'), spree.admin_menus_path %> / <%= @menu.name %> <% end %>
<%= Spree.t('settings') %>
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @menu } %> <%= form_for [:admin, @menu] do |f| %> <%= render partial: 'form', locals: { f: f } %>
<%= render partial: 'spree/admin/shared/edit_resource_links' %>
<% end %>
<%= Spree.t('admin.navigation.menu_items', menu_name: @menu.name) %>
<%= button_link_to Spree.t('admin.navigation.add_new_item', menu: @menu.name), spree.new_admin_menu_menu_item_path(@menu), icon: 'add.svg', class: 'no-wrap btn btn-success align-self-center' %>
<% if @menu.root.present? %>
<% if @menu.root.children.present? %> <% @menu.root.children.each do |root_children| %> <%= build_sortable_tree(@menu, root_children) %> <% end %> <% else %>
<%= raw Spree.t('admin.navigation.no_menu_items', menu: @menu.root.name) %>
<% end %>
<% end %>