2010-06-22 13:04:40 +00:00
|
|
|
- highlighted_field_name = parent.highlighted_field_name rescue ''
|
|
|
|
|
|
|
|
= form.inputs :name => title || :attributes do
|
|
|
|
- form.object.custom_fields.each do |field|
|
2011-07-01 00:15:45 +00:00
|
|
|
- highlighted = highlighted_field_name == field._name
|
|
|
|
- required = highlighted || field.required
|
2010-07-21 23:56:42 +00:00
|
|
|
|
2011-07-01 00:15:45 +00:00
|
|
|
= render "/admin/custom_fields/types/#{field.kind}", :form => form, :parent => parent, :field => field, :required => required, :highlighted => highlighted
|
2011-05-19 15:44:04 +00:00
|
|
|
|
2011-03-17 16:41:25 +00:00
|
|
|
= render '/admin/custom_fields/category_tmpl'
|