From 0d11b8b0567e8440f9cb553a99e1f66e545509d0 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Mon, 9 Jul 2012 17:28:08 +0200 Subject: Web UI: kerberos ticket policy measurement units Added measurement units for kerberos ticket policy. https://fedorahosted.org/freeipa/ticket/2444 --- install/ui/policy.js | 10 ++++++++-- install/ui/user.js | 6 ++++-- 2 files changed, 12 insertions(+), 4 deletions(-) (limited to 'install/ui') diff --git a/install/ui/policy.js b/install/ui/policy.js index acad0c8c2..ff932bec4 100644 --- a/install/ui/policy.js +++ b/install/ui/policy.js @@ -100,8 +100,14 @@ IPA.krbtpolicy.entity = function(spec) { { name: 'identity', fields: [ - 'krbmaxrenewableage', - 'krbmaxticketlife' + { + name: 'krbmaxrenewableage', + measurement_unit: 'seconds' + }, + { + name: 'krbmaxticketlife', + measurement_unit: 'seconds' + } ] } ], diff --git a/install/ui/user.js b/install/ui/user.js index 24873ecf5..7bb5a5707 100644 --- a/install/ui/user.js +++ b/install/ui/user.js @@ -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' } ] }, -- cgit