Sha256: 2b141c841b80b3f38754aadb2689cfb15dc158f12be8d4d8e1e6d27a62bb8750

Contents?: true

Size: 935 Bytes

Versions: 4

Compression:

Stored size: 935 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">
  <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 accessible_action?(page.resource, :show) %>
  </div>
</header>

<section class="main-content__body">
  <%= render "form", page: page %>
</section>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
administrate-1.0.0.beta1 app/views/administrate/application/edit.html.erb
administrate-0.20.1 app/views/administrate/application/edit.html.erb
administrate-0.20.0 app/views/administrate/application/edit.html.erb
administrate-0.19.0 app/views/administrate/application/edit.html.erb