Sha256: b7aa7ad4fafa477954b4eb50d7b3987eef25c5ffeb2f727e90a26c4ddc4b5138
Contents?: true
Size: 990 Bytes
Versions: 6
Compression:
Stored size: 990 Bytes
Contents
<% title = I18n.t("admin.titles.edit", default: "Editing %{model_name}", model_name: admin.model_name, pluralized_model_name: admin.model_name.pluralize) %> <% content_for(:title, title) %> <% breadcrumb title %> <% content_for(:primary_toolbar) do %> <%= button_tag t("admin.buttons.save", default: "Save %{model_name}", model_name: admin.model_name), class: "btn btn-success btn-lg" unless admin.readonly? %> <% end %> <% content_for(:secondary_toolbar) do %> <%= link_to admin.path(:destroy, id: admin.to_param(instance)), method: :delete, class: "btn btn-danger", data: { toggle: "confirm-delete", placement: "bottom" } do %> <%= icon("fa fa-trash") %> <%= t("admin.buttons.delete", default: "Delete %{model_name}", model_name: admin.model_name) %> <% end unless admin.readonly? %> <% end %> <%= trestle_form_for instance, url: admin.readonly? ? "#" : admin.path(:update, id: admin.to_param(instance)) do |f| %> <%= render partial: "form", layout: "layout" %> <% end %>
Version data entries
6 entries across 3 versions & 1 rubygems