mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
webui: association adder dialog - change find label to filter
also add filter placeholder Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
This commit is contained in:
parent
05a917eb17
commit
29f60931e2
@ -763,10 +763,15 @@ IPA.adder_dialog = function(spec) {
|
||||
'class': 'input-group col-md-12 adder-dialog-top'
|
||||
}).appendTo(container);
|
||||
|
||||
var filter_placeholder = text.get('@i18n:association.filter_placeholder');
|
||||
filter_placeholder = filter_placeholder.replace('${other_entity}',
|
||||
that.other_entity.metadata.label);
|
||||
|
||||
that.filter_field = $('<input/>', {
|
||||
type: 'text',
|
||||
name: 'filter',
|
||||
'class': 'form-control',
|
||||
'placeholder': filter_placeholder,
|
||||
keyup: function(event) {
|
||||
if (event.keyCode === keys.ENTER) {
|
||||
that.search();
|
||||
@ -781,7 +786,7 @@ IPA.adder_dialog = function(spec) {
|
||||
|
||||
that.find_button = IPA.button({
|
||||
name: 'find',
|
||||
label: '@i18n:buttons.find',
|
||||
label: '@i18n:buttons.filter',
|
||||
click: function() {
|
||||
that.search();
|
||||
return false;
|
||||
|
@ -36,6 +36,7 @@
|
||||
},
|
||||
"added": "${count} item(s) added",
|
||||
"direct_membership": "Direct Membership",
|
||||
"filter_placeholder": "Filter available ${other_entity}",
|
||||
"indirect_membership": "Indirect Membership",
|
||||
"no_entries": "No entries.",
|
||||
"paging": "Showing ${start} to ${end} of ${total} entries.",
|
||||
@ -65,6 +66,7 @@
|
||||
"disable": "Disable",
|
||||
"edit": "Edit",
|
||||
"enable": "Enable",
|
||||
"filter": "Filter",
|
||||
"find": "Find",
|
||||
"get": "Get",
|
||||
"issue": "Issue",
|
||||
|
@ -170,6 +170,7 @@ class i18n_messages(Command):
|
||||
},
|
||||
"added": _("${count} item(s) added"),
|
||||
"direct_membership": _("Direct Membership"),
|
||||
"filter_placeholder": _("Filter available ${other_entity}"),
|
||||
"indirect_membership": _("Indirect Membership"),
|
||||
"no_entries": _("No entries."),
|
||||
"paging": _("Showing ${start} to ${end} of ${total} entries."),
|
||||
@ -198,6 +199,7 @@ class i18n_messages(Command):
|
||||
"disable": _("Disable"),
|
||||
"edit": _("Edit"),
|
||||
"enable": _("Enable"),
|
||||
"filter": _("Filter"),
|
||||
"find": _("Find"),
|
||||
"get": _("Get"),
|
||||
"issue": _("Issue"),
|
||||
|
Loading…
Reference in New Issue
Block a user