           name        : "password"
           placeholder : "password..."
           defaultValue: data.password if data
-      port :
-        label : new KDLabelView
-          title : "Port number:"
-        input : new KDInputView
-          name        : "port"
-          placeholder : "port..."
-          defaultValue: data.port if data
-
-      accessKey :
-        label : new KDLabelView
-          title : "Access Key:"
-        input : new KDInputView
-          name        : "accessKey"
-          placeholder : "AWS access key..."
-          defaultValue: data.accessKey if data
-
-      secret :
-        label : new KDLabelView
-          title : "Secret Key:"
-        input : new KDInputView
-          type        : "password"
-          name        : "secret"
-          placeholder : "AWS Secret"
-          defaultValue: data.secret if data
+
+      # port :
+      #   label : new KDLabelView
+      #     title : "Port number:"
+      #   input : new KDInputView
+      #     name        : "port"
+      #     placeholder : "port..."
+      #     defaultValue: data.port if data
+
+      # accessKey :
+      #   label : new KDLabelView
+      #     title : "Access Key:"
+      #   input : new KDInputView
+      #     name        : "accessKey"
+      #     placeholder : "AWS access key..."
+      #     defaultValue: data.accessKey if data
+
+      # secret :
+      #   label : new KDLabelView
+      #     title : "Secret Key:"
+      #   input : new KDInputView
+      #     type        : "password"
+      #     name        : "secret"
+      #     placeholder : "AWS Secret"
+      #     defaultValue: data.secret if data
 
     createForm = (items)=>
 


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




  destroyModal:=>
    @modal.destroy()

              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
