   #     </div>
   #     <a href='#' class='action-link'>Edit</a>
   #   """
-
-
-
-

              username      : f.username
              password      : f.password
              port          : f.port
          when "s3"
            jm = new KD.remote.api.JMountS3
              title         : f.title ? f.hostname
              accessKeyId   : f.accessKey
              secret        : f.secret
          when "webdav"
            jm = new KD.remote.api.JMountWebDav
              title         : f.title ? f.hostname
              hostname      : f.hostname
              username      : f.username
              password      : f.password
              port          : f.port

        jm.save (err)=>
          if err


    modal.createButton "cancel",style : "modal-cancel", callback : @destroyModal
    modal.addSubView helpBox = new HelpBox, ".kdmodal-buttons"

  destroyModal:=>
    @modal.destroy()
