Sha256: bb5e1eb998a280d362a53179ecf0a40ecaef0a76735f54af8f4017b9cbe58491
Contents?: true
Size: 770 Bytes
Versions: 2
Compression:
Stored size: 770 Bytes
Contents
<%# # New This view is the template for the "new resource" page. It displays a header, and then renders the `_form` partial to do the heavy lifting. ## Local variables: - `page`: An instance of [Administrate::Page::Form][1]. Contains helper methods to help display a form, and knows which attributes should be displayed in the resource's form. [1]: http://www.rubydoc.info/gems/administrate/Administrate/Page/Form %> <% content_for(:title) { "#{t("administrate.actions.new")} #{page.resource_name.titleize}" } %> <header class="header"> <h1 class="header__heading"><%= content_for(:title) %></h1> <div class="header__actions"> <%= link_to t("administrate.actions.back"), :back, class: "button" %> </div> </header> <%= render 'form', page: page %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
administrate-0.6.0 | app/views/administrate/application/new.html.erb |
administrate-0.5.0 | app/views/administrate/application/new.html.erb |