From: hickert Date: Wed, 9 Jul 2008 07:23:57 +0000 (+0000) Subject: Updated posix plugin/template X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dd6c60b5e5c96656882d6847d7f44932b87db53d;p=gosa.git 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 --- 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}