Sha256: 1ba6a6a97cd87c9836b4a4ff09381ea38987608b8cdb2d7fdb1b3ddd6ccbde46

Contents?: true

Size: 462 Bytes

Versions: 6

Compression:

Stored size: 462 Bytes

Contents

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

<% content_for(:title, title) %>
<% breadcrumb(title) %>

<% toolbar(:primary) do |t| %>
  <%= t.button admin.t("buttons.save", default: "Save %{model_name}"), style: :success if admin.actions.include?(:create) %>
<% end %>

<%= trestle_form_for instance, url: admin.path(:create), method: :post 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/new.html.erb
trestle-0.9.0 app/views/trestle/resource/new.html.erb
trestle-0.8.13 app/views/trestle/resource/new.html.erb
trestle-0.8.12 app/views/trestle/resource/new.html.erb
trestle-0.8.11 app/views/trestle/resource/new.html.erb
trestle-0.8.10 app/views/trestle/resource/new.html.erb