1
0
mirror of https://github.com/taigrr/shorturl synced 2025-01-18 04:03:16 -08:00

Support edit ID

This commit is contained in:
srxr
2021-03-27 14:34:21 +00:00
parent f65255f6eb
commit 31c239e486
3 changed files with 18 additions and 7 deletions

View File

@@ -5,7 +5,7 @@
<p>Your short url is: <a href="/r/{{.ID}}">{{.ID}}</a></p>
<form class="mt-10" action="/e/{{.ID}}" method="POST">
<div class="form-group input-group">
<input class="form-input" type="hidden" name="id" value="{{.ID}}" />
<input class="form-input column col-1" type="text" name="id" value="{{.ID}}" />
<input class="form-input" type="text" name="url" value="{{.URL}}" placeholder="Enter long url here..." />
<button class="btn btn-primary" type="submit">Edit</button>
<a class="btn btn-action" href="/u/{{.ID}}">
@@ -16,4 +16,4 @@
</div>
</div>
</section>
{{end}}
{{end}}