Sha256: f5184718f72f709fc7a75f4ec74a2d960824f6738b01523baf1269f79f5b44ce

Contents?: true

Size: 604 Bytes

Versions: 2

Compression:

Stored size: 604 Bytes

Contents

<% title = t("admin.titles.new", default: "New %{model_name}", model_name: admin.model_name.titleize, pluralized_model_name: admin.model_name.plural.titleize) %>

<% 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" if admin.actions.include?(:create) %>
<% end %>

<%= trestle_form_for instance, url: admin.path, method: :post 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.7 app/views/trestle/resource/new.html.erb
trestle-0.8.6 app/views/trestle/resource/new.html.erb