app/views/headmin/forms/_blocks.html.erb in headmin-0.5.1 vs app/views/headmin/forms/_blocks.html.erb in headmin-0.5.2

- old
+ new

@@ -8,22 +8,22 @@ # ==== Optional parameters # * +paths</tt> - Directories where to look for block templates # # ==== Examples # Basic version. (looks in views/admin/blocks, views/blocks or views directory ) - # <%= render "headmin/forms/blocks", form: form, names: %w(text image button) %#> + # <%= render 'headmin/forms/blocks', form: form, names: %w(text image button) %#> # # Define one ore more path where the templates could be located: - # <%= render "headmin/forms/blocks", form: form, names: %w(text image button), paths: %w(admin/pages/blocks) %#> + # <%= render 'headmin/forms/blocks', form: form, names: %w(text image button), paths: %w(admin/pages/blocks) %#> # # Limit the types of blocks - # <%= render "headmin/forms/blocks", form: form, names: %w(text text_image list) %#> + # <%= render 'headmin/forms/blocks', form: form, names: %w(text text_image list) %#> blocks = Headmin::Form::BlocksView.new(local_assigns) @lookup_context.prefixes = @lookup_context.prefixes + blocks.prefixes %> -<%= render "headmin/forms/repeater", blocks.repeater_options do |block_form, template| %> +<%= render 'headmin/forms/repeater', blocks.repeater_options do |block_form, template| %> <% name = template || block_form.object.name %> <!-- Name input of the block --> <%= block_form.hidden_field :name, value: name %>