From dd6c60b5e5c96656882d6847d7f44932b87db53d Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 9 Jul 2008 07:23:57 +0000 Subject: [PATCH] Updated posix plugin/template -Updated posix onClick action for "Force UID/GID" checkbox. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11570 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../plugins/personal/posix/class_posixAccount.inc | 11 ++++++++++- gosa-core/plugins/personal/posix/generic.tpl | 3 ++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gosa-core/plugins/personal/posix/class_posixAccount.inc b/gosa-core/plugins/personal/posix/class_posixAccount.inc index 55c9d944e..8a3971073 100644 --- a/gosa-core/plugins/personal/posix/class_posixAccount.inc +++ b/gosa-core/plugins/personal/posix/class_posixAccount.inc @@ -557,8 +557,17 @@ class posixAccount extends plugin } $smarty->assign("force_ids", ""); } - + /* Create onClick="" action string for the "Force UID/GID" option + */ + $onClickIDS =""; + if(preg_match("/w/",$this->getacl("uidNumber",$SkipWrite))){ + $onClickIDS .= "changeState('uidNumber');"; + } + if(preg_match("/w/",$this->getacl("gidNumber",$SkipWrite))){ + $onClickIDS .= "changeState('gidNumber');"; + } + $smarty->assign("onClickIDS", $onClickIDS); $smarty->assign("force_idsACL", $this->getacl("uidNumber",$SkipWrite).$this->getacl("gidNumber",$SkipWrite)); foreach(array("primaryGroup","trustmode","activate_shadowWarning","activate_shadowInactive","activate_shadowMin","activate_shadowMax","activate_shadowExpire","mustchangepassword") as $val){ diff --git a/gosa-core/plugins/personal/posix/generic.tpl b/gosa-core/plugins/personal/posix/generic.tpl index 18c69ad97..eccc8bd17 100644 --- a/gosa-core/plugins/personal/posix/generic.tpl +++ b/gosa-core/plugins/personal/posix/generic.tpl @@ -45,7 +45,8 @@ {render acl=$force_idsACL} - + {/render} -- 2.30.2