From 40a25ecf371ebfcbb0801e1f99e3a2853439f44b Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Tue, 13 May 2014 12:39:13 +0200 Subject: [PATCH] webui: add search box placeholder text Reviewed-By: Endi Sukma Dewata --- install/ui/src/freeipa/search.js | 3 ++- install/ui/test/data/ipa_init.json | 1 + ipalib/plugins/internal.py | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/install/ui/src/freeipa/search.js b/install/ui/src/freeipa/search.js index a8bb928ee..56afa0de9 100644 --- a/install/ui/src/freeipa/search.js +++ b/install/ui/src/freeipa/search.js @@ -118,7 +118,8 @@ IPA.search_facet = function(spec, no_init) { that.filter = $('', { type: 'text', 'class': 'form-control', - name: 'filter' + name: 'filter', + placeholder: text.get('@i18n:search.placeholder') }).appendTo(that.filter_container); that.filter.keypress(function(e) { diff --git a/install/ui/test/data/ipa_init.json b/install/ui/test/data/ipa_init.json index e3384a960..233218c38 100644 --- a/install/ui/test/data/ipa_init.json +++ b/install/ui/test/data/ipa_init.json @@ -524,6 +524,7 @@ "enable_confirm": "Are you sure you want to enable selected entries?", "enabled": "${count} item(s) enabled", "partial_delete": "Some entries were not deleted", + "placeholder": "Search", "quick_links": "Quick Links", "select_all": "Select All", "truncated": "Query returned more results than the configured size limit. Displaying the first ${counter} results.", diff --git a/ipalib/plugins/internal.py b/ipalib/plugins/internal.py index 1988dd2af..886d3f6f9 100644 --- a/ipalib/plugins/internal.py +++ b/ipalib/plugins/internal.py @@ -660,6 +660,7 @@ class i18n_messages(Command): "enable_confirm": _("Are you sure you want to enable selected entries?"), "enabled": _("${count} item(s) enabled"), "partial_delete": _("Some entries were not deleted"), + "placeholder": _("Search"), "quick_links": _("Quick Links"), "select_all": _("Select All"), "truncated": _("Query returned more results than the configured size limit. Displaying the first ${counter} results."),