       height    : "auto"
       tabs      :
         forms   : {}
-            
+
     fields =
       # Type    :
       #   label       : "Type"
       #   name        : "type"
       #   defaultValue: "mysql"
-      #   attributes  : {readonly  : yes}        
+      #   attributes  : {readonly  : yes}
       # Title :
       #   label       : "Friendly name"
       #   name        : "title"

    super options,data

  # attachListeners:()->
  # 
  #   @items.forEach (item)=>
  #     item.getData().on "update",()->
  #       log "update event called:",item

      iconOnly  : yes
      iconClass : "plus"
      callback  : ()=> list.showAddModal()

    list.on "DeleteDatabaseSubmitted", (listItem)=> @deleteDatabase listItem
    list.on "UpdateDatabaseSubmitted", (listItem, formdata)=> @updateDatabase listItem, formdata
    list.on "AddDatabaseSubmitted", => @addDatabase()

    @on "DatabaseDeleted", (listItem)=> list.removeItem listItem
    @on "DatabaseUpdated", (listItem)=>
    @on "DatabaseAdded", (itemData)=>
      list.addItem itemData, null, {type : "slideDown", duration : 100}
      new KDModalView
        title   : "New Database Information"
