= form_for [@project, @sweep], html: { role: 'form' } do |f|
  = render 'shared/error_explanation', instance: @sweep

  .form-group
    = f.label :title, 'Title', class: 'control-label'
    = f.text_field :title, class: 'form-control',
      autofocus: true, required: true
  .form-group
    = f.label :description, 'Description', class: 'control-label'
    = f.text_area :description, rows: 4, class: 'form-control'
  .form-group
    = f.label :email, 'E-mail', class: 'control-label'
    = f.text_field :email, class: 'form-control', type: 'email'
    %p.help-block
      If you specify an email address here, a message will be sent to it when
      all snapshots are ready.
  .form-group
    = f.label :delay_seconds, 'Delay snapshotting (seconds)', class: 'control-label'
    = f.text_field :delay_seconds, class: 'form-control', type: 'number',
      min: '1', step: '1', pattern: '\d+'
    %p.help-block
      Enter the number of seconds you wish to delay the start of snapshot
      creation with. Leave empty to start snapshotting immediately.
  .form-group
    = f.submit 'Save', class: 'btn btn-primary'

= form_for [@project, @sweep], html: { role: 'form' } do |f|
  = render 'shared/error_explanation', instance: @sweep

  .form-group
    = f.label :title, 'Title', class: 'control-label'
    = f.text_field :title, class: 'form-control',
      autofocus: true, required: true
  .form-group
    = f.label :description, 'Description', class: 'control-label'
    = f.text_area :description, rows: 4, class: 'form-control'
  .form-group
    = f.label :email, 'E-mail', class: 'control-label'
    = f.text_field :email, class: 'form-control', type: 'email'
    %p.help-block
      If you specify an email address here, a message will be sent to it when
      all snapshots are ready.
  .form-group
    = f.label :delay_seconds, 'Delay snapshotting (seconds)', class: 'control-label'
    = f.text_field :delay_seconds, class: 'form-control', type: 'number',
      min: '1', step: '1', pattern: '\d+'
    %p.help-block
      Enter the number of seconds you wish to delay the start of snapshot
      creation with. Leave empty to start snapshotting immediately.
  .form-group
    = f.submit 'Start sweep', class: 'btn btn-primary'

Change button text when starting sweeps
Change button text when starting sweeps

The button on the new sweep form used to say "Save". "Start sweep" is
better.
