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 <div class="field">
10 <label for="title">Title</label>
11 <input class="input" type="text" id="Title" name="Title" value="{{ .Title }}" placeholder="Give a discretive name" required>
12 </div>
13 <div class="field">
14 <label for="link">Link</label>
15 <input class="input" type="text" id="Link" name="Link" value="{{ .Link }}" placeholder="Paste a valid youtube-dl link" required>
16 </div>
17 <div class="field">
18 <label for="DateAfter">Date after</label>
19 <input class="input" type="text" id="DateAfter" name="DateAfter" value="{{ .DateAfter }}" placeholder="Select the start date" required>
20 </div>
21 <div class="field">
22 <label for="output">Output folder</label>
23 <input class="input" type="text" id="OutputFolder" name="OutputFolder" value="{{ .OutputFolder }}" placeholder="Select a ralative folder" required>
24 </div>
25 <button type="submit">Submit</button>
26</form>
27{{ template "_footer" }}
28{{ end }}