diff options
| author | Nicolas Sterchele <nicolas@sterchelen.net> | 2022-08-31 23:08:52 +0200 |
|---|---|---|
| committer | Nicolas Sterchele <nicolas@sterchelen.net> | 2022-08-31 23:19:58 +0200 |
| commit | b9281c89737419216b710a87c31686d21adf86bc (patch) | |
| tree | bc2b2c73b35ead61bee37b75aec1eee2d78c6ef4 /views/addlink.html | |
initial commit
Thanks to Ted Unangst for its work.
Originally available here https://humungus.tedunangst.com/r/inks
Diffstat (limited to 'views/addlink.html')
| -rwxr-xr-x | views/addlink.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/views/addlink.html b/views/addlink.html new file mode 100755 index 0000000..2a0031c --- /dev/null +++ b/views/addlink.html @@ -0,0 +1,18 @@ +{{ template "header.html" . }} +<main> +<form action="/savelink" method="POST" class="link"> +<input type="hidden" name="CSRF" value="{{ .SaveCSRF }}"> +{{ with .Link }} +<input type="hidden" name="linkid" value="{{ .ID }}"> +<p><input tabindex=1 type="text" name="url" value="{{ .URL }}" autocomplete=off> - url +<p><input tabindex=1 type="text" name="title" value="{{ .Title }}" autocomplete=off> - title +<p> +<textarea tabindex=1 name="summary">{{ .PlainSummary }}</textarea> +<p><input tabindex=1 type="text" name="tags" value="{{ range .Tags }}{{.}} {{ end }}" autocomplete=off> - tags +<p><input tabindex=1 type="text" name="source" value="{{ .Source }}" autocomplete=off> - source +{{ end }} +<p><input tabindex=1 type="submit" name="submit" value="submit"> +</form> +</main> +</body> +</html> |
