summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/internal.py
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2012-08-27 10:57:47 +0200
committerPetr Vobornik <pvoborni@redhat.com>2012-08-29 12:00:06 +0200
commit81007ff38578588906737df3082b42fb7f2ee011 (patch)
tree367340e56e48f2288671eccc647c52405838b1b4 /ipalib/plugins/internal.py
parent7d3aa96103b03ef50ec1f6d94e2f578d800163fc (diff)
downloadfreeipa-81007ff38578588906737df3082b42fb7f2ee011.tar.gz
freeipa-81007ff38578588906737df3082b42fb7f2ee011.tar.xz
freeipa-81007ff38578588906737df3082b42fb7f2ee011.zip
Successful action notification
User was not notified about success of actions executed from action list, action panel or facet cotrol bar. This patch adds IPA.notify_success(message) call. It creates a yellow notification area with supplied message in Web UI header in the middle of the green area (empty space of first level navigation). This area is displayed for 3s and then it fades out (800ms). It also fades out when it is clicked. This call is used(directly or indirectly) in: * search facets: delete, disable, enable actions * details facets: delete action * user details facet: reset password action * host details facet: unprovision, set OTP actions * service details facet: unprovision action * host and service details facet: request, revoke, restore certificates actions * group details facet: change to POSIX/external actions * dns zone details facet: add/remove permission actions https://fedorahosted.org/freeipa/ticket/2977
Diffstat (limited to 'ipalib/plugins/internal.py')
-rw-r--r--ipalib/plugins/internal.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ipalib/plugins/internal.py b/ipalib/plugins/internal.py
index 88402fb54..890ebb452 100644
--- a/ipalib/plugins/internal.py
+++ b/ipalib/plugins/internal.py
@@ -329,8 +329,10 @@ class i18n_messages(Command):
"reason": _("Reason for Revocation"),
"remove_from_crl": _("Remove from CRL"),
"request_message": _("<ol><li>Examples uses NSS database located in current directory. Replace \"-d .\" in example with \"-d /path/to/database\" if NSS database is located elsewhere. If you don't have a NSS database you can create one in current directory by \"certutil -N -d .\" </li><li>Create a CSR with \"CN=${hostname},O=${realm}\", for example:<br/># certutil -R -d . -a <em title=\"key size in bits\">-g 2048</em> -s 'CN=${hostname},O=${realm}'</li><li>Copy and paste the CSR (the text block which starts with \"-----BEGIN NEW CERTIFICATE REQUEST-----\" and ends with \"-----END NEW CERTIFICATE REQUEST-----\") below:</li></ol>"),
+ "requested": _("Certificate requested"),
"restore_certificate": _("Restore Certificate for ${entity} ${primary_key}"),
"restore_confirmation": _("To confirm your intention to restore this certificate, click the \"Restore\" button."),
+ "restored": _("Certificate restored"),
"revoke_certificate": _("Revoke Certificate for ${entity} ${primary_key}"),
"revoke_confirmation": _("To confirm your intention to revoke this certificate, select a reason from the pull-down list, and click the \"Revoke\" button."),
"revoked": _("Certificate Revoked"),
@@ -461,11 +463,13 @@ class i18n_messages(Command):
"password_reset_button": _("Reset OTP"),
"password_reset_title": _("Reset One-Time-Password"),
"password_set_button": _("Set OTP"),
+ "password_set_success": _("OTP set"),
"password_set_title": _("Set One-Time-Password"),
"status": _("Status"),
"unprovision": _("Unprovision"),
"unprovision_confirmation": _("Are you sure you want to unprovision this host?"),
"unprovision_title": _("Unprovisioning ${entity}"),
+ "unprovisioned": _("Host unprovisioned"),
},
"hostgroup": {
"identity": _("Host Group Settings"),
@@ -535,6 +539,7 @@ class i18n_messages(Command):
"unprovision": _("Unprovision"),
"unprovision_confirmation": _("Are you sure you want to unprovision this service?"),
"unprovision_title": _("Unprovisioning ${entity}"),
+ "unprovisioned": _("Service unprovisioned"),
"valid": _("Kerberos Key Present, Service Provisioned"),
},
"sshkeystore": {
@@ -615,6 +620,9 @@ class i18n_messages(Command):
},
"search": {
"delete_confirm": _("Are you sure you want to delete selected entries?"),
+ "deleted": _("Selected entries were deleted."),
+ "disabled": _("${count} items were disabled"),
+ "enabled": _("${count} items were enabled"),
"partial_delete": _("Some entries were not deleted"),
"quick_links": _("Quick Links"),
"select_all": _("Select All"),