feat: more help text

This commit is contained in:
Teajey 2024-05-24 16:36:04 +12:00
parent 37c3f1f20d
commit 808d12c9ce
Signed by: Teajey
GPG Key ID: 970E790FE834A713
2 changed files with 10 additions and 7 deletions

View File

@ -84,11 +84,12 @@
{{end}} {{end}}
<form method="post"> <form method="post">
<div class="input-group mt-3"> <div class="input-group mt-3">
<input class="form-control" name="gift_name" <input class="form-control" name="gift_name" required aria-describedby="gift_name_help">
placeholder="This will be invisible to {{.Username}}, but everyone else will be able to see it and possibly claim it."
required>
<button class="btn btn-primary" type="submit" name="intent" value="add">Add gift idea</button> <button class="btn btn-primary" type="submit" name="intent" value="add">Add gift idea</button>
</div> </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> </form>
</div> </div>
</section> </section>

View File

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