videopage/templates/admin.html

42 lines
1.3 KiB
HTML
Raw Normal View History

{{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}}