move ffmpeg command to seperate table

This commit is contained in:
Samuel Lorch 2024-06-23 22:47:50 +02:00
parent 72dfd2408f
commit cdeb266e38
20 changed files with 245 additions and 84 deletions

32
tmpl/ffmpeg_commands.tmpl Normal file
View file

@ -0,0 +1,32 @@
{{template "head"}}
<h2>New FFmpeg Command</h2>
<form method="POST">
<label>Name:</label>
<input type="text" name="name">
<label>Data:</label>
<input type="text" name="data">
<input type="submit" value="Submit">
</form>
<h2>FFmpeg Commands:</h2>
<table>
<tr>
<th>ID</th>
<th>Name</th>
<th>Data</th>
</tr>
{{range $t := .FfmpegCommands}}
<tr onclick="window.location='/ffmpeg_commands/{{ $t.ID }}';">
<td>
{{ $t.ID }}
</td>
<td>
{{ $t.Name }}
</td>
<td>
{{ $t.Data }}
</td>
</tr>
{{end}}
</table>
{{template "tail"}}