- content_for :head do = include_javascripts :custom_fields = include_stylesheets :fancybox = f.inputs :name => :information do = f.input :name = f.input :slug = f.input :description = render 'admin/custom_fields/index', :form => f, :collection_name => 'contents' - unless f.object.new_record? = f.foldable_inputs :name => :presentation, :class => 'switchable' do = f.input :highlighted_field_name, :as => :select, :collection => options_for_highlighted_field(f.object, 'contents'), :include_blank => false = f.input :group_by_field_name, :as => :select, :collection => options_for_group_by_field(f.object, 'contents') = f.foldable_inputs :name => :options, :class => 'switchable' do = f.input :order_by, :as => :select, :collection => options_for_order_by(f.object, 'contents'), :include_blank => false = f.custom_input :api_enabled, :css => 'toggle' do = f.check_box :api_enabled