go-examples/photoblog/templates/upload.html

18 lines
555 B
HTML
Raw Normal View History

2017-07-29 14:51:12 +00:00
{{ template "header.html" . }}
2017-07-29 11:54:23 +00:00
<h1>Send photo</h1>
2017-07-29 14:51:12 +00:00
<div class="form-container">
<form action="/upload" method="POST" enctype="multipart/form-data">
2017-07-30 09:05:20 +00:00
<input type="hidden" name="gorilla.csrf.Token" value="{{ .CsrfToken }}">
2017-07-29 14:51:12 +00:00
{{ if .Message }}<p class="message">{{ .Message }}</p>{{ end }}
{{ if .Err }}<p class="error">{{ .Err }}</p>{{ end }}
<label>
Select photo:
<input type="file" name="file">
</label>
<br>
<input type="submit" value="Send">
<a href="/">Back</a>
</form>
</div>
2017-07-29 11:54:23 +00:00
{{ template "footer.html" }}