Sha256: 79bb309ebc78598c35ab41077788501f1dfdff37a9bf2dd34bc9640a647635aa
Contents?: true
Size: 910 Bytes
Versions: 16
Compression:
Stored size: 910 Bytes
Contents
<%%= semantic_form_for([:admin,@<%= singular_table_name %>], :html => {:multipart => true}) do |f| %> <%% if @<%= singular_table_name %>.errors.any? %> <div id="error_explanation"> <h2><%%= pluralize(@<%= singular_table_name %>.errors.count, "error") %> prohibited this <%= singular_table_name %> from being saved:</h2> <ul> <%%= @<%= singular_table_name %>.errors.full_messages.each do |msg| %> <li><%%= msg %></li> <%% end %> </ul> </div> <%% end %> <%%= f.inputs do %> <% for attribute in attributes -%> <% unless attribute.type == :text %> <%%= f.input :<%= attribute.name %>, :label => '<%= attribute.name %>' %> <% else %> <%%= f.input :<%= attribute.name %>, :label => '<%= attribute.name %>', :input_html => {:class => 'html_editor'} %> <% end -%> <% end %> <%% end %> <%%= f.buttons %> <%% end %>
Version data entries
16 entries across 16 versions & 1 rubygems