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

9 lines
411 B
Plaintext

- highlighted_field_name = parent.highlighted_field_name rescue ''
= form.inputs :name => title || :attributes do
- form.object.custom_fields.each do |field|
- required = highlighted_field_name == field._name || field.required
= render "/admin/custom_fields/types/#{field.kind}", :form => form, :parent => parent, :field => field, :required => required
= render '/admin/custom_fields/category_tmpl'