newPostForm.tmpl.html 545 B

12345678910111213141516171819202122
  1. {{ define "newPostForm" }}
  2. <form
  3. action="/b/{{ .board }}/{{ idToString .thread.ID }}"
  4. method="post"
  5. enctype="multipart/form-data"
  6. id="replyForm"
  7. >
  8. <label for="author-name">Name</label>
  9. <input type="text" name="authorName" id="author-name" placeholder="Anon" />
  10. <label for="comment">Comment</label>
  11. <textarea name="comment" id="comment" required></textarea>
  12. <label for="image">File</label>
  13. <input type="file" name="image" id="image" />
  14. {{ template "captcha" . }}
  15. <input type="submit" value="Post" />
  16. </form>
  17. {{ end }}