simpkey/src/views/react.pug

21 lines
501 B
Plaintext
Raw Normal View History

2020-07-23 20:53:44 +02:00
extends _base
block content
2022-11-17 21:25:19 +01:00
if canReact
h2 Want to react to this note?
+sub-note(note)
form(action="/action/react", method="post")
each val in reactions
div: label
input(type="radio", name="reaction" value=val)
!= val
div: label
input(type="radio", name="reaction", value="custom")
input(type="text", name="customReaction")
input(type="hidden", name="noteId", value=note.id)
2020-07-23 20:53:44 +02:00
2022-11-17 21:25:19 +01:00
button(type="submit") React!
else
h2 Can't react to this note
+sub-note(note)