aboutsummaryrefslogtreecommitdiff
path: root/templates/entry.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/entry.tmpl')
-rw-r--r--templates/entry.tmpl26
1 files changed, 14 insertions, 12 deletions
diff --git a/templates/entry.tmpl b/templates/entry.tmpl
index 642b501..9f1181f 100644
--- a/templates/entry.tmpl
+++ b/templates/entry.tmpl
@@ -1,24 +1,26 @@
{{ define "entry" }}
{{ template "_head" }}
+<div class="container">
{{ 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="OutputFolder" name="OutputFolder" value="{{ .OutputFolder }}" placeholder="Select a ralative folder" required>
- </label>
+ <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="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>
+ </div>
{{ template "_footer" }}
{{ end }}