[freeside-commits] branch FREESIDE_3_BRANCH updated. 4a6f0b1b2462bfb3391808959624a4c7336119db
Ivan
ivan at 420.am
Thu Jan 16 19:07:59 PST 2014
The branch, FREESIDE_3_BRANCH has been updated
via 4a6f0b1b2462bfb3391808959624a4c7336119db (commit)
from 85636d71668210cd39c7f44d7ce78ff09519b956 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4a6f0b1b2462bfb3391808959624a4c7336119db
Author: Ivan Kohler <ivan at freeside.biz>
Date: Thu Jan 16 19:07:58 2014 -0800
agent virt msg_template selection for customer email notices, RT#26143
diff --git a/httemplate/elements/select-msg_template.html b/httemplate/elements/select-msg_template.html
new file mode 100644
index 0000000..7c49010
--- /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 3b2ac3c5..b47f441 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,
-----------------------------------------------------------------------
Summary of changes:
httemplate/elements/select-msg_template.html | 10 ++++++++++
httemplate/misc/email-customers.html | 13 ++++---------
2 files changed, 14 insertions(+), 9 deletions(-)
create mode 100644 httemplate/elements/select-msg_template.html
More information about the freeside-commits
mailing list