From c3fbd9de616bd414b9e7c7dbde72d95ab01c6976 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 11 Oct 2010 10:31:53 +0000 Subject: [PATCH] Added templates for the distribution lists git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19972 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../class_DistributionList.inc | 10 +++++- .../ogroups/DistributionList/generic.tpl | 34 +++++++++++++++++++ .../ogroups/DistributionList/initFailed.tpl | 3 ++ 3 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 gosa-plugins/groupware/admin/ogroups/DistributionList/generic.tpl create mode 100644 gosa-plugins/groupware/admin/ogroups/DistributionList/initFailed.tpl diff --git a/gosa-plugins/groupware/admin/ogroups/DistributionList/class_DistributionList.inc b/gosa-plugins/groupware/admin/ogroups/DistributionList/class_DistributionList.inc index 36a4381ec..642ab2f3b 100644 --- a/gosa-plugins/groupware/admin/ogroups/DistributionList/class_DistributionList.inc +++ b/gosa-plugins/groupware/admin/ogroups/DistributionList/class_DistributionList.inc @@ -9,6 +9,9 @@ class DistributionList extends plugin public $view_logged = FALSE; + public $attributes = array('primaryMailAddress','alternateAddresses','memberList'); + + function __construct($config, $dn, $attrs = NULL) { plugin::plugin($config, $dn, $attrs); @@ -125,7 +128,12 @@ class DistributionList extends plugin return ($display); } } - return($display); + + // Generate HTML output + $smarty = get_smarty(); + $smarty->assign('rpcError' , $this->rpcError); + $smarty->assign('rpcErrorMessage' , $this->rpcErrorMessage); + return($display.$smarty->fetch(get_template_path('DistributionList/generic.tpl', TRUE))); } diff --git a/gosa-plugins/groupware/admin/ogroups/DistributionList/generic.tpl b/gosa-plugins/groupware/admin/ogroups/DistributionList/generic.tpl new file mode 100644 index 000000000..1279dbb13 --- /dev/null +++ b/gosa-plugins/groupware/admin/ogroups/DistributionList/generic.tpl @@ -0,0 +1,34 @@ +

{t}Groupware{/t}

+ + + + + + +
+ {t}Mail address{/t}: + {render acl=$primaryMailACL} + + {/render} + +

+ {render acl=$alternateAddressesACL} + +
+ {/render} + {render acl=$alternateAddressesACL} + + {/render} + {render acl=$alternateAddressesACL} + + {/render} + {render acl=$alternateAddressesACL} + + {/render} +
+ + diff --git a/gosa-plugins/groupware/admin/ogroups/DistributionList/initFailed.tpl b/gosa-plugins/groupware/admin/ogroups/DistributionList/initFailed.tpl new file mode 100644 index 000000000..96404d4c5 --- /dev/null +++ b/gosa-plugins/groupware/admin/ogroups/DistributionList/initFailed.tpl @@ -0,0 +1,3 @@ +

{t}Groupware{/t}

+{msgPool type=rpcError text=$rpcErrorMessage} +  -- 2.30.2