engine/app/views/admin/custom_fields/_custom_form.html.haml

10 lines
472 B
Plaintext
Raw Normal View History

- highlighted_field_name = parent.highlighted_field_name rescue ''
= form.inputs :name => title || :attributes do
- form.object.custom_fields.each do |field|
- highlighted = highlighted_field_name == field._name
- required = highlighted || field.required
2010-07-21 23:56:42 +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'