[freeside-commits] branch master updated. 7bfad250feb5f1acc10b7f4b98b0efdd14c52be5

Ivan ivan at 420.am
Tue May 29 18:43:40 PDT 2012


The branch, master has been updated
       via  7bfad250feb5f1acc10b7f4b98b0efdd14c52be5 (commit)
      from  2262a7d8fce9b3353a74b77888421618f8a2b484 (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 7bfad250feb5f1acc10b7f4b98b0efdd14c52be5
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue May 29 18:43:39 2012 -0700

    missing file from #17579

diff --git a/httemplate/view/cust_main/custom_content.html b/httemplate/view/cust_main/custom_content.html
new file mode 100644
index 0000000..dd3d1f0
--- /dev/null
+++ b/httemplate/view/cust_main/custom_content.html
@@ -0,0 +1,31 @@
+% foreach my $item (@content) {
+%
+%   if ( $item =~ /^\s*$/ ) {
+      <BR>
+%     next;
+%   }
+%
+%   if ( $items{$item} ) {
+      <& "custom_content/$item.html", $cust_main &>
+%   } else {
+      Unknown item <% $item |h %><BR>
+%   }
+% }
+<%init>
+
+my($cust_main) = @_;
+
+my $conf = new FS::Conf;
+
+my @content = $conf->config('cust_main-custom_content');
+
+my %items = map { $_=>1 } qw(
+  small_custview
+  birthdate
+  spouse_birthdate
+  svc_acct
+  svc_phone
+  svc_hardware
+);
+
+</%init>

-----------------------------------------------------------------------

Summary of changes:
 httemplate/view/cust_main/custom_content.html |   31 +++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)
 create mode 100644 httemplate/view/cust_main/custom_content.html




More information about the freeside-commits mailing list