From 7bfad250feb5f1acc10b7f4b98b0efdd14c52be5 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 29 May 2012 18:43:39 -0700 Subject: [PATCH] missing file from #17579 --- httemplate/view/cust_main/custom_content.html | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 httemplate/view/cust_main/custom_content.html diff --git a/httemplate/view/cust_main/custom_content.html b/httemplate/view/cust_main/custom_content.html new file mode 100644 index 000000000..dd3d1f0d4 --- /dev/null +++ b/httemplate/view/cust_main/custom_content.html @@ -0,0 +1,31 @@ +% foreach my $item (@content) { +% +% if ( $item =~ /^\s*$/ ) { +
+% next; +% } +% +% if ( $items{$item} ) { + <& "custom_content/$item.html", $cust_main &> +% } else { + Unknown item <% $item |h %>
+% } +% } +<%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 +); + + -- 2.11.0