diff options
author | Mark Wells <mark@freeside.biz> | 2015-09-18 10:18:43 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-09-18 10:18:43 -0700 |
commit | c0c5709fb022b83a482d0b35f7094505766d5868 (patch) | |
tree | 1cc652dad8a1280f4297c0ab12e8520e610fbd14 /httemplate/elements | |
parent | 7bce756e86a4307d6cad49a690f22a321acc9981 (diff) |
send commission reports by email, #33101
Diffstat (limited to 'httemplate/elements')
-rw-r--r-- | httemplate/elements/popup_link-send_report_batch.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/httemplate/elements/popup_link-send_report_batch.html b/httemplate/elements/popup_link-send_report_batch.html new file mode 100644 index 000000000..5f4471054 --- /dev/null +++ b/httemplate/elements/popup_link-send_report_batch.html @@ -0,0 +1,28 @@ +<%doc> + +Example: + +<& /elements/popup_link-send_report_batch.html, + reportname => 'sales_commission_pkg', + label => 'Click here to send reports by email', +&> +</%doc> +<& /elements/popup_link.html, $params &>\ +<%init> + +my $params = { 'closetext' => emt('Close') }; + +if (ref($_[0]) eq 'HASH') { + $params = { %$params, %{ $_[0] } }; +} else { + $params = { %$params, @_ }; +} + +$params->{'label'} ||= emt('Send reports by email'); +$params->{'actionlabel'} ||= emt('Send reports'); +#$params->{'width'} ||= 350; +$params->{'height'} ||= 650; + +$params->{'action'} = $fsurl. 'misc/send-report.html?reportname='. $params->{'reportname'}; + +</%init> |