midr @ db7e822dda56d32135eca6d3e3211a50cf93d31a

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