Add placeholder text for bio profile text form (#12792)

* Add placeholder text
  * Localize
This commit is contained in:
Bagas Sanjaya 2020-09-10 21:29:26 +07:00 committed by GitHub
parent 7354efe702
commit 4c42fce401
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -426,6 +426,7 @@ uid = Uid
u2f = Security Keys u2f = Security Keys
public_profile = Public Profile public_profile = Public Profile
biography_placeholder = Tell us a little bit about yourself
profile_desc = Your email address will be used for notifications and other operations. profile_desc = Your email address will be used for notifications and other operations.
password_username_disabled = Non-local users are not allowed to change their username. Please contact your site administrator for more details. password_username_disabled = Non-local users are not allowed to change their username. Please contact your site administrator for more details.
full_name = Full Name full_name = Full Name

View file

@ -33,7 +33,7 @@
</div> </div>
<div class="field {{if .Err_Description}}error{{end}}"> <div class="field {{if .Err_Description}}error{{end}}">
<label for="description">{{$.i18n.Tr "user.user_bio"}}</label> <label for="description">{{$.i18n.Tr "user.user_bio"}}</label>
<textarea id="description" name="description" rows="2">{{.SignedUser.Description}}</textarea> <textarea id="description" name="description" rows="2" placeholder="{{.i18n.Tr "settings.biography_placeholder"}}">{{.SignedUser.Description}}</textarea>
</div> </div>
<div class="field {{if .Err_Website}}error{{end}}"> <div class="field {{if .Err_Website}}error{{end}}">
<label for="website">{{.i18n.Tr "settings.website"}}</label> <label for="website">{{.i18n.Tr "settings.website"}}</label>