mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
Add tool tips for Revert, Refresh, Undo, and Undo All
Add tool tips for buttons in detail view. New tooltips: Reload - Reload current settings from the server. Revert - Undo all unsaved changes. Undo - Undo this change. Undo all - Undo all changes in this field. https://fedorahosted.org/freeipa/ticket/5428 Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
parent
8f6fb7b4ea
commit
d5674b1490
@ -482,6 +482,7 @@ exp.details_facet_pre_op = function(spec, context) {
|
||||
spec.control_buttons.unshift(
|
||||
{
|
||||
name: 'revert',
|
||||
title: '@i18n:buttons.revert_title',
|
||||
label: '@i18n:buttons.revert',
|
||||
icon: 'fa-undo'
|
||||
},
|
||||
@ -494,6 +495,7 @@ exp.details_facet_pre_op = function(spec, context) {
|
||||
spec.control_buttons.unshift(
|
||||
{
|
||||
name: 'refresh',
|
||||
title: '@i18n:buttons.refresh_title',
|
||||
label: '@i18n:buttons.refresh',
|
||||
icon: 'fa-refresh'
|
||||
});
|
||||
|
@ -486,6 +486,7 @@ IPA.input_widget = function(spec) {
|
||||
name: 'undo',
|
||||
style: 'display: none;',
|
||||
'class': 'undo',
|
||||
title: text.get('@i18n:widget.undo_title'),
|
||||
label: text.get('@i18n:widget.undo')
|
||||
}).appendTo(container);
|
||||
|
||||
@ -1234,6 +1235,7 @@ IPA.multivalued_widget = function(spec) {
|
||||
name: 'undo_all',
|
||||
style: 'display: none;',
|
||||
'class': 'undo',
|
||||
title: text.get('@i18n:widget.undo_all_title'),
|
||||
label: text.get('@i18n:widget.undo_all'),
|
||||
click: function() {
|
||||
that.undo_clicked.notify([], that);
|
||||
|
@ -77,12 +77,14 @@
|
||||
"issue": "Issue",
|
||||
"ok": "OK",
|
||||
"refresh": "Refresh",
|
||||
"refresh_title": "Reload current settings from the server.",
|
||||
"remove": "Delete",
|
||||
"reset": "Reset",
|
||||
"reset_password_and_login": "Reset Password and Login",
|
||||
"restore": "Restore",
|
||||
"retry": "Retry",
|
||||
"revert": "Revert",
|
||||
"revert_title": "Undo all unsaved changes.",
|
||||
"revoke": "Revoke",
|
||||
"save": "Save",
|
||||
"set": "Set",
|
||||
@ -684,7 +686,9 @@
|
||||
"page": "Page",
|
||||
"prev": "Prev",
|
||||
"undo": "Undo",
|
||||
"undo_title": "Undo this change.",
|
||||
"undo_all": "Undo All",
|
||||
"undo_all_title": "Undo all changes.",
|
||||
"validation": {
|
||||
"error": "Text does not match field pattern",
|
||||
"datetime": "Must be an UTC date/time value (e.g., \"2014-01-20 17:58:01Z\")",
|
||||
|
@ -220,12 +220,14 @@ class i18n_messages(Command):
|
||||
"issue": _("Issue"),
|
||||
"ok": _("OK"),
|
||||
"refresh": _("Refresh"),
|
||||
"refresh_title": _("Reload current settings from the server."),
|
||||
"remove": _("Delete"),
|
||||
"reset": _("Reset"),
|
||||
"reset_password_and_login": _("Reset Password and Login"),
|
||||
"restore": _("Restore"),
|
||||
"retry": _("Retry"),
|
||||
"revert": _("Revert"),
|
||||
"revert_title": ("Undo all unsaved changes."),
|
||||
"revoke": _("Revoke"),
|
||||
"save": _("Save"),
|
||||
"set": _("Set"),
|
||||
@ -830,7 +832,9 @@ class i18n_messages(Command):
|
||||
"page": _("Page"),
|
||||
"prev": _("Prev"),
|
||||
"undo": _("Undo"),
|
||||
"undo_title": _("Undo this change."),
|
||||
"undo_all": _("Undo All"),
|
||||
"undo_all_title": _("Undo all changes in this field."),
|
||||
"validation": {
|
||||
"error": _("Text does not match field pattern"),
|
||||
"datetime": _("Must be an UTC date/time value (e.g., \"2014-01-20 17:58:01Z\")"),
|
||||
@ -858,5 +862,3 @@ class i18n_messages(Command):
|
||||
|
||||
def output_for_cli(self, textui, result, *args, **options):
|
||||
print(json.dumps(result, default=json_serialize))
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user