From 93c2b26c8206d7f0e517945d1643581cc4a2fdd2 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 2 Oct 2009 07:06:57 +0000 Subject: [PATCH] Updated to (not working) datepicker git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14456 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../mail/personal/mail/class_mailAccount.inc | 1 + gosa-plugins/mail/personal/mail/generic.tpl | 86 +++++++------------ 2 files changed, 34 insertions(+), 53 deletions(-) diff --git a/gosa-plugins/mail/personal/mail/class_mailAccount.inc b/gosa-plugins/mail/personal/mail/class_mailAccount.inc index 7f00182e8..02eb27896 100644 --- a/gosa-plugins/mail/personal/mail/class_mailAccount.inc +++ b/gosa-plugins/mail/personal/mail/class_mailAccount.inc @@ -379,6 +379,7 @@ class mailAccount extends plugin SMARTY- Assign smarty variables ****************/ $smarty = get_smarty(); + $smarty->assign("usePrototype", "true"); $smarty->assign("initially_was_account", $this->initially_was_account); $smarty->assign("isModifyableMail" , $this->mailMethod->isModifyableMail()); $smarty->assign("isModifyableServer", $this->mailMethod->isModifyableServer()); diff --git a/gosa-plugins/mail/personal/mail/generic.tpl b/gosa-plugins/mail/personal/mail/generic.tpl index e186fd789..dde2bfa00 100644 --- a/gosa-plugins/mail/personal/mail/generic.tpl +++ b/gosa-plugins/mail/personal/mail/generic.tpl @@ -149,8 +149,7 @@ {t}Activate vacation message{/t} + onclick="changeStates()"> {t}Activate vacation message{/t} {/render}
@@ -159,50 +158,30 @@ - - - -
{t}from{/t} -{render acl=$gosaVacationMessageACL} - -{/render} + {render acl=$gosaVacationMessageACL} - -{/render} -{render acl=$gosaVacationMessageACL} - + + {if $gosaVacationMessageACL|regex_replace:"/[cdmr]/":"" == "w"} + + {/if} {/render} -
{t}till{/t} -{render acl=$gosaVacationMessageACL} - -{/render} + {render acl=$gosaVacationMessageACL} - + + {if $gosaVacationMessageACL|regex_replace:"/[cdmr]/":"" == "w"} + + {/if} {/render} -{render acl=$gosaVacationMessageACL} - -{/render} -
@@ -316,23 +295,24 @@