summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f048d3d)
raw | patch | inline | side by side (parent: f048d3d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 27 Aug 2008 07:47:36 +0000 (07:47 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 27 Aug 2008 07:47:36 +0000 (07:47 +0000) |
-Works with groups now
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12281 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12281 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/scalix/personal/scalix/class_scalixAccount.inc | patch | blob | history | |
gosa-plugins/scalix/personal/scalix/generic.tpl | patch | blob | history |
diff --git a/gosa-plugins/scalix/personal/scalix/class_scalixAccount.inc b/gosa-plugins/scalix/personal/scalix/class_scalixAccount.inc
index 73338760e305131e66ea66c41fe79015b7b4a267..0f8cc811ee932bbdbf50428a8a6d3bceb6f75090 100644 (file)
$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 = "" */
diff --git a/gosa-plugins/scalix/personal/scalix/generic.tpl b/gosa-plugins/scalix/personal/scalix/generic.tpl
index 913ac3c26f4bbcbb394e8905ed5c0f82cb57b082..af34000eb4d0f6b249dbef6592b0619e7617108a 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>
{/render}
</td>
</tr>
+{if !$scalixGroup}
<tr>
<td><label for="scalixMailboxClass">{t}Salix mailbox class{/t}</label></td>
<td>
{/render}
</td>
</tr>
-{if !$calixGroup}
+
+
<tr>
<td><label for="scalixServerLanguage">{t}Scalix server language{/t}</label></td>
<td>
{/render}
</td>
</tr>
+{/if}
</table>
-
+
+{if !$scalixGroup}
<p class="seperator"> </p>
<table summary="">
<tr>
<td>
+{if !$scalixGroup}
{render acl=$scalixAdministratorACL}
<input type=checkbox name="scalixAdministrator" value="1" {$scalixAdministrator}
title="{t}Select for admin capability.{/t}"> {t}Scalix Administrator{/t}
title="{t}Select for mailbox admin capability.{/t}"> {t}Scalix Mailbox Administrator{/t}
{/render}
<br>
+{/if}
{render acl=$scalixHideUserEntryACL}
<input type=checkbox name="scalixHideUserEntry" value="1" {$scalixHideUserEntry}
title="{t}Hide user entry from addressbook.{/t}"> {t}Hide this user entry in Scalix{/t}
</td>
</tr>
</table>
+{/if}
</td>
<td style="border-left:1px solid #A0A0A0">
{/render}
</td>
</tr>
-{/if}
</table>
-
<input type="hidden" name="scalixTab" value="scalixTab">
<!-- Place cursor -->