41
templates/admin.html
Normal file
41
templates/admin.html
Normal file
@@ -0,0 +1,41 @@
|
||||
{{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}}
|
Reference in New Issue
Block a user