diff options
author | Yarden Shoham <git@yardenshoham.com> | 2024-02-17 17:01:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-17 15:01:25 +0000 |
commit | 1d275c1748a75a01c270f5c306c5248808016aba (patch) | |
tree | 42695d0c481d8a50765e10d3dce0f872e17e0471 /templates | |
parent | 0157db84b13203877c098a258abeb387d59f3486 (diff) | |
download | gitea-1d275c1748a75a01c270f5c306c5248808016aba.tar.gz gitea-1d275c1748a75a01c270f5c306c5248808016aba.zip |
Fix labels referencing the wrong ID in the user profile settings (#29199)
2 instances of `for` with a wrong value and 1 `for` that had a reference
to a `name` instead of `id`.
---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/user/settings/profile.tmpl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/user/settings/profile.tmpl b/templates/user/settings/profile.tmpl index 1f32aed0e8..d1c68656b6 100644 --- a/templates/user/settings/profile.tmpl +++ b/templates/user/settings/profile.tmpl @@ -22,8 +22,8 @@ <input id="full_name" name="full_name" value="{{.SignedUser.FullName}}" maxlength="100"> </div> <div class="field {{if .Err_Email}}error{{end}}"> - <label for="email">{{ctx.Locale.Tr "email"}}</label> - <p>{{.SignedUser.Email}}</p> + <label>{{ctx.Locale.Tr "email"}}</label> + <p id="signed-user-email">{{.SignedUser.Email}}</p> </div> <div class="field {{if .Err_Description}}error{{end}}"> <label for="description">{{ctx.Locale.Tr "user.user_bio"}}</label> @@ -42,11 +42,11 @@ <!-- private block --> <div class="field" id="privacy-user-settings"> - <label for="security-private"><strong>{{ctx.Locale.Tr "settings.privacy"}}</strong></label> + <label><strong>{{ctx.Locale.Tr "settings.privacy"}}</strong></label> </div> <div class="inline field {{if .Err_Visibility}}error{{end}}"> - <span class="inline required field"><label for="visibility">{{ctx.Locale.Tr "settings.visibility"}}</label></span> + <span class="inline required field"><label>{{ctx.Locale.Tr "settings.visibility"}}</label></span> <div class="ui selection type dropdown"> {{if .SignedUser.Visibility.IsPublic}}<input type="hidden" id="visibility" name="visibility" value="0">{{end}} {{if .SignedUser.Visibility.IsLimited}}<input type="hidden" id="visibility" name="visibility" value="1">{{end}} @@ -120,8 +120,8 @@ </div> <div class="inline field gt-pl-4"> - <label for="avatar">{{ctx.Locale.Tr "settings.choose_new_avatar"}}</label> - <input name="avatar" type="file" accept="image/png,image/jpeg,image/gif,image/webp"> + <label for="new-avatar">{{ctx.Locale.Tr "settings.choose_new_avatar"}}</label> + <input id="new-avatar" name="avatar" type="file" accept="image/png,image/jpeg,image/gif,image/webp"> </div> <div class="field"> |