[freeside-commits] branch master updated. 950a94ad6ce36d842d788101a5330b009d44a95e

Ivan ivan at 420.am
Thu Jan 16 19:07:52 PST 2014


The branch, master has been updated
       via  950a94ad6ce36d842d788101a5330b009d44a95e (commit)
      from  cc29c2d703d4588d11d3d0ff5a4b08c803d72688 (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 950a94ad6ce36d842d788101a5330b009d44a95e
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Jan 16 19:07:51 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