From: ivan Date: Mon, 26 Jul 2010 22:59:05 +0000 (+0000) Subject: communigate vacation & redirect all rules, RT#7514 X-Git-Tag: freeside_1_9_5~103 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=6db0275aa8e1a445f9da44d8f002b1c76c79889e communigate vacation & redirect all rules, RT#7514 --- diff --git a/httemplate/edit/cgp_rule-redirect_all.html b/httemplate/edit/cgp_rule-redirect_all.html new file mode 100644 index 000000000..898eef8fc --- /dev/null +++ b/httemplate/edit/cgp_rule-redirect_all.html @@ -0,0 +1,57 @@ +<% include('/elements/header-popup.html', 'Redirect all mail') %> + +
+ +%# XXX upstream Redirect 1 + +<% ntable("#cccccc", 2) %> + + + Redirect all mail to + + + +<% include('/elements/tr-checkbox.html', + 'name' => 'RedirKeep', + 'label' => 'Keep a copy', + 'value' => 1, + 'curr_value' => '', #XXX + ) +%> + +<% include('/elements/tr-checkbox.html', + 'name' => 'RedirHuman', + 'label' => 'Do not redirect automatic messages', + 'value' => 1, + 'curr_value' => '', #XXX + ) +%> + +<% include('/elements/tr-checkbox.html', + 'name' => 'KeepToAndCc', + 'label' => 'Preserve To/Cc fields', + 'value' => 1, + 'curr_value' => '', #XXX + ) +%> + + + +
+ +%#XXX Add/Edit + +
+ + + +<%init> + +my %opt = @_; + +my $svc_acct = qsearchs('svc_acct', { 'svcnum' => $opt{'svcnum'} } ) + or die "unknown svcnum"; + +#XXX look for existing redirect all rule + + diff --git a/httemplate/edit/cgp_rule-vacation.html b/httemplate/edit/cgp_rule-vacation.html new file mode 100644 index 000000000..efdc5417e --- /dev/null +++ b/httemplate/edit/cgp_rule-vacation.html @@ -0,0 +1,47 @@ +<% include('/elements/header-popup.html', 'Vacation rule') %> + +
+ +%# XXX upstream Vacation 1 + +<% ntable("#cccccc", 2) %> + + + Vacation message + + + +<% include('/elements/tr-input-date-field.html', { + 'label' => 'Ends', + 'name' => 'vacationTill', + 'value' => '', #XXX + }) +%> +%# XXX upstream: +%# VacationTill 1 +%# vacationDay +%# vacationMonth +%# vacationYear + +%#XXX Clear 'Replied Addresses' List + + + +
+ +%#XXX Add/Edit + +
+ + + +<%init> + +my %opt = @_; + +my $svc_acct = qsearchs('svc_acct', { 'svcnum' => $opt{'svcnum'} } ) + or die "unknown svcnum"; + +#XXX look for existing vacation rule + + diff --git a/httemplate/view/svc_acct/communigate.html b/httemplate/view/svc_acct/communigate.html index 9d6680750..0f090fdb9 100644 --- a/httemplate/view/svc_acct/communigate.html +++ b/httemplate/view/svc_acct/communigate.html @@ -53,7 +53,45 @@ <% include('/view/elements/tr.html', label=>'Send read receipts', value=>$svc_acct->cgp_sendmdnmode ) %> -%#XXX vacation message, redirect all mail +%# vacation message +%#XXX finish me... do we need to search for specific rules +%# (and hide them?) need to see what CGP gives back after we've added a rule + <% include('/elements/init_overlib.html') %> + + + Vacation message + + <% include('/elements/popup_link.html', + 'action' => $p.'edit/cgp_rule-vacation.html?'. + 'svcnum='. $svc_acct->svcnum, + 'label' => '(add)', #XXX (edit) + 'actionlabel' => 'Vacation message', + 'width' => 600, + 'height' => 300, + #'color' + ) + %> + + + +%# redirect all mail +%#XXX finish me... + + + Redirect all mail + + <% include('/elements/popup_link.html', + 'action' => $p.'edit/cgp_rule-redirect_all.html?'. + 'svcnum='. $svc_acct->svcnum, + 'label' => '(add)', #XXX (edit) + 'actionlabel' => 'Redirect all mail', + 'width' => 763, + #'height' + #'color' + ) + %> + + %# mail rules