summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0adab20)
raw | patch | inline | side by side (parent: 0adab20)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 27 Aug 2008 07:54:13 +0000 (07:54 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 27 Aug 2008 07:54:13 +0000 (07:54 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@12282 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/groups/class_scalixGroup.inc | [new file with mode: 0644] | patch | blob |
plugins/personal/scalix/class_scalixAccount.inc | patch | blob | history | |
plugins/personal/scalix/generic.tpl | patch | blob | history |
diff --git a/plugins/admin/groups/class_scalixGroup.inc b/plugins/admin/groups/class_scalixGroup.inc
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+
+class scalixGroup extends scalixAccount
+{
+ var $scalixGroup = TRUE;
+
+ var $attributes = array("scalixMailnode");
+ var $fakeBooleanAttributes= array("scalixHideUserEntry");
+ var $objectclasses = array("scalixGroupClass");
+}
+
+?>
diff --git a/plugins/personal/scalix/class_scalixAccount.inc b/plugins/personal/scalix/class_scalixAccount.inc
index c47522a72da5077730bea5a26251152bf234a9fa..315f4cd9d5462e0e529717a26c53d1a58f4d83ac 100644 (file)
/* MUST */
var $scalixScalixObject= TRUE; //TRUE or FALSE
var $scalixMailnode= "";
- /* INDIRECT MUST, scalix will complain if no email was specified */
+
+ /* Indicates whether we have a scalix group or a sclix user account
+ */
+ var $scalixGroup = FALSE;
+ /* INDIRECT MUST, scalix will complain if no email was specified */
/* MAY */
var $scalixAdministrator= FALSE;
var $scalixMailboxAdministrator = FALSE;
/* Load templating engine */
$smarty= get_smarty();
+ $smarty->assign("scalixGroup",$this->scalixGroup);
$display= "";
/* Do we need to flip is_account state? */
$this->attrs['scalixEmailAddress']= $this->scalixEmailAddress;
/* Save boolean vars ... the scalix schema expects them as strings */
+ if(!$this->scalixGroup){
+ $this->attrs['scalixAdministrator'] = $this->scalixAdministrator?"TRUE":"FALSE";
+ $this->attrs['scalixMailboxAdministrator'] = $this->scalixMailboxAdministrator?"TRUE":"FALSE";
+ $this->attrs['scalixLimitOutboundMail'] = $this->scalixLimitOutboundMail?"TRUE":"FALSE";
+ $this->attrs['scalixLimitInboundMail'] = $this->scalixLimitInboundMail?"TRUE":"FALSE";
+ $this->attrs['scalixLimitNotifyUser'] = $this->scalixLimitNotifyUser?"TRUE":"FALSE";
+ }
+
$this->attrs['scalixScalixObject'] = $this->scalixScalixObject?"TRUE":"FALSE";
- $this->attrs['scalixAdministrator'] = $this->scalixAdministrator?"TRUE":"FALSE";
- $this->attrs['scalixMailboxAdministrator'] = $this->scalixMailboxAdministrator?"TRUE":"FALSE";
- $this->attrs['scalixLimitOutboundMail'] = $this->scalixLimitOutboundMail?"TRUE":"FALSE";
- $this->attrs['scalixLimitInboundMail'] = $this->scalixLimitInboundMail?"TRUE":"FALSE";
- $this->attrs['scalixLimitNotifyUser'] = $this->scalixLimitNotifyUser?"TRUE":"FALSE";
$this->attrs['scalixHideUserEntry'] = $this->scalixHideUserEntry?"TRUE":"FALSE";
/* Remove Mailquota if = "" */
index 7072bb1442b84faa1820419b63f705d17a75cb90..906c6acb1ef4478a32927116d584b8dd097f1259 100644 (file)
<tr>
<td style="width:50%; vertical-align:top;">
<h2><img class="center" alt="" align="middle" src="images/rightarrow.png" /> {t}Generic{/t}</h2>
+<!-- Hide user specific attributes when in group mode. -->
<table summary="">
<tr>
<td><label for="scalixMailnode">{t}Scalix mailnode{/t}</label>{$must}</td>
<td><input id="scalixMailnode" name="scalixMailnode" size=35 maxlength=65 {$scalixMailnodeACL} value="{$scalixMailnode}"></td>
</tr>
+{if !$scalixGroup}
<tr>
<td><label for="scalixMailboxClass">{t}Scalix mailbox class{/t}</label></td>
<td>
</select>
</td>
</tr>
+
+
<tr>
<td><label for="scalixServerLanguage">{t}Scalix server language{/t}</label></td>
<td>
</select>
</td>
</tr>
+{/if}
</table>
-
+{if !$scalixGroup}
<p class="seperator"> </p>
<table summary="">
</td>
</tr>
</table>
+{/if}
</td>
<td style="border-left:1px solid #A0A0A0">
</td>
</tr>
</table>
-
<input type="hidden" name="scalixTab" value="scalixTab">
<!-- Place cursor -->