= form_for [@group, resource], :html => { :class => 'form-horizontal' } do |f|

  = render 'basic_fields', :f => f

  - Server.data_types.each do |type|
    = f.fields_for type do |data|
      = render "#{type}/fields", :f => data

  .new_section_links
    - Server.data_types.each do |type|
      = link_to_add_fields "Add #{type}", f, type, "#{type}/fields"

  .form-actions
    = f.submit nil, :class => 'btn btn-primary'

= form_for [@group, resource], :html => { :class => 'form-horizontal' } do |f|

  = render 'basic_fields', :f => f

  - Server.data_types.each do |type|
    = f.fields_for type do |data|
      = render "#{type}/fields", :f => data

  .new_section_links
    .btn-group
      = link_to '#', :class => ['btn', 'btn-warning', 'dropdown-toggle'], 'data-toggle' => 'dropdown' do
        New Section
        %span.caret

      %ul.dropdown-menu
        - Server.data_types.each do |type|
          %li= link_to_add_fields "Add #{type}", f, type, "#{type}/fields"

  .form-actions
    = f.submit nil, :class => 'btn btn-primary'

Replace new section options with bootstrap dropdown buttons
Replace new section options with bootstrap dropdown buttons
