DSL status pulling, RT#13656
[freeside.git] / httemplate / view / svc_Status.html
diff --git a/httemplate/view/svc_Status.html b/httemplate/view/svc_Status.html
new file mode 100644 (file)
index 0000000..94fa1e4
--- /dev/null
@@ -0,0 +1,22 @@
+<& /elements/header-popup.html,
+     {
+       'title'   => '',
+       'nobr'    => 0,  #1 for no <BR><BR> after the title
+     }
+&>
+% foreach my $export ( grep $_->can('export_getstatus'), $part_svc->part_export ) {
+%   my $html = '';
+%   my %hash = ();
+%   $export->export_getstatus( $svc_x, \$html, \%hash );
+<% $html %>
+% }
+<%init>
+
+$cgi->param('svcnum') =~ /^(\d+)$/ or die 'illegal svcnum';
+my $svcnum = $1;
+
+my $cust_svc = qsearchs( 'cust_svc', { 'svcnum' => $svcnum } );
+die "Unknown svcnum" unless $cust_svc;
+my $svc_x = $cust_svc->svc_x;
+
+</%init>