From 11937bfd9c1f5c98c9e800a54047403aa2b736bf Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 23 Mar 2006 04:47:47 +0000 Subject: [PATCH] Moved posix copy & paste dialog into template git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2898 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/posix/class_posixAccount.inc | 63 +++---------------- plugins/personal/posix/paste_generic.tpl | 55 ++++++++++++++++ 2 files changed, 62 insertions(+), 56 deletions(-) create mode 100644 plugins/personal/posix/paste_generic.tpl diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc index c68ed4e2f..7dfec52d2 100644 --- a/plugins/personal/posix/class_posixAccount.inc +++ b/plugins/personal/posix/class_posixAccount.inc @@ -1180,62 +1180,13 @@ $ldap->modify ($this->attrs); } */ - $str =" - - - - -
-

"._("Posix settings")."

- - - - - - - - - - - - - - - - - - -
- - - homeDirectory."\"> -
- - - - - - - uidNumber."\"> -
- - - gidNumber."\"> -
-
- "; + $smarty = get_smarty(); + $smarty->assign("homeDirectory",$this->homeDirectory); + $smarty->assign("uidNumber",$this->uidNumber); + $smarty->assign("gidNumber",$this->gidNumber); + $smarty->assign("forceMode",$forceMode); + $smarty->assign("force_ids",$force_ids); + $str = $smarty->fetch(get_template_path("paste_generic.tpl",TRUE,dirname(__FILE__))); return($str); } diff --git a/plugins/personal/posix/paste_generic.tpl b/plugins/personal/posix/paste_generic.tpl new file mode 100644 index 000000000..ec7adedc4 --- /dev/null +++ b/plugins/personal/posix/paste_generic.tpl @@ -0,0 +1,55 @@ + + + + +
+

{t}Posix settings{/t}

+ + + + + + + + + + + + + + + + + + +
+ + + +
+ + + + + + + +
+ + + +
+
+ -- 2.30.2