diff options
author | Bagas Sanjaya <bagasdotme@gmail.com> | 2020-08-11 09:38:30 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-10 22:38:30 -0400 |
commit | a4ba1ad5ed6415ffecd2a6d1234741b4c2532e35 (patch) | |
tree | 2c042f0c84863ca067fc68c8ab39210c2e9f9dd7 | |
parent | 0cc21fb72d7b126f140a064c9b9b24f8ee0de2c6 (diff) | |
download | gitea-a4ba1ad5ed6415ffecd2a6d1234741b4c2532e35.tar.gz gitea-a4ba1ad5ed6415ffecd2a6d1234741b4c2532e35.zip |
Add placeholder text for send testing email button in admin/config (#12452)
* Add placeholder text for send testing email button in admin/config
* Change placeholder text to expecting email address
* Localize placeholder text
* Apply suggestion from @silverwind
ok
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
-rw-r--r-- | options/locale/locale_en-US.ini | 1 | ||||
-rw-r--r-- | templates/admin/config.tmpl | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 6dedae3422..e429486df5 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -2174,6 +2174,7 @@ config.mailer_use_sendmail = Use Sendmail config.mailer_sendmail_path = Sendmail Path config.mailer_sendmail_args = Extra Arguments to Sendmail config.mailer_sendmail_timeout = Sendmail Timeout +config.test_email_placeholder = Email (e.g. test@example.com) config.send_test_mail = Send Testing Email config.test_mail_failed = Failed to send a testing email to '%s': %v config.test_mail_sent = A testing email has been sent to '%s'. diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index 1b553230b7..f43cc86fd7 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -237,7 +237,7 @@ {{.CsrfTokenHtml}} <div class="inline field ui left"> <div class="ui input"> - <input type="email" name="email" required> + <input type="email" name="email" placeholder="{{.i18n.Tr "admin.config.test_email_placeholder"}}" size="29" required> </div> </div> <button class="ui green button" id="test-mail-btn">{{.i18n.Tr "admin.config.send_test_mail"}}</button> |