missing file from #17579
authorIvan Kohler <ivan@freeside.biz>
Wed, 30 May 2012 01:43:39 +0000 (18:43 -0700)
committerIvan Kohler <ivan@freeside.biz>
Wed, 30 May 2012 01:43:39 +0000 (18:43 -0700)
httemplate/view/cust_main/custom_content.html [new file with mode: 0644]

diff --git a/httemplate/view/cust_main/custom_content.html b/httemplate/view/cust_main/custom_content.html
new file mode 100644 (file)
index 0000000..dd3d1f0
--- /dev/null
@@ -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>