}
</script>
- <h1>A specific playlist</h1>
- <h2>
+ <h1>
{{if .Playlist.Id}}
Edit Playlist
{{else}}
Create New Playlist
{{end}}
- </h2>
+ </h1>
<form action="/playlists/submit" method="POST">
<input type="hidden" name="playlistId" value="{{.Playlist.Id}}">
<p>
{{range .Entries}}
<p>
Wait until
- <input type="text" name="delaySeconds" value="{{.DelaySeconds}}">
- seconds from
+ <input type="text" name="delaySeconds" value="{{.DelaySeconds}}" class="seconds">
+ seconds
<select name="isRelative">
- <option value="1">previous item</option>
- <option value="0" {{if not .IsRelative}} selected="selected" {{end}}>start of transmission</option>
+ <option value="1">from previous</option>
+ <option value="0" {{if not .IsRelative}} selected="selected" {{end}}>from start</option>
</select>
then play
<select name="filename">{{$f := .Filename}}
<option value="{{.}}" {{if eq . $f }} selected="selected" {{end}}>{{.}}</option>
{{end}}
</select>
- <a href="#" onclick="deleteItem(this)">(Delete Item)</a>
+ <a href="#" onclick="deleteItem(this)">(Delete)</a>
</p>
{{end}}
<p>
{{end}}
<template id="item-template">
Wait until
- <input type="text" name="delaySeconds" value="0">
- seconds from
+ <input type="text" name="delaySeconds" value="0" class="seconds">
+ seconds
<select name="isRelative">
- <option value="1">previous item</option>
- <option value="0">start of transmission</option>
+ <option value="1">from previous</option>
+ <option value="0">from start</option>
</select>
then play
<select name="filename">
<option value="{{.}}">{{.}}</option>
{{end}}
</select>
- <a href="#" onclick="deleteItem(this)">(Delete Item)</a>
+ <a href="#" onclick="deleteItem(this)">(Delete)</a>
</template>