Sha256: ae971b386fcafe44cfc40d627626e46e5015a80b26e763ef0a22955972cdcb40

Contents?: true

Size: 670 Bytes

Versions: 3

Compression:

Stored size: 670 Bytes

Contents

<% title = admin.t("titles.edit", default: "Editing %{model_name}") %>

<% content_for(:title, title) %>
<% breadcrumb(title) unless admin.singular? %>

<% toolbar(:primary) do |t| %>
  <%= t.save_or_dismiss(:update) %>
  <%= hook("show.toolbar.primary", t) %>
<% end %>

<% toolbar(:secondary) do |t| %>
  <%= t.delete %>
  <%= hook("show.toolbar.secondary", t) %>
<% end %>

<%= 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 %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
trestle-0.10.1 app/views/trestle/resource/show.html.erb
trestle-0.10.0 app/views/trestle/resource/show.html.erb
trestle-0.10.0.pre2 app/views/trestle/resource/show.html.erb