= simple_form_for @search, url: "#", method: :get, as: :search, html: { class: "search-form" } do |f|
  .row
    .col-md-9.col-sm-8
      = render 'admin/users/navigation'

    .col-md-3.col-sm-4.col-xs-12.pull-right.text-right
      = link_to public_send("new_admin_#{controller_name.singularize}_path"), class: 'new-user btn btn-secondary btn-md' do
        = "+ Add #{controller_name == "users" ? "applicant" : controller_name.singularize}"
  .clear

  br

  .row
    .col-md-4.col-sm-5.col-xs-12
      .form-group.search-input
        = f.input :query, label: false, input_html: { class: "form-control", placeholder: "Search...", type: "search" }
        = submit_tag :submit, class: 'search-submit'
  .clear

  - if @search.query?
    .well.search-text
      p
        = "Search results for '#{@search.query}'"
        small
          = link_to "(Clear search)", [:admin, controller_name], class: "btn btn-link"

  = render 'list', resources: @resources, f: f

  .row
    .col-xs-12.text-right
      = paginate @resources
      .clear

= simple_form_for @search, url: "#", method: :get, as: :search, html: { class: "search-form" } do |f|
  .row
    .col-md-9.col-sm-8
      = render 'admin/users/navigation'
  .clear

  br

  .row
    .col-md-4.col-sm-5.col-xs-12
      .form-group.search-input
        = f.input :query, label: false, input_html: { class: "form-control", placeholder: "Search...", type: "search" }
        = submit_tag :submit, class: 'search-submit'

    .col-md-3.col-sm-4.col-xs-12.pull-right.text-right
      = link_to public_send("new_admin_#{controller_name.singularize}_path"), class: 'new-user btn btn-secondary btn-md' do
        = "+ Add #{controller_name == "users" ? "applicant" : controller_name.singularize}"
  .clear

  - if @search.query?
    .well.search-text
      p
        = "Search results for '#{@search.query}'"
        small
          = link_to "(Clear search)", [:admin, controller_name], class: "btn btn-link"

  = render 'list', resources: @resources, f: f

  .row
    .col-xs-12.text-right
      = paginate @resources
      .clear

Move the add user button lower
Move the add user button lower

bitzesty/qae,bitzesty/qae,bitzesty/qae,bitzesty/qae