Sha256: 71024a63a27df99874dbb82ba2097dd3ff145d634a4d208f8fb17d00e1a4dffc

Contents?: true

Size: 903 Bytes

Versions: 19

Compression:

Stored size: 903 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) do %>
  <%= t(
    "administrate.actions.new_resource",
    name: display_resource_name(page.resource_name).titleize
  ) %>
<% end %>

<header class="main-content__header" role="banner">
  <h1 class="main-content__page-title">
    <%= content_for(:title) %>
  </h1>

  <div>
    <%= link_to t("administrate.actions.back"), :back, class: "button" %>
  </div>
</header>

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

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
administrate-0.18.0 app/views/administrate/application/new.html.erb
administrate-0.17.0 app/views/administrate/application/new.html.erb
administrate-0.16.0 app/views/administrate/application/new.html.erb
administrate-0.15.0 app/views/administrate/application/new.html.erb
administrate-0.14.0 app/views/administrate/application/new.html.erb
viniBaxterDesk-22.0.0 app/views/administrate/application/new.html.erb
viniBaxterDesk-0.21.0 app/views/administrate/application/new.html.erb
viniBaxterDesk-0.20.0 app/views/administrate/application/new.html.erb
viniBaxterDesk-0.14.0 app/views/administrate/application/new.html.erb
viniBaxterDesk-0.13.2 app/views/administrate/application/new.html.erb
viniBaxterDesk-0.13.1 app/views/administrate/application/new.html.erb
administrate-0.13.0 app/views/administrate/application/new.html.erb
administrate-0.12.0 app/views/administrate/application/new.html.erb
administrate-0.11.0 app/views/administrate/application/new.html.erb
semantic-administrate-0.10.1 app/views/administrate/application/new.html.erb
semantic-administrate-0.10.0 app/views/administrate/application/new.html.erb
administrate-0.10.0 app/views/administrate/application/new.html.erb
semantic-administrate-0.1.1 app/views/administrate/application/new.html.erb
administrate-0.9.0 app/views/administrate/application/new.html.erb