all repos — flounder @ 16155bf510067f53cb4387236c6c96c1f6429029

A small site builder for the Gemini protocol

templates/me.html (view raw)

 1{{template "header" .}}
 2<h1>My Account</h1>
 3{{template "nav.html" .}}
 4<form action="/me" method="post">
 5  <div>
 6    <label for="username">Username</label><br>
 7    <em>Note: renaming your account will cause links to your pages to break</em>
 8    <input
 9      id="username"
10      name="username"
11      size="32"
12      type="text"
13      value="{{.AuthUser.Username}}"
14    />
15  </div>
16  <div>
17    <label for="email">Email</label>
18    <input id="email" name="email" size="64" type="text" value="{{.Email}}" />
19  </div>
20  <div class="error">{{ range .Errors}}{{.}}<br>{{end}} </div>
21  <div>
22    <input
23      class="button"
24      id="submit"
25      name="submit"
26      type="submit"
27      value="Save"
28    />
29  </div>
30</form>
31<br>
32<a href="/reset-password">Reset password</a>
33<p><a href="/my_site/flounder-archive.zip">🗄️ Download my site archive (.zip)</a></p>
34<details>
35  <summary>Delete Account</summary>
36  <form action="/delete-account" method="POST">
37<label for="validate-delete">Type in your username to delete your account:</label>
38<input id="validate-delete" name="validate-delete" size="32" type="text" value="" />
39<input
40  class="button delete"
41  type="submit"
42  value="Delete account"
43  onclick="return confirm('Are you SURE you want to delete your account and all your files?');"
44/>
45</details>
46{{template "footer" .}}
47</form>