Web UI: kerberos ticket policy measurement units

Added measurement units for kerberos ticket policy.

https://fedorahosted.org/freeipa/ticket/2444
This commit is contained in:
Petr Vobornik 2012-07-09 17:28:08 +02:00
parent 848bd0e9e7
commit 0d11b8b056
2 changed files with 12 additions and 4 deletions

View File

@ -100,8 +100,14 @@ IPA.krbtpolicy.entity = function(spec) {
{
name: 'identity',
fields: [
'krbmaxrenewableage',
'krbmaxticketlife'
{
name: 'krbmaxrenewableage',
measurement_unit: 'seconds'
},
{
name: 'krbmaxticketlife',
measurement_unit: 'seconds'
}
]
}
],

View File

@ -188,12 +188,14 @@ IPA.user.entity = function(spec) {
{
name: 'krbmaxrenewableage',
label: IPA.get_entity_param('krbtpolicy', 'krbmaxrenewableage').label,
read_only: true
read_only: true,
measurement_unit: 'seconds'
},
{
name: 'krbmaxticketlife',
label: IPA.get_entity_param('krbtpolicy', 'krbmaxticketlife').label,
read_only: true
read_only: true,
measurement_unit: 'seconds'
}
]
},