From eb1796299a429ba5cd3b939a65bf5e95abf0086c Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Tue, 3 May 2016 12:52:21 -0700 Subject: email to specific contact classes, 3.x adjustments --- httemplate/misc/email-customers.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'httemplate') diff --git a/httemplate/misc/email-customers.html b/httemplate/misc/email-customers.html index 11ab050b6..c9a216c3a 100644 --- a/httemplate/misc/email-customers.html +++ b/httemplate/misc/email-customers.html @@ -46,10 +46,10 @@ should be used to set msgnum or from/subject/html_body cgi params - % if ( $cgi->param('action') eq 'send' ) { + Sending notice <& /elements/progress-init.html, @@ -62,6 +62,7 @@ should be used to set msgnum or from/subject/html_body cgi params % } elsif ( $cgi->param('action') eq 'preview' ) { + Preview notice % } @@ -149,7 +150,6 @@ Template: onchange => 'toggle(this)', &>
-% } % # select destination contact classes Send to contacts: <& /elements/checkboxes.html, @@ -306,8 +306,8 @@ if ( $cgi->param('action') eq 'preview' ) { ($from, $subject, $html_body) = @message{'from', 'subject', 'html_body'}; } - # contact_class_X params - foreach my $param ( $cgi->multi_param ) { + # contact_class_X params in preview + foreach my $param ( $cgi->param ) { if ( $param =~ /^contact_class_(\w+)$/ ) { push @contact_classnum, $1; if ( $1 eq 'invoice' ) { @@ -318,8 +318,10 @@ if ( $cgi->param('action') eq 'preview' ) { } } } + } +# and set up contact checkboxes for edit mode my @contact_checkboxes = ( [ 'invoice' => { label => 'Invoice recipients' } ] ); -- cgit v1.2.1