newThreadForm.tmpl.html 663 B

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