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