videopage/templates/admin.html
Mirror 45d48b78ea
init
Signed-off-by: Mirror <voice@magicalmirro.red>
2022-06-16 12:07:46 +03:00

42 lines
1.3 KiB
HTML

{{define "admin.html"}}
<!DOCTYPE html>
<html>
<head>
<title>{{.ApplicationName}} | Admin page</title>
<style>
body {
background-color: black;
color: antiquewhite;
}
</style>
</head>
<body>
<div class="playlist">
<p>Current playlist</p>
<table>
<thead>
<tr>
<td></td>
<td>name</td>
<td>size</td>
<td>preview</td>
</tr>
</thead>
<tbody>
{{range .Videos}}
<tr>
<td><form action="delete" method="post"><input id="fileid" name="fileid" type="hidden" value="{{.ID}}"><input value="Delete" type="submit"></form></td>
<td>{{html .DisplayName}}</td>
<td>{{html .Size}}</td>
</tr>
{{end}}
</tbody>
<form action="upload" method="post" enctype="multipart/form-data">
<p>Add new: <input id="file" type="file" name="file" multiple> <input type="submit" ></p>
</form>
</table>
</div>
</body>
</html>
{{end}}