added submit button to comment template

This commit is contained in:
rawleyIfowler
2022-02-24 21:59:58 -06:00
parent 8e389c7a7f
commit 979ef41aec

View File

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