diff options
Diffstat (limited to 'templates/postform.tmpl')
-rw-r--r-- | templates/postform.tmpl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/postform.tmpl b/templates/postform.tmpl index b38cb9d..b81126c 100644 --- a/templates/postform.tmpl +++ b/templates/postform.tmpl @@ -1,6 +1,7 @@ {{with .Data}} <form class="post-form" action="/post" method="POST" enctype="multipart/form-data" target="_self"> <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}"> + <input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}"> {{if .ReplyContext}} <input type="hidden" name="reply_to_id" value="{{.ReplyContext.InReplyToID}}" /> <label for="post-content" class="post-form-title"> Reply to {{.ReplyContext.InReplyToName}} </label> @@ -43,6 +44,7 @@ </span> </div> <button type="submit" accesskey="P" title="Post (P)"> Post </button> + <button type="reset" title="Reset"> Reset </button> </form> {{end}} |