1{{ define "entry" }}
2{{ template "_head" }}
3{{ if (eq .ID 0) }}
4<form action="/entries" method="POST">
5{{ else }}
6<form action="/entries/{{ .ID }}" method="POST">
7{{ end }}
8 <input type="hidden" id="ID" name="ID" value="{{ .ID }}">
9 <label for="title">
10 Title
11 <input type="text" id="Title" name="Title" value="{{ .Title }}" placeholder="Give a discretive name" required>
12 </label>
13 <label for="link">
14 Link
15 <input type="text" id="Link" name="Link" value="{{ .Link }}" placeholder="Paste a valid youtube-dl link" required>
16 </label>
17 <label for="output">
18 Output folder
19 <input type="text" id="OutputFolder" name="OutputFolder" value="{{ .OutputFolder }}" placeholder="Select a ralative folder" required>
20 </label>
21 <button type="submit">Submit</button>
22</form>
23{{ template "_footer" }}
24{{ end }}