|
|
@ -14,7 +14,10 @@ |
|
|
|
{{.CsrfTokenHtml}} |
|
|
|
{{.CsrfTokenHtml}} |
|
|
|
<div class="required field {{if .Err_Name}}error{{end}}"> |
|
|
|
<div class="required field {{if .Err_Name}}error{{end}}"> |
|
|
|
<label for="username">{{.i18n.Tr "username"}}<span class="text red hide" id="name-change-prompt"> {{.i18n.Tr "settings.change_username_prompt"}}</span></label> |
|
|
|
<label for="username">{{.i18n.Tr "username"}}<span class="text red hide" id="name-change-prompt"> {{.i18n.Tr "settings.change_username_prompt"}}</span></label> |
|
|
|
<input id="username" name="name" value="{{.SignedUser.Name}}" data-name="{{.SignedUser.Name}}" autofocus required> |
|
|
|
<input id="username" name="name" value="{{.SignedUser.Name}}" data-name="{{.SignedUser.Name}}" autofocus required {{if not .SignedUser.IsLocal}}disabled{{end}}> |
|
|
|
|
|
|
|
{{if not .SignedUser.IsLocal}} |
|
|
|
|
|
|
|
<p class="help text blue">{{$.i18n.Tr "settings.password_username_disabled"}}</p> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="field {{if .Err_FullName}}error{{end}}"> |
|
|
|
<div class="field {{if .Err_FullName}}error{{end}}"> |
|
|
|
<label for="full_name">{{.i18n.Tr "settings.full_name"}}</label> |
|
|
|
<label for="full_name">{{.i18n.Tr "settings.full_name"}}</label> |
|
|
@ -32,10 +35,12 @@ |
|
|
|
<label for="location">{{.i18n.Tr "settings.location"}}</label> |
|
|
|
<label for="location">{{.i18n.Tr "settings.location"}}</label> |
|
|
|
<input id="location" name="location" value="{{.SignedUser.Location}}"> |
|
|
|
<input id="location" name="location" value="{{.SignedUser.Location}}"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="required field {{if or DisableGravatar .SignedUser.UseCustomAvatar}}hide{{end}} {{if .Err_Gravatar}}error{{end}}"> |
|
|
|
{{if not DisableGravatar}} |
|
|
|
|
|
|
|
<div class="field {{if .Err_Gravatar}}error{{end}}"> |
|
|
|
<label for="gravatar">Gravatar {{.i18n.Tr "email"}}</label> |
|
|
|
<label for="gravatar">Gravatar {{.i18n.Tr "email"}}</label> |
|
|
|
<input id="gravatar" name="gravatar" value="{{.SignedUser.AvatarEmail}}" /> |
|
|
|
<input id="gravatar" name="gravatar" value="{{.SignedUser.AvatarEmail}}" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
|
|
|
|
|
|
|
|
<div class="field"> |
|
|
|
<div class="field"> |
|
|
|
<button class="ui green button">{{$.i18n.Tr "settings.update_profile"}}</button> |
|
|
|
<button class="ui green button">{{$.i18n.Tr "settings.update_profile"}}</button> |
|
|
|