Add dox note in inquiry
parent
8c3d7757a7
commit
a0426b75f9
|
@ -122,6 +122,10 @@ object inquiry {
|
||||||
postForm(cls := "note", action := s"${routes.User.writeNote(in.user.username)}?note")(
|
postForm(cls := "note", action := s"${routes.User.writeNote(in.user.username)}?note")(
|
||||||
textarea(name := "text", placeholder := "Write a mod note"),
|
textarea(name := "text", placeholder := "Write a mod note"),
|
||||||
input(tpe := "hidden", name := "mod", value := "true"),
|
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")(
|
div(cls := "submission")(
|
||||||
submitButton(cls := "button thin")("SEND")
|
submitButton(cls := "button thin")("SEND")
|
||||||
)
|
)
|
||||||
|
|
|
@ -163,7 +163,7 @@ final class ChatApi(
|
||||||
text = data.text,
|
text = data.text,
|
||||||
busChan = data.chan match {
|
busChan = data.chan match {
|
||||||
case "tournament" => _.Tournament
|
case "tournament" => _.Tournament
|
||||||
case _ => _.Swiss
|
case _ => _.Swiss
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -191,6 +191,16 @@ body.no-inquiry {
|
||||||
padding: 0.5em 1em;
|
padding: 0.5em 1em;
|
||||||
height: 8em;
|
height: 8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.note-dox {
|
||||||
|
display: flex !important;
|
||||||
|
align-items: center;
|
||||||
|
padding: 0.5em;
|
||||||
|
> label {
|
||||||
|
margin-left: 0.5em;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.actions,
|
.actions,
|
||||||
|
|
Loading…
Reference in New Issue