Move upload.zig to the new table partial

This commit is contained in:
mitteneer 2025-05-15 20:22:34 -04:00
parent 52fefc9ba5
commit f69ffb2b37

View file

@ -1,15 +1,16 @@
@zig {
const ColumnChoices = []const enum{song, album, artist, artistlist, scrobbles, date};
const columns: ColumnChoices = &.{.song, .artistlist, .album, .date};
}
<html>
<head>
<link rel="stylesheet" href="styles.css">
<meta charset="UTF-8">
</head>
<body>
@partial partials/header
<h1>File Uploaded Successfully</h1>
<h2>Scrobbles Added</h2>
@partial partials/table(table_data: .scrobbles, table_headers: .upload_table, table_context: .context)
@partial partials/newtable(T: ColumnChoices, table_data: .scrobbles, columns: columns)
</body>
</html>