     url    = "http://#{vm.hostnameAlias}"
 
     content = """
-                <div class="item">
-                  <span class="title">Name:</span>
-                  <span class="value">#{vmName}</span>
-                </div>
-                <div class="item">
-                  <span class="title">Hostname:</span>
-                  <span class="value">
-                    <a target="_new" href="#{url}">#{url}</a>
-                  </span>
-                </div>
+              <div class="item">
+                <span class="title">Name:</span>
+                <span class="value">#{vmName}</span>
+              </div>
+              <div class="item">
+                <span class="title">Hostname:</span>
+                <span class="value">
+                  <a target="_new" href="#{url}">#{url}</a>
+                </span>
+              </div>
               """
 
     modal           = new KDModalView


    vmController        = KD.getSingleton('vmController')
    paymentController   = KD.getSingleton('paymentController')
    canCreateSharedVM   = "owner" in KD.config.roles or "admin" in KD.config.roles
    canCreatePersonalVM = "member" in KD.config.roles

    group = KD.getSingleton("groupsController").getGroupSlug()

    if canCreateSharedVM
      content = """You can create a <b>Personal</b> or <b>Shared</b> VM for
                   <b>#{group}</b>. If you prefer to create a shared VM, all
                   members in <b>#{group}</b> will be able to use that VM.
                """
    else if canCreatePersonalVM
      content = """You can create a <b>Personal</b> VM in <b>#{group}</b>."""
    else
      return new KDNotificationView
        title : "You are not authorized to create VMs in #{group} group"

    vmController.fetchVMPlans (err, plans)=>
      @paymentPlans = plans
      {descriptions, hostTypes} = vmController.sanitizeVMPlansForInputs plans
      descPartial = ""
      for d in descriptions
        descPartial += """

              <cite>users</cite>
            </p>
            #{d.description}
          </section>
          """

      paymentInput = {}

      modal = new BuyVmModal { descriptions, hostTypes, descPartial, plans }

      @dialogIsOpen = yes
      modal.once 'KDModalViewDestroyed', => @dialogIsOpen = no

  showBillingMethodForm: (modal) ->

    paymentForm1 = modal.modalTabs.forms['Payment method']
    paymentForm2 = modal.modalTabs.forms['Payment method 2']

    unless modal.billingForm
      modal.billingForm = new BillingForm

      paymentController = KD.getSingleton 'paymentController'
      paymentController.observePaymentSave modal.billingForm, (err, billingMethod) ->
        paymentForm1.addCustomData accountCode: billingMethod.accountCode

      paymentForm2.addSubView modal.billingForm

    modal.modalTabs.showNextPane()

  askForApprove:(command, callback)->

