Compare commits

...

2 Commits

Author SHA1 Message Date
Teajey fb658e16fa
fix: allow scroll refresh 2024-05-24 16:54:36 +12:00
Teajey 808d12c9ce
feat: more help text 2024-05-24 16:36:04 +12:00
4 changed files with 16 additions and 20 deletions

View File

@ -11,13 +11,6 @@
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
<style>
html,
body {
overflow-y: hidden;
}
</style>
<script>
function getSubmissionNames(form) {
return Array.from(new FormData(form).keys());
@ -55,4 +48,4 @@
</div>
</body>
</html>
</html>

View File

@ -26,8 +26,8 @@
{{end}}
{{define "body"}}
<div class="overflow-y-scroll">
<div class="container pt-5">
<div class="overflow-y-scroll flex-grow-1">
<div class="container py-5">
<section class="card">
<div class="card-body">
<h2>{{.Username}}'s list</h2>
@ -84,14 +84,15 @@
{{end}}
<form method="post">
<div class="input-group mt-3">
<input class="form-control" name="gift_name"
placeholder="This will be invisible to {{.Username}}, but everyone else will be able to see it and possibly claim it."
required>
<input class="form-control" name="gift_name" required aria-describedby="gift_name_help">
<button class="btn btn-primary" type="submit" name="intent" value="add">Add gift idea</button>
</div>
<div id="gift_name_help" class="form-text">This will be invisible to {{.Username}}, but everyone else will be
able to see it and
possibly claim it.</div>
</form>
</div>
</section>
</div>
</div>
{{end}}
{{end}}

View File

@ -22,8 +22,8 @@
{{end}}
{{define "body"}}
<div class="overflow-y-scroll">
<div class="container pt-5">
<div class="overflow-y-scroll flex-grow-1">
<div class="container py-5">
<section class="card mb-4">
<div class="card-body">
<h2>Your wishlist</h2>
@ -54,10 +54,10 @@
</div>
</section>
{{with .Todo}}
<section class="card">
<div class="card-body">
<h2>Your todo list</h2>
{{with .Todo}}
<form method="post"
onchange="acceptNames(this, 'unclaimSubmit', 'gift'); acceptNames(this, 'completeSubmit', 'gift')"
autocomplete="off">
@ -86,9 +86,11 @@
<button id="completeSubmit" class="btn btn-success" type="submit" name="mode" value="complete_todo"
disabled>Complete</button>
</form>
{{else}}
<p class="mb-0">When you claim gifts for others, they will appear here.</p>
{{end}}
</div>
</section>
{{end}}
</div>
</div>
{{end}}
{{end}}

View File

@ -25,4 +25,4 @@
</div>
</form>
</div>
{{end}}
{{end}}