summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 94996eb)
raw | patch | inline | side by side (parent: 94996eb)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 11 Oct 2010 10:31:53 +0000 (10:31 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 11 Oct 2010 10:31:53 +0000 (10:31 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19972 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 | [new file with mode: 0644] | patch | blob |
gosa-plugins/groupware/admin/ogroups/DistributionList/initFailed.tpl | [new file with mode: 0644] | patch | blob |
diff --git a/gosa-plugins/groupware/admin/ogroups/DistributionList/class_DistributionList.inc b/gosa-plugins/groupware/admin/ogroups/DistributionList/class_DistributionList.inc
index 36a4381ec1e447ec4f4fb6825438952f7f576ac7..642ab2f3be0ba87bd727791cee5c462300aaaa18 100644 (file)
public $view_logged = FALSE;
+ public $attributes = array('primaryMailAddress','alternateAddresses','memberList');
+
+
function __construct($config, $dn, $attrs = NULL)
{
plugin::plugin($config, $dn, $attrs);
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
--- /dev/null
@@ -0,0 +1,34 @@
+<h3>{t}Groupware{/t}</h3>
+
+<table summary="{t}Groupware{/t}">
+ <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}
+ </td>
+ <td style='width:50%; vertical-align: top;'>
+ <h3><label for="alternateAddressList">{t}Alternative addresses{/t}</label></h3>
+ {render acl=$alternateAddressesACL}
+ <select id="alternateAddressList" style="width:100%;height:100px;" name="alternateAddressList[]" size="15" multiple
+ title="{t}List of alternative mail addresses{/t}">
+ {html_options values=$alternateAddresses output=$alternateAddresses}
+ <option disabled> </option>
+ </select>
+ <br>
+ {/render}
+ {render acl=$alternateAddressesACL}
+ <input type='text' name="alternateAddressInput">
+ {/render}
+ {render acl=$alternateAddressesACL}
+ <button type='submit' name='addAlternateAddress'>{msgPool type=addButton}</button>
+ {/render}
+ {render acl=$alternateAddressesACL}
+ <button type='submit' name='deleteAlternateAddress'>{msgPool type=delButton}</button>
+ {/render}
+ </td>
+ </tr>
+</table>
+
+
diff --git a/gosa-plugins/groupware/admin/ogroups/DistributionList/initFailed.tpl b/gosa-plugins/groupware/admin/ogroups/DistributionList/initFailed.tpl
--- /dev/null
@@ -0,0 +1,3 @@
+<h3>{t}Groupware{/t}</h3>
+{msgPool type=rpcError text=$rpcErrorMessage}
+ <button name='retryInit'>{t}Retry{/t}</button>