webui: better authentication types description

Tooltips were added to "User authentication types" and "Default user
authentication types" to describe their relationship and a meaning of
not-setting a value.

https://fedorahosted.org/freeipa/ticket/4471

Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
This commit is contained in:
Petr Vobornik 2014-07-24 15:33:04 +02:00
parent 19bef5bd01
commit 27128bd8f5
4 changed files with 26 additions and 2 deletions

View File

@ -77,7 +77,12 @@ return {
$type: 'checkboxes',
name: 'ipauserauthtype',
flags: ['w_if_no_aci'],
options: ['password', 'radius', 'otp']
options: [
{ label: '@i18n:authtype.type_password', value: 'password' },
{ label: '@i18n:authtype.type_radius', value: 'radius' },
{ label: '@i18n:authtype.type_otp', value: 'otp' }
],
tooltip: '@i18n:authtype.config_tooltip'
},
{
$type: 'checkbox',

View File

@ -153,7 +153,12 @@ return {
$type: 'checkboxes',
name: 'ipauserauthtype',
flags: ['w_if_no_aci'],
options: ['password', 'radius', 'otp']
options: [
{ label: '@i18n:authtype.type_password', value: 'password' },
{ label: '@i18n:authtype.type_radius', value: 'radius' },
{ label: '@i18n:authtype.type_otp', value: 'otp' }
],
tooltip: '@i18n:authtype.user_tooltip'
}
]
},

View File

@ -48,6 +48,13 @@
"removed": "${count} item(s) removed",
"show_results": "Show Results"
},
"authtype": {
"config_tooltip": "Implicit method (password) will be used if no method is chosen.",
"type_otp": "Two factor authentication (password + OTP)",
"type_password": "Password",
"type_radius": "Radius",
"user_tooltip": "Per-user setting, overwrites the global setting if any option is checked."
},
"buttons": {
"about": "About",
"add": "Add",

View File

@ -190,6 +190,13 @@ class i18n_messages(Command):
"removed": _("${count} item(s) removed"),
"show_results": _("Show Results"),
},
"authtype": {
"config_tooltip": _("Implicit method (password) will be used if no method is chosen."),
"type_otp": _("Two factor authentication (password + OTP)"),
"type_password": _("Password"),
"type_radius": _("Radius"),
"user_tooltip": _("Per-user setting, overwrites the global setting if any option is checked."),
},
"buttons": {
"about": _("About"),
"add": _("Add"),