       fields.push options
     this.fields = fields
 
-  this.form_name = this.form.name
+  this.form_name = form.name
 
   return Template._listForm
 

    if not DMUtils.find(Template._listRow._events, 'selector', ".edit-#{data.single.dasherize()}")
      _listRowEvents[templateEvent] = (event,template) ->
        data = template.data
        # console.log data
        if data.context.list.inlineForm is false
          link = "/#{data.context.single.dasherize()}/#{data._id}/edit"
          Router.go(link)

      # console.log data.row.events
      Template._listRow.events(data.row.events)
    else
      console.log _listRowEvents, Template._listRow._events
      Template._listRow.events(_listRowEvents)

    # Build up an array of the items to be in the list
