Files
us-api/views/junk-drawer/upload.hbs

59 lines
1.6 KiB
Handlebars

<html>
<head>
<meta charset='utf-8' />
<title>Chip's Attic</title>
<script src='https://cdn.tailwindcss.com'></script>
<meta name='viewport' content='width=device-width, initial-scale=1' />
</head>
<body>
<form
method='post'
action='/attic/upload'
enctype='multipart/form-data'
>
<div>
<label for='files'>Choose files to upload</label>
<input type='file' id='files' name='files' multiple />
</div>
<div>
<label
class='cursor-help'
title='Append a random-ish string to the ID to make it harder to find via enumeration'
for='private-ish'
>Private-ish</label>
<input type='checkbox' id='private-ish' name='private-ish' />
</div>
<div>
<label for='remember'>Remember for my IP</label>
<input type='checkbox' id='remember' name='remember' />
</div>
<div class='flex flex-col max-w-96'>
<label for='description'>Description:</label>
<textarea
type='text'
id='description'
name='description'
rows='4'
autofocus
class='border-2 rounded-md border-slate-800 border-solid p-1'
></textarea>
</div>
<div>
<button class='border-2 rounded-md border-slate-800 p-1'>Submit</button>
</div>
</form>
<div>
<h2>Your Items ({{ip}})</h2>
<div>
{{#each items}}
<div>
<a class="text-blue-500 underline" href='/junk-drawer/{{.}}'>{{.}}</a>
</div>
{{/each}}
</div>
</div>
</body>
</html>