added submit button to comment template
This commit is contained in:
@@ -16,10 +16,11 @@
|
||||
<p>No comments...</p>
|
||||
{{ end }}
|
||||
<h4>Leave a comment!</h4>
|
||||
<form method="POST" action="">
|
||||
<form method="POST" action="/post/comment">
|
||||
<input type="text" placeholder="Name" name="author"/>
|
||||
<input type="field" placeholder="Comment" name="content" />
|
||||
<input type="text" style="display: none;" value="{{ .Url }}" readonly />
|
||||
<button type="submit">Post</button>
|
||||
</form>
|
||||
</div>
|
||||
{{ template "footer.tmpl" . }}
|
||||
|
||||
Reference in New Issue
Block a user