zuletzt/src/app/views/upload/index.zmpl
mitteneer a2a739bc9c Refactor upload.zig
I have been unhappy with the branches, but didn't quite know what to do about it. THis feels much nicer. Also fixes datetime stuff with jetquery.  The HTML element parsing isn't quite where I want it to be, but it works for the time being.
2025-05-20 15:07:51 -04:00

27 lines
1 KiB
Text

<html>
<head>
<link rel="stylesheet" href="styles.css">
</head>
<body>
@partial partials/header
<div>
<span>Upload Last.fm or Spotify history file here (in json format).</span>
</div>
<form action="/upload" enctype="multipart/form-data" method="POST">
<label>File</label>
<input type="file" name="upload"/>
<input type="submit" value="Submit"/>
<label>Username</label>
<input type="text" name="username"/>
<fieldset>
<input type="radio" name="t" label="Last.fm" value="0" required>Last.fm</input>
<input type="radio" name="t" label="Spotify" value="1" required>Spotify</input>
<input type="radio" name="t" label="Last.fm (Web Auth)" value="2" required>Last.fm (WebAuth)</input>
<input type="checkbox" name="adv-opt" label="Advanced Options">Advanced Options</input>
Limit to Scrobbles before: <input type="datetime-local" name="latest-date" label="date-before"></input>
Limit to Scrobbles after: <input type="datetime-local" name="earliest-date" label="date-after"></input>
</fieldset>
</form>
</body>
</html>