Sha256: c2f321c5cd7078b8f145db5c5838a85f34f088b63fa464f01206c241bf019847

Contents?: true

Size: 717 Bytes

Versions: 9

Compression:

Stored size: 717 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) { "New #{page.resource_name.titleize}" } %>

<header class="header">
  <h1 class="header__heading"><%= content_for(:title) %></h1>
  <div class="header__actions">
    <%= link_to 'Back', :back, class: "button" %>
  </div>
</header>

<%= render 'form', page: page %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
administrate-0.4.0 app/views/administrate/application/new.html.erb
administrate-0.3.0 app/views/administrate/application/new.html.erb
administrate-0.2.2 app/views/administrate/application/new.html.erb
administrate-0.2.1 app/views/administrate/application/new.html.erb
administrate-0.2.0 app/views/administrate/application/new.html.erb
administrate-0.2.0.rc1 app/views/administrate/application/new.html.erb
administrate-0.1.5 app/views/administrate/application/new.html.erb
administrate-0.1.4 app/views/administrate/application/new.html.erb
administrate-0.1.3 app/views/administrate/application/new.html.erb