Sha256: 7a3d2f765748d866ab0d9ad5ef4ab9a60e680abc108273c16e5aeedf7c3319fc
Contents?: true
Size: 910 Bytes
Versions: 2
Compression:
Stored size: 910 Bytes
Contents
<% title = admin.t("titles.edit", default: "Editing %{model_name}") %> <% content_for(:title, title) %> <% breadcrumb(title) %> <% content_for(:primary_toolbar) do %> <%= button_tag admin.t("buttons.save", default: "Save %{model_name}"), class: "btn btn-success btn-lg" if admin.actions.include?(:update) %> <% end %> <% content_for(:secondary_toolbar) do %> <%= admin_link_to instance, action: :destroy, method: :delete, class: "btn btn-danger", data: { toggle: "confirm-delete", placement: "bottom" } do %> <%= icon("fa fa-trash") %> <%= admin.t("buttons.delete", default: "Delete %{model_name}") %> <% end 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trestle-0.8.9 | app/views/trestle/resource/edit.html.erb |
trestle-0.8.8 | app/views/trestle/resource/edit.html.erb |