app/views/katalyst/navigation/items/_link.html.erb in katalyst-navigation-1.4.1 vs app/views/katalyst/navigation/items/_link.html.erb in katalyst-navigation-1.5.0
- old
+ new
@@ -1,15 +1,26 @@
<%= form_with model: item, scope: :item, url: path do |form| %>
<%= form.hidden_field :type %>
+ <%= render "form_errors", form: %>
<div class="field">
<%= form.label :title %>
<%= form.text_field :title %>
</div>
<div class="field">
<%= form.label :url %>
<%= form.text_field :url %>
+ </div>
+
+ <div class="input">
+ <%= form.label :http_method %>
+ <%= form.select :http_method, Katalyst::Navigation::Link::HTTP_METHODS %>
+ </div>
+
+ <div class="field">
+ <%= form.label :target %>
+ <%= form.select :target, Katalyst::Navigation::Link::TARGETS %>
</div>
<div class="field">
<%= form.label :visible %>
<%= form.check_box :visible %>