mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
26 lines
701 B
Plaintext
26 lines
701 B
Plaintext
<%#
|
|
# 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) { "Edit #{page.page_title}" } %>
|
|
|
|
<header class="header">
|
|
<h1 class="header-heading"><%= content_for(:title) %></h1>
|
|
<%= link_to "Show #{page.resource}", [Administrate::NAMESPACE, page.resource], class: "button" %>
|
|
</header>
|
|
|
|
<%= render "form", page: page %>
|