diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2014-05-13 12:39:13 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2014-06-10 10:23:29 +0200 |
commit | 40a25ecf371ebfcbb0801e1f99e3a2853439f44b (patch) | |
tree | 658d019dbeaa1559737051648ae4bd0458cfe0d4 | |
parent | 5c3fd4bb832859172fa6e7c739724f6562ccfb7f (diff) | |
download | freeipa-40a25ecf371ebfcbb0801e1f99e3a2853439f44b.tar.gz freeipa-40a25ecf371ebfcbb0801e1f99e3a2853439f44b.tar.xz freeipa-40a25ecf371ebfcbb0801e1f99e3a2853439f44b.zip |
webui: add search box placeholder text
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
-rw-r--r-- | install/ui/src/freeipa/search.js | 3 | ||||
-rw-r--r-- | install/ui/test/data/ipa_init.json | 1 | ||||
-rw-r--r-- | ipalib/plugins/internal.py | 1 |
3 files changed, 4 insertions, 1 deletions
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 = $('<input/>', { 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."), |