Sha256: c76aedef18737e034a515d2c26459b87f66392ea3d65a8e9e6e9c0ab4e62159d
Contents?: true
Size: 856 Bytes
Versions: 7
Compression:
Stored size: 856 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| - field.options[:as] = :editor if !field.options.key?(:as) && field.name.to_s =~ /description|content|body/ = f.input field.name, field.options.merge(locale: l) - 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