From 7a25523d63559b19babd83c74223d2d0c4d75157 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Thu, 30 Jun 2011 17:38:59 -0400 Subject: entity link for password policy https://fedorahosted.org/freeipa/ticket/1111 reset() now hides both the link and the label calucalating should_link is now a function that can be overloaded. --- install/ui/policy.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'install/ui/policy.js') diff --git a/install/ui/policy.js b/install/ui/policy.js index d30abbfd..cd0e499e 100644 --- a/install/ui/policy.js +++ b/install/ui/policy.js @@ -33,8 +33,15 @@ IPA.entity_factories.pwpolicy = function() { sections:[ { name : 'identity', - fields:['krbmaxpwdlife','krbminpwdlife','krbpwdhistorylength', - 'krbpwdmindiffchars','krbpwdminlength'] + fields:[ + { + factory: IPA.entity_link_widget, + name: 'cn', + entity: 'group', + no_link_value: 'global_policy' + }, + 'krbmaxpwdlife','krbminpwdlife','krbpwdhistorylength', + 'krbpwdmindiffchars','krbpwdminlength'] }]}). standard_association_facets(). adder_dialog({ -- cgit