tesses-cms/Tesses.CMS/Assets/Tracklist.html

17 lines
1001 B
HTML

<form action="./edit_tracklist?csrf={{csrf}}" method="post">
<input class="form-control form-control-sm" type="text" placeholder="Track Name" aria-label="Track Name" value="" name="track_name">
<input class="btn btn-primary" type="submit" name="operation" value="Add">
</form>
{{for track in tracks}}
<hr>
<form action="./edit_tracklist?csrf={{csrf}}" enctype="multipart/form-data" method="post">
<input type="hidden" name="track_id" value="{{track.index}}">
<input class="form-control form-control-sm" name="track_name" type="text" placeholder="Track Name" aria-label="Track Name" value="{{track.name}}">
<input type="file" class="form-control form-control-sm" name="file">
<input class="btn btn-primary" type="submit" name="operation" value="Rename">
<input class="btn btn-primary" type="submit" name="operation" value="Upload">
<input class="btn btn-danger" type="submit" name="operation" value="Delete">
</form>
{{end}}