button(type="button", uk-close).uk-modal-close-default
form(
  method="POST",
  action=`/chat/room/${room._id}/invite`,
  onsubmit="return dtp.app.submitForm(event, 'invite chat member');"
).uk-form
  .uk-card.uk-card-default.uk-card-small
    .uk-card-header
      h1.uk-card-title Invite Member

    .uk-card-body
      p You are inviting a new member to #{room.name}
      .uk-margin
        label(for="username").uk-form-label Username
        input(id="username", name="username", type="text", maxlength="100", required).uk-input
      .uk-margin
        label(for="message").uk-form-label Message
        textarea(id="message", name="message", rows="2", placeholder="Enter message for recipient").uk-textarea

    .uk-card-footer.uk-flex.uk-flex-right
      .uk-width-auto
        button(type="submit").uk-button.uk-button-primary.uk-border-rounded Send