X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Femail-customers.html;h=c9a216c3ab9a86824cdd7c4c0ffe09dc29de914d;hp=11ab050b68e8c3b16850402585b41345bff639d9;hb=eb1796299a429ba5cd3b939a65bf5e95abf0086c;hpb=755159a8654a2eda89badd1498f8def3a472cb15
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' } ]
);