 class BuyVmModal extends KDModalView
-  
+
   constructor: (options = {}, data) ->
     do (o = options) ->
       o.title    ?= "Create a new VM"

      when 'billing choice'   then @choiceForm.show()
      when 'billing entry'    then @entryForm.show()
      when 'confirm'
        @confirmForm.setData @getAggregatedData()
        @confirmForm.show()

  createConfirmForm: -> new BuyVmConfirmView

      { accountCode } = billingInfo

      @addAggregateData { accountCode }

      @setState 'confirm'

    form

