From: hickert Date: Wed, 22 Mar 2006 04:30:26 +0000 (+0000) Subject: Added phone copy & paste template X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=97281f3cad030f60e7bc8a401e59ddb076b3ebe5;p=gosa.git Added phone copy & paste template git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2881 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc index 78acac303..85270ffa9 100644 --- a/plugins/gofon/phoneaccount/class_phoneAccount.inc +++ b/plugins/gofon/phoneaccount/class_phoneAccount.inc @@ -1152,10 +1152,20 @@ $ldap->modify ($this->attrs); } } - function getSaveDialog() + function getCopyDialog() { - - return("Phone"); + $smarty = get_smarty(); + if (!count($this->phoneNumbers)){ + $smarty->assign ("phoneNumbers", array("")); + } else { + $smarty->assign ("phoneNumbers", $this->phoneNumbers); + } + + $smarty->assign("goFonVoicemailPIN",$this->goFonVoicemailPIN); + $smarty->assign("goFonPIN",$this->goFonPIN); + + $display= $smarty->fetch(get_template_path('paste_generic.tpl', TRUE, dirname(__FILE__))); + return($display); } } diff --git a/plugins/gofon/phoneaccount/paste_generic.tpl b/plugins/gofon/phoneaccount/paste_generic.tpl new file mode 100644 index 000000000..01c311493 --- /dev/null +++ b/plugins/gofon/phoneaccount/paste_generic.tpl @@ -0,0 +1,56 @@ +

{t}Phone settings{/t}

+ + + + + +
+

+  {t}Phone numbers{/t} +

+ +
+ + + +
+ + + + +
+

+ +  {t}Telephone hardware{/t} +

+ + + + + + + + + +
+ + + +
+ + + +
+
+
+ + + +