Sha256: c793f718ee00bc42308d476c597a2debcf2b9f40df5ba2977b78f285eabc9124
Contents?: true
Size: 967 Bytes
Versions: 25
Compression:
Stored size: 967 Bytes
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" role="banner"> <h1 class="main-content__page-title"> <%= content_for(:title) %> </h1> <div> <%= link_to( t("administrate.actions.show_resource", name: page.page_title), [namespace, page.resource], class: "button", ) if valid_action?(:show) && show_action?(:show, page.resource) %> </div> </header> <section class="main-content__body"> <%= render "form", page: page %> </section>
Version data entries
25 entries across 25 versions & 4 rubygems