From 81bdc7c705d5d21f62927167d5b2c8e4932c9570 Mon Sep 17 00:00:00 2001 From: r Date: Sun, 1 Oct 2023 13:04:07 +0000 Subject: Add profile edit page --- templates/nav.tmpl | 3 +++ templates/profile.tmpl | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 templates/profile.tmpl (limited to 'templates') diff --git a/templates/nav.tmpl b/templates/nav.tmpl index 4413823..bdb72be 100644 --- a/templates/nav.tmpl +++ b/templates/nav.tmpl @@ -12,6 +12,9 @@ @{{.User.Acct}} + + edit +
home diff --git a/templates/profile.tmpl b/templates/profile.tmpl new file mode 100644 index 0000000..4bf1937 --- /dev/null +++ b/templates/profile.tmpl @@ -0,0 +1,58 @@ +{{with .Data}} +{{template "header.tmpl" (WithContext .CommonData $.Ctx)}} +
Edit Profile
+ +
+ + +
+
+ - + +
+
+ + profile-avatar + +
+
+
+
+
+ - + +
+
+ + profile-banner + +
+ +
+
+
+
+
+
+
+ +
+
+
+ {{range $i, $f := .User.Source.Fields}} +
+ + +
+ {{end}} +
+
+ + +
+ + +
+ +{{template "footer.tmpl"}} +{{end}} -- cgit v1.2.3