diff options
-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, |