app/views/trestle/resource/edit.html.erb in trestle-0.9.8 vs app/views/trestle/resource/edit.html.erb in trestle-0.10.0.pre
- old
+ new
@@ -9,8 +9,10 @@
<% toolbar(:secondary) do |t| %>
<%= t.delete %>
<% end %>
-<%= trestle_form_for instance, url: admin.actions.include?(:update) ? admin.instance_path(instance, action: :update) : "#", method: :patch do |f| %>
- <%= render partial: "form", layout: dialog_request? ? "dialog" : "layout" %>
+<%= resource_turbo_frame(instance) do %>
+ <%= trestle_form_for instance, url: admin.actions.include?(:update) ? admin.instance_path(instance, action: :update) : "#", method: :patch do |f| %>
+ <%= render partial: "form", layout: modal_request? ? "modal" : "layout" %>
+ <% end %>
<% end %>