Sha256: fc918dabd146a8021fc3eb6e610adf9f01cac47f773b57dfa36b08acbdb657a4

Contents?: true

Size: 771 Bytes

Versions: 8

Compression:

Stored size: 771 Bytes

Contents

<%= form_for([Administrate::NAMESPACE, @page.resource], class: "form") do |f| %>
  <% if @page.resource.errors.any? %>
    <div id="error_explanation">
      <h2>
        <%= pluralize(@page.resource.errors.count, "error") %>
        prohibited this <%= @page.resource_name %> from being saved:
      </h2>

      <ul>
        <% @page.resource.errors.full_messages.each do |message| %>
          <li><%= message %></li>
        <% end %>
      </ul>
    </div>
  <% end %>

  <div class="form-inputs">
    <% @page.attributes.each do |attribute| -%>
      <div class="form-field form-field-<%= attribute.html_class %>">
        <%= render_field attribute, f: f %>
      </div>
    <% end -%>
  </div>

  <div class="form-actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
administrate-0.0.12 app/views/administrate/application/_form.html.erb
administrate-0.0.11 app/views/administrate/application/_form.html.erb
administrate-0.0.10 app/views/administrate/application/_form.html.erb
administrate-0.0.9 app/views/administrate/application/_form.html.erb
administrate-0.0.8 app/views/administrate/application/_form.html.erb
administrate-0.0.7 app/views/administrate/application/_form.html.erb
administrate-0.0.6 app/views/administrate/application/_form.html.erb
administrate-0.0.4 app/views/administrate/application/_form.html.erb