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