diff options
author | ivan <ivan> | 2010-07-26 22:59:04 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-07-26 22:59:04 +0000 |
commit | b9d57f0848ffe4d3cc97de49c9e7c55fecf6c26d (patch) | |
tree | 495493ffc7d8727f2d7d129c68a09ea3b4ae3bbe /httemplate/edit | |
parent | 555b470d0845e593459697a25df61140ade49f06 (diff) |
communigate vacation & redirect all rules, RT#7514
Diffstat (limited to 'httemplate/edit')
-rw-r--r-- | httemplate/edit/cgp_rule-redirect_all.html | 57 | ||||
-rw-r--r-- | httemplate/edit/cgp_rule-vacation.html | 47 |
2 files changed, 104 insertions, 0 deletions
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') %> + +<FORM NAME="RedirectAllForm" ACTION="process/cgp_rule-redirect_all.html" METHOD=POST> + +%# XXX upstream Redirect 1 + +<% ntable("#cccccc", 2) %> + +<TR> + <TD ALIGN="right">Redirect all mail to</TD> + <TD><textarea name="RedirectText" rows="5" cols="50"></textarea></TD> +</TR> + +<% 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 + ) +%> + +</TABLE> + +<BR> +<INPUT TYPE="submit" VALUE="Redirect all mail"> +%#XXX Add/Edit + +</FORM> + +</BODY> +</HTML> +<%init> + +my %opt = @_; + +my $svc_acct = qsearchs('svc_acct', { 'svcnum' => $opt{'svcnum'} } ) + or die "unknown svcnum"; + +#XXX look for existing redirect all rule + +</%init> 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') %> + +<FORM NAME="VacationForm" ACTION="process/cgp_rule-vacation.html" METHOD=POST> + +%# XXX upstream Vacation 1 + +<% ntable("#cccccc", 2) %> + +<TR> + <TD ALIGN="right">Vacation message</TD> + <TD><textarea name="VacationText" rows="5" cols="50"></textarea></TD> +</TR> + +<% 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 + +</TABLE> + +<BR> +<INPUT TYPE="submit" VALUE="Add vacation message"> +%#XXX Add/Edit + +</FORM> + +</BODY> +</HTML> +<%init> + +my %opt = @_; + +my $svc_acct = qsearchs('svc_acct', { 'svcnum' => $opt{'svcnum'} } ) + or die "unknown svcnum"; + +#XXX look for existing vacation rule + +</%init> |