summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-01-16 19:07:51 -0800
committerIvan Kohler <ivan@freeside.biz>2014-01-16 19:07:51 -0800
commit950a94ad6ce36d842d788101a5330b009d44a95e (patch)
tree3fb9b9f03d4247bb29215ad58517fca17eef5160 /httemplate
parentcc29c2d703d4588d11d3d0ff5a4b08c803d72688 (diff)
agent virt msg_template selection for customer email notices, RT#26143
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/elements/select-msg_template.html10
-rw-r--r--httemplate/misc/email-customers.html13
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,