hatecomputers.club/templates/profile.html

25 lines
725 B
HTML
Raw Permalink Normal View History

{{ define "content" }}
<h1>hey {{ .Profile.DisplayName }}</h1>
<br>
<form action="/profile" method="POST" class="form" enctype="multipart/form-data">
<label for="file" class="file-upload">avatar.</label>
<input type="file" name="avatar">
<label for="location">location.</label>
<input type="text" name="location" value="{{ .Profile.Location }}">
<label for="website">website.</label>
<input type="text" name="website" value="{{ .Profile.Website }}">
<label for="pronouns">pronouns.</label>
<input type="text" name="pronouns" value="{{ .Profile.Pronouns }}">
<label for="bio">bio.</label>
<textarea name="bio">{{ .Profile.Bio }}</textarea>
<input type="submit" value="update">
</form>
{{ end }}