lib/storefront/form/field.rb in storefront-0.3.0 vs lib/storefront/form/field.rb in storefront-0.3.1
- old
+ new
@@ -34,16 +34,16 @@
attributes[:id] = attribute.to_id(:type => :field, :index => index, :parent_index => parent_index)
end
unless [:hidden, :submit].include?(input_type)
# errors
- @errors = Storefront::Form::Errors.new(options.slice(:error_html, :error, :model, :index, :parent_index, :attribute, :template))
+ @errors = Storefront::Form::Errors.new(options.slice(:rich_input, :error_html, :error, :model, :index, :parent_index, :attribute, :template))
# label
- @label = Storefront::Form::Label.new(options.slice(:label_html, :label, :model, :index, :parent_index, :attribute, :template))
+ @label = Storefront::Form::Label.new(options.slice(:rich_input, :label_html, :label, :model, :index, :parent_index, :attribute, :template))
# hint
- @hints = Storefront::Form::Hint.new(options.slice(:hint_html, :hint, :model, :index, :parent_index, :attribute, :template))
+ @hints = Storefront::Form::Hint.new(options.slice(:rich_input, :hint_html, :hint, :model, :index, :parent_index, :attribute, :template))
end
unless input_type == :fieldset
# inputs
@input_attributes = default_options!.merge(attributes.except(:id, :class, :field_html, :attributes, :error_html, :label_html, :hint_html))