mirror of
https://github.com/taigrr/shorturl
synced 2025-01-18 04:03:16 -08:00
Handle edit URL
This commit is contained in:
19
templates/edit.html
Normal file
19
templates/edit.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{{define "content"}}
|
||||
<section class="container">
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<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" 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}}">
|
||||
<i class="icon icon-forward">View</i>
|
||||
</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user