2023-09-07 11:45:16 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
2023-09-15 13:06:31 +01:00
|
|
|
<title>{{.ServiceName}}</title>
|
2023-09-07 11:45:16 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header>
|
2023-09-15 13:06:31 +01:00
|
|
|
<h1>{{.ServiceName}}</h1>
|
2023-09-07 11:45:16 +01:00
|
|
|
</header>
|
|
|
|
<main>
|
|
|
|
<div>Logged in as: {{.User.Name}} ({{.User.Sub}})</div>
|
|
|
|
<div>
|
|
|
|
<form method="POST" action="/edit">
|
|
|
|
<input type="hidden" name="nonce" value="{{.Nonce}}">
|
|
|
|
<div>
|
2023-09-09 01:38:10 +01:00
|
|
|
<label for="field_name">Name:</label>
|
2023-09-07 11:45:16 +01:00
|
|
|
<input type="text" name="name" id="field_name" value="{{.User.Name}}">
|
|
|
|
</div>
|
|
|
|
<div>
|
2023-09-09 01:38:10 +01:00
|
|
|
<label for="field_picture">Picture:</label>
|
2023-09-07 11:45:16 +01:00
|
|
|
<input type="text" name="picture" id="field_picture" value="{{.User.Picture}}">
|
|
|
|
</div>
|
|
|
|
<div>
|
2023-09-09 01:38:10 +01:00
|
|
|
<label for="field_website">Website:</label>
|
2023-09-08 00:30:03 +01:00
|
|
|
<input type="text" name="website" id="field_website" value="{{.User.Website}}">
|
2023-09-07 11:45:16 +01:00
|
|
|
</div>
|
|
|
|
<div>
|
2023-09-09 01:38:10 +01:00
|
|
|
<label for="field_pronouns">Pronouns:</label>
|
2023-09-07 11:45:16 +01:00
|
|
|
<select name="pronouns" id="field_pronouns">
|
2023-09-08 00:30:03 +01:00
|
|
|
<option value="they/them" {{if eq "they/them" .FieldPronoun}}selected{{end}}>They/Them</option>
|
|
|
|
<option value="he/him" {{if eq "he/him" .FieldPronoun}}selected{{end}}>He/Him</option>
|
|
|
|
<option value="she/her" {{if eq "she/her" .FieldPronoun}}selected{{end}}>She/Her</option>
|
|
|
|
<option value="it/its" {{if eq "it/its" .FieldPronoun}}selected{{end}}>It/Its</option>
|
|
|
|
<option value="one/one's" {{if eq "one/one's" .FieldPronoun}}selected{{end}}>One/One's</option>
|
2023-09-07 11:45:16 +01:00
|
|
|
</select>
|
|
|
|
<label>Reset? <input type="checkbox" name="reset_pronouns"></label>
|
|
|
|
</div>
|
|
|
|
<div>
|
2023-09-09 01:38:10 +01:00
|
|
|
<label for="field_birthdate">Birthdate:</label>
|
2023-09-07 16:34:51 +01:00
|
|
|
<input type="date" name="birthdate" id="field_birthdate" value="{{.User.Birthdate}}">
|
2023-09-07 11:45:16 +01:00
|
|
|
<label>Reset? <input type="checkbox" name="reset_birthdate"></label>
|
|
|
|
</div>
|
|
|
|
<div>
|
2023-09-09 01:38:10 +01:00
|
|
|
<label for="field_zoneinfo">Time Zone:</label>
|
2023-09-07 11:45:16 +01:00
|
|
|
<input type="text" name="zoneinfo" id="field_zoneinfo" value="{{.User.ZoneInfo}}" list="list_zoneinfo">
|
|
|
|
<datalist id="list_zoneinfo">
|
2023-09-07 16:34:51 +01:00
|
|
|
{{range .ListZoneInfo}}
|
|
|
|
<option value="{{.}}"></option>
|
|
|
|
{{end}}
|
2023-09-07 11:45:16 +01:00
|
|
|
</datalist>
|
|
|
|
<label>Reset? <input type="checkbox" name="reset_zoneinfo"></label>
|
|
|
|
</div>
|
|
|
|
<div>
|
2023-09-09 01:38:10 +01:00
|
|
|
<label for="field_locale">Language:</label>
|
2023-09-07 11:45:16 +01:00
|
|
|
<input type="text" name="locale" id="field_locale" value="{{.User.Locale}}" list="list_locale">
|
|
|
|
<datalist id="list_locale">
|
2023-09-07 16:34:51 +01:00
|
|
|
{{range .ListLocale}}
|
|
|
|
<option value="{{.Value}}">{{.Label}}</option>
|
|
|
|
{{end}}
|
2023-09-07 11:45:16 +01:00
|
|
|
</datalist>
|
2023-09-08 00:30:03 +01:00
|
|
|
<label>Reset? <input type="checkbox" name="reset_locale"></label>
|
2023-09-07 11:45:16 +01:00
|
|
|
</div>
|
|
|
|
<button type="submit">Edit</button>
|
|
|
|
</form>
|
2023-09-15 13:06:31 +01:00
|
|
|
<form method="GET" action="/">
|
|
|
|
<button type="submit">Cancel</button>
|
|
|
|
</form>
|
2023-09-07 11:45:16 +01:00
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
</body>
|
|
|
|
</html>
|