diff options
Diffstat (limited to 'templates/profile.html')
| -rw-r--r-- | templates/profile.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/templates/profile.html b/templates/profile.html new file mode 100644 index 0000000..a6e1b68 --- /dev/null +++ b/templates/profile.html @@ -0,0 +1,24 @@ +{{ 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 }} |
