From 3c538270e405f5dc543a4281e2d73b1f86feb3c4 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Thu, 10 Aug 2017 11:25:17 -0400 Subject: [PATCH] UX: placeholder text in watched word input field --- .../admin/templates/components/watched-word-form.hbs | 2 +- config/locales/client.en.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/admin/templates/components/watched-word-form.hbs b/app/assets/javascripts/admin/templates/components/watched-word-form.hbs index 64fbcb6570a..61ce0fbe76f 100644 --- a/app/assets/javascripts/admin/templates/components/watched-word-form.hbs +++ b/app/assets/javascripts/admin/templates/components/watched-word-form.hbs @@ -1,5 +1,5 @@ {{i18n 'admin.watched_words.form.label'}} -{{text-field value=word disabled=formSubmitted class="watched-word-input" autocorrect="off" autocapitalize="off"}} +{{text-field value=word disabled=formSubmitted class="watched-word-input" autocorrect="off" autocapitalize="off" placeholderKey="admin.watched_words.form.placeholder"}} {{d-button action="submit" disabled=formSubmitted label="admin.watched_words.form.add"}} {{#if showSuccessMessage}} diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 6246b61fc85..0a33507b42e 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -3179,6 +3179,7 @@ en: flag: 'Allow posts containing these words, but flag them as inappropriate so moderators can review them.' form: label: 'New Word:' + placeholder: 'full word or * as wildcard' add: 'Add' success: 'Success' upload: "Upload"