Sha256: da9ae620efacac152c0e788e2fa667e590698b511abe4f4edb64174bf56c4d1e
Contents?: true
Size: 1.13 KB
Versions: 2
Compression:
Stored size: 1.13 KB
Contents
<%# # Edit This view is the template for the edit page. It displays a header, and 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.edit_resource", name: page.page_title) } %> <header class="main-content__header"> <h1 class="main-content__page-title"> <%= content_for(:title) %> </h1> <%= content_for(:header_middle) %> <div> <%= link_to( t("administrate.actions.show_resource", name: page.page_title), [namespace, page.resource], class: "button", ) if accessible_action?(page.resource, :show) %> </div> <%= content_for(:header_last) %> </header> <%= content_for(:before_main) %> <% if content_for?(:main) %> <%= content_for(:main) %> <% else %> <section class="main-content__body"> <%= render "form", page: page %> </section> <% end %> <%= content_for(:after_main) %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
administrate-1.0.0.beta3 | app/views/administrate/application/edit.html.erb |
administrate-1.0.0.beta2 | app/views/administrate/application/edit.html.erb |