Compare commits
No commits in common. "fb658e16fae2dd1fc819bcc2e0fb17b3932c5f0e" and "37c3f1f20dc4170398eba7e5cafd050c4aa29c99" have entirely different histories.
fb658e16fa
...
37c3f1f20d
|
|
@ -11,6 +11,13 @@
|
||||||
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
|
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
|
||||||
crossorigin="anonymous"></script>
|
crossorigin="anonymous"></script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
html,
|
||||||
|
body {
|
||||||
|
overflow-y: hidden;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function getSubmissionNames(form) {
|
function getSubmissionNames(form) {
|
||||||
return Array.from(new FormData(form).keys());
|
return Array.from(new FormData(form).keys());
|
||||||
|
|
@ -48,4 +55,4 @@
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -26,8 +26,8 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{define "body"}}
|
{{define "body"}}
|
||||||
<div class="overflow-y-scroll flex-grow-1">
|
<div class="overflow-y-scroll">
|
||||||
<div class="container py-5">
|
<div class="container pt-5">
|
||||||
<section class="card">
|
<section class="card">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h2>{{.Username}}'s list</h2>
|
<h2>{{.Username}}'s list</h2>
|
||||||
|
|
@ -84,15 +84,14 @@
|
||||||
{{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" required aria-describedby="gift_name_help">
|
<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>
|
||||||
<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>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,8 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{define "body"}}
|
{{define "body"}}
|
||||||
<div class="overflow-y-scroll flex-grow-1">
|
<div class="overflow-y-scroll">
|
||||||
<div class="container py-5">
|
<div class="container pt-5">
|
||||||
<section class="card mb-4">
|
<section class="card mb-4">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h2>Your wishlist</h2>
|
<h2>Your wishlist</h2>
|
||||||
|
|
@ -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,11 +86,9 @@
|
||||||
<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}}
|
||||||
|
|
@ -25,4 +25,4 @@
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
Loading…
Reference in New Issue