summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c3fbd9d)
raw | patch | inline | side by side (parent: c3fbd9d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 11 Oct 2010 12:12:34 +0000 (12:12 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 11 Oct 2010 12:12:34 +0000 (12:12 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19973 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/groupware/admin/ogroups/DistributionList/class_DistributionList.inc | patch | blob | history | |
gosa-plugins/groupware/admin/ogroups/DistributionList/generic.tpl | patch | blob | history |
diff --git a/gosa-plugins/groupware/admin/ogroups/DistributionList/class_DistributionList.inc b/gosa-plugins/groupware/admin/ogroups/DistributionList/class_DistributionList.inc
index 642ab2f3be0ba87bd727791cee5c462300aaaa18..0641fbc1f995eebd6a805d0819bb08efe5fed85f 100644 (file)
// Generate HTML output
$smarty = get_smarty();
$smarty->assign('rpcError' , $this->rpcError);
+ foreach(array("primaryMailAddress","alternateAddresses") as $attr){
+ $smarty->assign("{$attr}ACL", $this->getacl($attr));
+ $smarty->assign($attr, set_post($this->$attr));
+ }
+
+ $smarty->assign("memberList", set_post($this->memberList));
$smarty->assign('rpcErrorMessage' , $this->rpcErrorMessage);
return($display.$smarty->fetch(get_template_path('DistributionList/generic.tpl', TRUE)));
}
+ /*! \brief ACL settings
+ */
+ static function plInfo()
+ {
+ return (array(
+ "plShortName" => _("Distribution list"),
+ "plDescription" => _("Groupware distribution lists"),
+ "plSelfModify" => FALSE,
+ "plDepends" => array("ogroup"), // This plugin depends on
+ "plPriority" => 4, // Position in tabs
+ "plSection" => array("administration"),
+ "plCategory" => array("ogroups"),
+ "plOptions" => array(),
+ "plProvidedAcls" => array(
+ "primaryMailAddress" => _("Mail address"),
+ "alternateAddresses" => _("Alternate mail addresses"))
+ ));
+ }
+
+
+
+
function save_object()
{
diff --git a/gosa-plugins/groupware/admin/ogroups/DistributionList/generic.tpl b/gosa-plugins/groupware/admin/ogroups/DistributionList/generic.tpl
index 1279dbb13f3a5fc2a3a8d07493491fe0fcd6eebb..806cd79af67cbd74db062730caefcbaae499a628 100644 (file)
<tr>
<td style='width:50%; vertical-align: top;' class='right-border'>
{t}Mail address{/t}:
- {render acl=$primaryMailACL}
- <input type='text' name="primaryMail" value="{$primaryMail}">
+ {render acl=$primaryMailAddressACL}
+ <input type='text' name="primaryMailAddress" value="{$primaryMailAddress}">
{/render}
</td>
<td style='width:50%; vertical-align: top;'>