flounder

A simple gemini site builder
Log | Files | Refs | README | LICENSE

commit 4e70232a94d9c007adea317afd85d2f115160912
parent ea2c1241eaa89aa42c07a47059955eed7a9bcbbe
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sat,  5 Dec 2020 20:43:23 -0800

add missing files

Diffstat:
Atemplates/me.html | 41+++++++++++++++++++++++++++++++++++++++++
Atemplates/reset_pass.html | 30++++++++++++++++++++++++++++++
2 files changed, 71 insertions(+), 0 deletions(-)

diff --git a/templates/me.html b/templates/me.html @@ -0,0 +1,41 @@ +{{template "header" .}} +<h1>My Account</h1> +{{template "nav.html" .}} +<form action="/me" method="post"> + <div> + <label for="username">Username</label><br> + <input + id="username" + name="username" + size="32" + type="text" + value="{{.AuthUser}}" + /> + </div> + <div> + <label for="email">Email</label> + <input id="email" name="email" size="64" type="text" value="{{.Email}}" /> + </div> + <div class="error">{{ range .Errors}}{{.}}<br>{{end}} </div> + <div> + <input + class="button" + id="submit" + name="submit" + type="submit" + value="Save" + /> + </div> +</form> +<a href="/reset_password">Reset password</a> +<p><a href="/my_site/flounder-archive.zip">🗄️ Download my site archive (.zip)</a></p> +<form action="/delete-account" method="POST" class="inline"> +<input + class="button delete" + type="submit" + onclick="return confirm('Are you SURE you want to delete your account and all your files?');" + value="Delete account" +/> + +{{template "footer" .}} +</form> diff --git a/templates/reset_pass.html b/templates/reset_pass.html @@ -0,0 +1,30 @@ +{{template "header" .}} +<h1>Reset Password</h1> +<form action="/reset_password" method="post"> + <div> + <label for="username">Username</label><br> + <input + id="username" + name="username" + size="32" + type="text" + value="{{.AuthUser}}" + /> + </div> + <div> + <label for="email">Email</label> + <input id="email" name="email" size="64" type="text" value="{{.Email}}" /> + </div> + <div class="error">{{ range .Errors}}{{.}}<br>{{end}} </div> + <div> + <input + class="button" + id="submit" + name="submit" + type="submit" + value="Save" + /> + </div> +</form> +<a href="/reset_password">Reset password</a> +{{template "footer" .}}