Add dox note in inquiry

pull/9935/head
kraktus 2021-10-05 18:05:06 +02:00
parent 8c3d7757a7
commit a0426b75f9
3 changed files with 15 additions and 1 deletions

View File

@ -122,6 +122,10 @@ object inquiry {
postForm(cls := "note", action := s"${routes.User.writeNote(in.user.username)}?note")(
textarea(name := "text", placeholder := "Write a mod note"),
input(tpe := "hidden", name := "mod", value := "true"),
isGranted(_.Admin) option div(cls := "note-dox")(
div(form3.cmnToggle("note-dox", "dox", checked = false)),
label(`for` := "note-dox")("Doxing info")
),
div(cls := "submission")(
submitButton(cls := "button thin")("SEND")
)

View File

@ -191,6 +191,16 @@ body.no-inquiry {
padding: 0.5em 1em;
height: 8em;
}
.note-dox {
display: flex !important;
align-items: center;
padding: 0.5em;
> label {
margin-left: 0.5em;
cursor: pointer;
}
}
}
.actions,