2010-05-25 00:32:12 +00:00
|
|
|
- highlighted_field_name = @content.content_type.highlighted_field_name
|
|
|
|
|
2010-05-26 00:41:10 +00:00
|
|
|
- puts "current custom fields = #{@content.custom_fields.inspect}"
|
|
|
|
|
2010-05-25 00:32:12 +00:00
|
|
|
= f.inputs :name => :other_fields do
|
|
|
|
- @content.custom_fields.each do |field|
|
|
|
|
- required = highlighted_field_name == field._name
|
|
|
|
|
|
|
|
- if field.string?
|
|
|
|
= f.input field._alias.to_sym, :label => field.label, :required => required
|
|
|
|
- elsif field.text?
|
|
|
|
= f.input field._alias.to_sym, :label => field.label, :as => :text, :required => required
|