diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2022-06-06 02:49:05 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2022-06-06 02:49:05 +0200 |
commit | f13a07aa433298de91e1c4aff68f72be6d851be2 (patch) | |
tree | 5ebb10ed5f91b251ccc16c74a631448b5abb6145 /templates/entry.tmpl | |
download | mdir-f13a07aa433298de91e1c4aff68f72be6d851be2.tar.gz mdir-f13a07aa433298de91e1c4aff68f72be6d851be2.tar.bz2 mdir-f13a07aa433298de91e1c4aff68f72be6d851be2.zip |
Initial commit
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 }} |