Sha256: a9790c05db18a79f0ac362f9c47cd445aa85416d32f84e77342070d5c47998eb
Contents?: true
Size: 783 Bytes
Versions: 7
Compression:
Stored size: 783 Bytes
Contents
- if tmpl = admin_partial_name(form_builder) = render tmpl - else = admin_form_for resource do |f| - form_builder.fields.each do |node| - if node.group? - if node.localized? = f.locale_tabs do |l| - node.fields.each do |field| = f.input field.name, :locale => l, :as => (:editor if field.name.to_s =~ /description|content|body/) - else = input_set node.title, node.options do - node.fields.each do |field| = f.input field.name, field.options - else = f.input node.name, node.options - if f.object.respond_to?(:fileupload_guid) && f.object.new_record? = f.hidden_field :fileupload_guid = f.save_buttons - if settings[:comments] = admin_comments
Version data entries
7 entries across 7 versions & 1 rubygems