<%= semantic_form_for :send_emails, :url => admin_buyers_accounts_bulk_send_email_path,
  :html => {
    :'data-remote' => true,
    :'data-confirm' => "Are you sure to send emails to these #{@accounts.count} accounts?"
  } do |form| %>
  <%= form.inputs do %>
    <%= render 'buyers/accounts/bulk/selected_accounts' %>
    <%= form.input :to, :as => :string, :input_html => {:disabled => true, :value => "#{@accounts.count} selected accounts"} %>
    <%= form.input :subject, :as => :string %>
    <%= form.input :body, :as => :text, :input_html => {:rows => 10} %>
    <%= form.buttons do %>
      <%= form.commit_button 'Send', :button_html => {:'data-disable-with' => 'Running bulk action...' } %>
    <% end %>
  <% end %>
 <% end %>
