|
22 | 22 | <input id="full_name" name="full_name" value="{{.SignedUser.FullName}}" maxlength="100">
|
23 | 23 | </div>
|
24 | 24 | <div class="field {{if .Err_Email}}error{{end}}">
|
25 |
| - <label for="email">{{ctx.Locale.Tr "email"}}</label> |
26 |
| - <p>{{.SignedUser.Email}}</p> |
| 25 | + <label>{{ctx.Locale.Tr "email"}}</label> |
| 26 | + <p id="signed-user-email">{{.SignedUser.Email}}</p> |
27 | 27 | </div>
|
28 | 28 | <div class="field {{if .Err_Description}}error{{end}}">
|
29 | 29 | <label for="description">{{ctx.Locale.Tr "user.user_bio"}}</label>
|
|
42 | 42 | <!-- private block -->
|
43 | 43 |
|
44 | 44 | <div class="field" id="privacy-user-settings">
|
45 |
| - <label for="security-private"><strong>{{ctx.Locale.Tr "settings.privacy"}}</strong></label> |
| 45 | + <label><strong>{{ctx.Locale.Tr "settings.privacy"}}</strong></label> |
46 | 46 | </div>
|
47 | 47 |
|
48 | 48 | <div class="inline field {{if .Err_Visibility}}error{{end}}">
|
49 |
| - <span class="inline required field"><label for="visibility">{{ctx.Locale.Tr "settings.visibility"}}</label></span> |
| 49 | + <span class="inline required field"><label>{{ctx.Locale.Tr "settings.visibility"}}</label></span> |
50 | 50 | <div class="ui selection type dropdown">
|
51 | 51 | {{if .SignedUser.Visibility.IsPublic}}<input type="hidden" id="visibility" name="visibility" value="0">{{end}}
|
52 | 52 | {{if .SignedUser.Visibility.IsLimited}}<input type="hidden" id="visibility" name="visibility" value="1">{{end}}
|
|
120 | 120 | </div>
|
121 | 121 |
|
122 | 122 | <div class="inline field gt-pl-4">
|
123 |
| - <label for="avatar">{{ctx.Locale.Tr "settings.choose_new_avatar"}}</label> |
124 |
| - <input name="avatar" type="file" accept="image/png,image/jpeg,image/gif,image/webp"> |
| 123 | + <label for="new-avatar">{{ctx.Locale.Tr "settings.choose_new_avatar"}}</label> |
| 124 | + <input id="new-avatar" name="avatar" type="file" accept="image/png,image/jpeg,image/gif,image/webp"> |
125 | 125 | </div>
|
126 | 126 |
|
127 | 127 | <div class="field">
|
|
0 commit comments