%h3= form.object.class.human_attribute_name(:blocks)

.row
  .block-forms.col-xs-10
    - form.object.blocks.each do |block|
      .block-form.panel.panel-primary= form.block_form block

  .block-buttons.btn-group-vertical.col-xs-2{data: { spy: "affix" }}
    - form.object.block_names.each do |block_name|
      - new_block = form.block_form block_name.to_s.singularize.classify.constantize.new, template: true
      - new_block = new_block.html_safe
      %button.btn.btn-default.btn-block.btn-lg{data: { form: { html: new_block }.to_json }, type: "button"}
        .pull-left
          %span.glyphicon.glyphicon-plus
          = block_name.to_s.classify.constantize.model_name.human


%h3= form.object.class.human_attribute_name(:blocks)

.row
  .block-forms.col-xs-10
    - form.object.blocks.each do |block|
      .block-form.panel.panel-primary= form.block_form block

  .block-buttons.btn-group-vertical.col-xs-2{data: { spy: "affix" }}
    - form.object.block_names.each do |block_name|
      - new_block = form.block_form block_name.to_s.singularize.classify.constantize.new, template: true
      - new_block = new_block.html_safe
      %button.btn.btn-default.btn-block.btn-sm{data: { form: { html: new_block }.to_json }, type: "button"}
        .pull-left
          %span.glyphicon.glyphicon-plus
          = block_name.to_s.classify.constantize.model_name.human


Use small buttons instead of large one
Use small buttons instead of large one
