<%= form_with model: item, scope: :item, url: path do |form| %> <%= form.hidden_field :type %> <%= render "form_errors", form: %>
<%= form.label :title %> <%= form.text_field :title %>
<%= form.label :url %> <%= form.text_field :url %>
<%= form.label :http_method %> <%= form.select :http_method, Katalyst::Navigation::Link::HTTP_METHODS %>
<%= form.label :target %> <%= form.select :target, Katalyst::Navigation::Link::TARGETS %>
<%= form.label :visible %> <%= form.check_box :visible %>
<%= form.submit "Done" %> <%= link_to "Discard", item.menu %> <% end %>