<%= semantic_form_for :send_emails, :url => admin_buyers_applications_bulk_send_email_path,
  :html => {
    :'data-remote' => true,
    :'data-confirm' => "Are you sure to send emails to these #{@applications.count} applications ?"
  } do |form| %>
  <%= form.inputs do %>
    <%= render 'buyers/applications/bulk/selected_applications' %>
    <%= form.input :to, :as => :string, :input_html => {:disabled => true, :value => "#{@applications.count} selected applications"} %>
    <%= 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 %>
