diff options
author | Vikas Kushwaha <dev@vikas.rocks> | 2024-11-21 13:54:38 +0530 |
---|---|---|
committer | Vikas Kushwaha <dev@vikas.rocks> | 2024-11-21 13:54:38 +0530 |
commit | 6a16bbdcdb40406592e47ee8d489f857837e5c96 (patch) | |
tree | 8d1a9f72115a106657e059f56e5b47df1a92f483 /src/templates/profile.html |
Initial commit
Diffstat (limited to 'src/templates/profile.html')
-rw-r--r-- | src/templates/profile.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/templates/profile.html b/src/templates/profile.html new file mode 100644 index 0000000..6e6fccd --- /dev/null +++ b/src/templates/profile.html @@ -0,0 +1,24 @@ +{{ define "main" }} + <header> + <a href="/"><h1>Cloud Maker</h1></a> + <a href="/"><img src="/static/icons/bs/house-door.svg"></a> + </header> + + <form id="profile" name="profile" method="POST"> + <h2>Profile</h2> + + <label for="username">Username</label> + <input id="username" name="username" value="{{.Username}}" required> + + <label for="password">New Password</label> + <input type="password" id="password" name="password"> + + <label for="confirm-pass">Confirm Password</label> + <input type="password" id="confirm-pass" name="confirm-pass"> + + <button>Update</button> + {{ if .Message }} + <p class="{{.Status}}">{{ .Message }}</p> + {{ end }} + </form> +{{ end }} |