.new-site-comment-form
  %h1= t ".title"
  = semantic_form_for @site_comment, remote: true do |f|
    = f.inputs do
      = f.input :body
      = f.input :name
      = f.input :email
      = f.input :context_url, as: :hidden, value: request.referer
    = f.buttons do
      = f.commit_button
      = cancel_link root_path

.new-site-comment-form
  %h1= t ".title"
  = semantic_form_for @site_comment, remote: true do |f|
    = f.inputs do
      = f.input :body
      = f.input :name
      = f.input :email
      = f.input :context_url, as: :hidden, value: request.referer
    = f.buttons do
      = f.commit_button button_html: { data: { disable_with: t("formtastic.actions.saving") } }
      = cancel_link root_path

Reduce the number of duplicate feedbacks by disabling the submit button.
Reduce the number of duplicate feedbacks by disabling the submit button.
