app/views/admin/manager/_form.html.slim in ab_admin-0.4.0 vs app/views/admin/manager/_form.html.slim in ab_admin-0.5.0
- old
+ new
@@ -10,10 +10,13 @@
- field.options[:as] = :editor if !field.options.key?(:as) && field.name.to_s =~ /description|content|body/
= f.render_dsl_node field, locale: l
- else
= input_set node.title, node.options do
- node.fields.each do |field|
- = f.render_dsl_node field
+ - if field.block && field.options[:as] == :capture_block
+ = instance_exec(f, &field.block)
+ - else
+ = f.render_dsl_node field
- else
= f.render_dsl_node node
- if f.object.respond_to?(:fileupload_guid) && f.object.new_record?
= f.hidden_field :fileupload_guid
\ No newline at end of file