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