From: hickert Date: Mon, 11 Oct 2010 10:31:53 +0000 (+0000) Subject: Added templates for the distribution lists X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c3fbd9de616bd414b9e7c7dbde72d95ab01c6976;p=gosa.git Added templates for the distribution lists git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19972 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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} +