include ../../components/library
include comment-review
.uk-modal-body
  h4.uk-modal-title Report Comment
  form(method="POST", action=`/content-report/comment`, onsubmit="return dtp.app.submitDialogForm(event, 'report comment');").uk-form

    input(type="hidden", name="resourceType", value= params.resourceType)
    input(type="hidden", name="resourceId", value= params.resourceId)
    input(type="hidden", name="commentId", value= params.commentId)

    .uk-margin
      +renderCommentReview(comment)

    .uk-margin
      select(id="category", name="category").uk-select
        option(value="none") --- Select category ---
        option(value="spam") Spam
        option(value="violence") Violence/Threats
        option(value="porn") Porn
        option(value="doxxing") Doxxing
        option(value="faggot") Being a Faggot
        option(value="other") Other

    .uk-margin
      textarea(id="reason", name="reason", rows="4", placeholder="Enter additional notes here").uk-textarea.uk-resize-vertical
    
    .uk-margin
      label
        input(id="block-author", name="blockAuthor", type="checkbox", checked).uk-checkbox
        |  Also block #{comment.author.username}

    div(uk-grid).uk-grid-small.uk-flex-between
      .uk-width-auto
        button(type="button").uk-button.dtp-button-default.uk-modal-close Cancel
      .uk-width-auto
        button(type="submit").uk-button.dtp-button-primary Submit Report