message: Allow form to take an onSubmit argument
diff: Promise = require 'bluebird-q'
  Serializer = require '../../../../components/form/serializer.coffee'
  -module.exports = ($el) ->
  +module.exports = ($el, onSubmit) ->
  $submit = $el.find('button')
  $errors = $el.find('.js-form-errors')
  @@ -12,15 +12,22 @@ module.exports = ($el) ->
  serializer = new Serializer $el
  + onSubmit = if onSubmit then onSubmit else ->
  + promise = new Promise
  + promise.resolve()
  +
  $submit
  .prop 'disabled', true
  .text 'Saving...'
  - Promise $.ajax
  + Promise.all [
  + $.ajax(
  url: $el.data('action')
  method: $el.data('method')
  data: serializer.data()
  -
  + ),
  + onSubmit()
  + ]
  .then ->
  Promise $.get('/me/refresh')
  