diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-01-16 19:07:51 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-01-16 19:07:51 -0800 |
commit | 950a94ad6ce36d842d788101a5330b009d44a95e (patch) | |
tree | 3fb9b9f03d4247bb29215ad58517fca17eef5160 /httemplate | |
parent | cc29c2d703d4588d11d3d0ff5a4b08c803d72688 (diff) |
agent virt msg_template selection for customer email notices, RT#26143
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/elements/select-msg_template.html | 10 | ||||
-rw-r--r-- | httemplate/misc/email-customers.html | 13 |
2 files changed, 14 insertions, 9 deletions
diff --git a/httemplate/elements/select-msg_template.html b/httemplate/elements/select-msg_template.html new file mode 100644 index 000000000..7c49010c6 --- /dev/null +++ b/httemplate/elements/select-msg_template.html @@ -0,0 +1,10 @@ +<& /elements/select-table.html, + 'label' => 'Template:', + 'table' => 'msg_template', + 'hashref' => { disabled => '' }, + 'name_col' => 'msgname', + 'empty_label' => '(none)', + 'agent_virt' => 1, + 'agent_null' => 1, + @_, +&> diff --git a/httemplate/misc/email-customers.html b/httemplate/misc/email-customers.html index 3b2ac3c5f..b47f4414f 100644 --- a/httemplate/misc/email-customers.html +++ b/httemplate/misc/email-customers.html @@ -95,15 +95,10 @@ function toggle(obj) { </SCRIPT> Template: - <% include('/elements/select-table.html', - 'label' => 'Template:', - 'table' => 'msg_template', - 'hashref' => { disabled => '' }, - 'name_col' => 'msgname', - 'empty_label' => '(none)', - 'onchange' => 'toggle(this)', - ) - %><BR> + <& /elements/select-msg_template.html, + onchange => 'toggle(this)', + &> + <BR> <TABLE BGCOLOR="#cccccc" CELLSPACING=0 WIDTH="100%" id="table_no_template"> <& /elements/tr-td-label.html, 'label' => 'From:' &> <TD><& /elements/input-text.html, |