Sha256: fb1e18c572cc1ae4cd88c366c300069f83dfa18bdfe320984ec7e35b3ebd63b5
Contents?: true
Size: 889 Bytes
Versions: 4
Compression:
Stored size: 889 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) do %> <%= t( "administrate.actions.new_resource", name: display_resource_name(page.resource_name).titleize ) %> <% end %> <header class="main-content__header"> <h1 class="main-content__page-title"> <%= content_for(:title) %> </h1> <div> <%= link_to t("administrate.actions.back"), :back, class: "button" %> </div> </header> <section class="main-content__body"> <%= render "form", page: page %> </section>
Version data entries
4 entries across 4 versions & 1 rubygems