From 466badd326e57efdcd076a9dff119a4d1fedd441 Mon Sep 17 00:00:00 2001 From: chelsea Date: Sat, 11 Oct 2025 23:58:01 -0500 Subject: [PATCH] Fix avatar upload requiring username/email (Issue #12) - Remove unnecessary wrapper form around Profile Picture section - Avatar upload form is now standalone, not nested - Prevents browser validation from requiring username/email when uploading avatar Fixes #12 --- templates/settings_profile.html | 44 ++++++++++++++++----------------- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/templates/settings_profile.html b/templates/settings_profile.html index 65286ec..df3a700 100644 --- a/templates/settings_profile.html +++ b/templates/settings_profile.html @@ -243,31 +243,29 @@ {% endwith %} -
-
-

Profile Picture

-
-
- {% if user.profile_picture_url %} - {{ user.username }} - {% else %} - {{ user.username[0]|upper }} - {% endif %} -
-
-

Current Avatar

-

Upload a new profile picture to personalize your account

- -
- - -
-

PNG, JPG, or GIF. Maximum size 2MB.

- -
+
+

Profile Picture

+
+
+ {% if user.profile_picture_url %} + {{ user.username }} + {% else %} + {{ user.username[0]|upper }} + {% endif %} +
+
+

Current Avatar

+

Upload a new profile picture to personalize your account

+
+
+ + +
+

PNG, JPG, or GIF. Maximum size 2MB.

+
- +