       Form.getSubmitButton(template).toggleClass('disabled', !!disabled)
 
     Form.getSubmitButton = (template) ->
-      $buttons = template.$('.crud.buttons')
-      template.$('[type="submit"]', $buttons)
+      $form = Forms.getFormElement(template)
+      template.$('[type="submit"]', $form)
 
     Form.getSingularName = ->
       collectionName = formArgs.collectionName ? Collections.getTitle(Form.getCollection())


    Form.parseDocs = (template) ->
      template = getTemplate(template)
      data = template.data
      if data.docs?
        docs = data.docs
      else if data.doc?


    Form.setUpDocs = (template) ->
      template = getTemplate(template)
      data = template.data ? {}
      template.docs = Form.parseDocs(template)
      data.doc = Form.getValues(template)
      template.origDoc = Setter.clone(data.doc)

    Form.updateDocs = (template) ->
      template = getTemplate(template)
      data = template.data ? {}
      docs = _.map template.docs, (doc) -> Form.getCollection().findOne(doc._id)
      template.docs = docs
      data.doc = Form.getValues(template)
