all repos — flounder @ f516ef62ea08f7a54e40aabba9931f65d87dde05

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    <input
 8      id="username"
 9      name="username"
10      size="32"
11      type="text"
12      value="{{.AuthUser.Username}}"
13    />
14  </div>
15  <div>
16    <label for="email">Email</label>
17    <input id="email" name="email" size="64" type="text" value="{{.Email}}" />
18  </div>
19  <div class="error">{{ range .Errors}}{{.}}<br>{{end}} </div>
20  <div>
21    <input
22      class="button"
23      id="submit"
24      name="submit"
25      type="submit"
26      value="Save"
27    />
28  </div>
29</form>
30<a href="/reset-password">Reset password</a>
31<p><a href="/my_site/flounder-archive.zip">🗄️ Download my site archive (.zip)</a></p>
32<form action="/delete-account" method="POST" class="inline">
33<input
34  class="button delete"
35  type="submit"
36  onclick="return confirm('Are you SURE you want to delete your account and all your files?');"
37  value="Delete account"
38/>
39
40{{template "footer" .}}
41</form>