33 lines
1.3 KiB
HTML
33 lines
1.3 KiB
HTML
{{define "profile_edit"}}
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>{{.Title}}</title>
|
|
<link rel="stylesheet" href="{{.StaticPath}}/style.css">
|
|
<script src="{{.StaticPath}}/app.js" defer></script>
|
|
</head>
|
|
<body>
|
|
{{template "navbar" .}}
|
|
<main>
|
|
<header>
|
|
<h2>Edit Profile</h2>
|
|
</header>
|
|
<section>
|
|
<form method="post" action="{{.BasePath}}/profile/edit/" enctype="multipart/form-data">
|
|
<input type="hidden" name="csrf_token" value="{{.CSRFToken}}">
|
|
<label for="display_name">Display Name:</label>
|
|
<input type="text" id="display_name" name="display_name" value="{{.User.DisplayName}}" maxlength="255"><br>
|
|
<label for="pfp">Profile Picture:</label>
|
|
<input type="file" id="pfp" name="pfp" accept="image/png,image/jpeg,image/gif"><br>
|
|
<p style="margin-top: 0.25em; font-size: 0.9em; opacity: 0.8;">PNG, JPEG, or GIF only, up to 2 MB. Images are re-encoded before storage.</p>
|
|
<label for="bio">Bio:</label>
|
|
<textarea id="bio" name="bio" maxlength="500">{{.User.Bio}}</textarea><br>
|
|
<input type="submit" value="Save">
|
|
</form>
|
|
</section>
|
|
</main>
|
|
{{template "cookie_banner" .}}
|
|
</body>
|
|
</html>
|
|
{{end}}
|