Sha256: e8140d59ccd7c3d19abbfed6bef4008a58a3a66e55cb12d3a08d079769767697
Contents?: true
Size: 695 Bytes
Versions: 2
Compression:
Stored size: 695 Bytes
Contents
= form_for @<%= singular_table_name %> do |f| -if @<%= singular_table_name %>.errors.any? .alert-message.block-message.error %p= "#{pluralize(@<%= singular_table_name %>.errors.count, "error")} prohibited this <%= singular_table_name %> from being saved:" %ul - @<%= singular_table_name %>.errors.full_messages.each do |msg| %li= msg <% for attribute in attributes -%> .clearfix = f.label :<%= attribute.name %> .input = f.<%= attribute.field_type %> :<%= attribute.name %>, :class => "<%= [:datetime_select, :date_select].include?(attribute.field_type) ? 'small' : 'xxlarge' %>" <% end -%> .actions = f.submit :class => 'btn primary'
Version data entries
2 entries across 2 versions & 1 rubygems