12345678910111213141516171819202122232425 |
- {{ define "newThreadForm" }}
- <form
- action="/b/{{ .board }}"
- method="post"
- enctype="multipart/form-data"
- id="new-thread-form"
- >
- <label for="author-name">Name</label>
- <input type="text" name="authorName" id="author-name" placeholder="Anon" />
- <label for="thread-title">Thread title</label>
- <input type="text" name="threadTitle" id="thread-title" required />
- <label for="comment">Comment</label>
- <textarea name="comment" id="comment" required></textarea>
- <label for="image">File</label>
- <input type="file" name="image" id="image" required />
- {{ template "captcha" . }}
- <input type="submit" value="Create thread" />
- </form>
- {{ end }}
|