move ffmpeg command to seperate table
This commit is contained in:
parent
72dfd2408f
commit
cdeb266e38
20 changed files with 245 additions and 84 deletions
32
tmpl/ffmpeg_commands.tmpl
Normal file
32
tmpl/ffmpeg_commands.tmpl
Normal 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"}}
|
Loading…
Add table
Add a link
Reference in a new issue