aboutsummaryrefslogtreecommitdiff
path: root/src/templates/profile.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates/profile.html')
-rw-r--r--src/templates/profile.html24
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 }}