                 label         : "Subject:"
                 placeholder   : 'Enter a subject'
                 name          : "subject"
-              Message         :
+              message         :
                 label         : "Message:"
                 type          : "textarea"
                 name          : "body"


    toField.addSubView recipient.getView()
    toField.addSubView recipientsWrapper
    recipient.setDefaultValue to  if to


  loadView:(mainView)->
    mainView.createCommons()

  sendMessage:(messageDetails, callback)->
    if KD.isGuest()
      return new KDNotificationView
        title : "Sending private message for guests not allowed."

    {subject, body} = messageDetails
    if subject.trim() is ''
      return new KDNotificationView
        title : "Please enter a subject."

    if body.trim() is ''
      return new KDNotificationView
        title : "Please enter a message."

    KD.remote.api.JPrivateMessage.create messageDetails, callback

