Sha256: fc21b8f1c3c2025a3615e85b4aca489d6202dfa66ba2c751b7dec4814f3085fa
Contents?: true
Size: 732 Bytes
Versions: 2
Compression:
Stored size: 732 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"> <%= render_field attribute, f: f %> </div> <% end -%> </div> <div class="form-actions"> <%= f.submit %> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
administrate-0.0.3 | app/views/administrate/application/_form.html.erb |
administrate-0.0.2 | app/views/administrate/application/_form.html.erb |