Sha256: 9a2286dcffc698a566b8622ee4d74b230eb79381fafbe26cf3e2a1bfb1ce5160

Contents?: true

Size: 852 Bytes

Versions: 6

Compression:

Stored size: 852 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.button admin.t("buttons.save", default: "Save %{model_name}"), style: :success if admin.actions.include?(:update) %>
<% end %>

<% toolbar(:secondary) do |t| %>
  <%= t.link admin.t("buttons.delete", default: "Delete %{model_name}"), instance, action: :destroy, method: :delete, style: :danger, icon: "fa fa-trash", data: { toggle: "confirm-delete", placement: "bottom" } if admin.actions.include?(:destroy) %>
<% 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" %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
trestle-0.9.1 app/views/trestle/resource/show.html.erb
trestle-0.9.0 app/views/trestle/resource/show.html.erb
trestle-0.8.13 app/views/trestle/resource/show.html.erb
trestle-0.8.12 app/views/trestle/resource/show.html.erb
trestle-0.8.11 app/views/trestle/resource/show.html.erb
trestle-0.8.10 app/views/trestle/resource/show.html.erb