diff options
Diffstat (limited to 'templates/entry.tmpl')
-rw-r--r-- | templates/entry.tmpl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/templates/entry.tmpl b/templates/entry.tmpl new file mode 100644 index 0000000..dc5f2b6 --- /dev/null +++ b/templates/entry.tmpl @@ -0,0 +1,24 @@ +{{ 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 }}"> + <label for="title"> + Title + <input type="text" id="Title" name="Title" value="{{ .Title }}" placeholder="Give a discretive name" required> + </label> + <label for="link"> + Link + <input type="text" id="Link" name="Link" value="{{ .Link }}" placeholder="Paste a valid youtube-dl link" required> + </label> + <label for="output"> + Output folder + <input type="text" id="Output_folder" name="Output_folder" value="{{ .Output_folder }}" placeholder="Select a ralative folder" required> + </label> + <button type="submit">Submit</button> +</form> +{{ template "_footer" }} +{{ end }} |