1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/mipilin synced 2025-01-31 02:53:36 +00:00
mipilin/views/journal.pug
roxwize 7b563f5c31
i dont really know what i added
Signed-off-by: roxwize <rae@roxwize.xyz>
2024-11-17 14:16:27 -05:00

48 lines
2.2 KiB
Text

extends site.pug
block head
link(rel="stylesheet", href="/css/dashboard.css")
script(type="module", src="https://cdn.jsdelivr.net/npm/chart.js@4.4.6/dist/chart.umd.min.js", nonce=nonce)
block content
h1 Your Journal
p This is where you can log your overall mood every day, and get a glimpse at how your life is going so far!
form#journal-update(action="/update/journal", method="post")
.input
span Overall mood change (how do you feel compared to yesterday?)
#ovm
input.ovm-input(type="radio", name="moodDelta", id="moodDelta-mb", value="2", required)
label.ovm-input(for="moodDelta-mb", title="Much better")
img(src="/img/upup.svg", alt="Much better")
input.ovm-input(type="radio", name="moodDelta", id="moodDelta-b", value="1", required)
label.ovm-input(for="moodDelta-b", title="Better")
img(src="/img/up.svg", alt="Better")
input.ovm-input(type="radio", name="moodDelta", id="moodDelta-nc", value="0", required checked)
label.ovm-input(for="moodDelta-nc", title="About the same")
img(src="/img/line.svg", alt="About the same")
input.ovm-input(type="radio", name="moodDelta", id="moodDelta-w", value="-1", required)
label.ovm-input(for="moodDelta-w", title="Worse")
img(src="/img/down.svg", alt="Worse")
input.ovm-input(type="radio", name="moodDelta", id="moodDelta-mw", value="-2", required)
label.ovm-input(for="moodDelta-mw", title="Much worse")
img(src="/img/downdown.svg", alt="Much worse")
.input
label(for="description") Journal entry for today
textarea(name="description", id="description", placeholder="max 4096 chars", maxlength="4096", cols="60", rows="12")
.input
span Visibility
div#visibility-control
input(type="radio", name="visibility", id="visibility-public", value="1", checked)
label(for="visibility-public") Public
br
input(type="radio", name="visibility", id="visibility-private", value="0")
label(for="visibility-private") Private
br
input(type="radio", name="visibility", id="visibility-moodChange-only", value="2")
label(for="visibility-moodChange-only") Mood only
button(type="submit") Submit