X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fpart_export.cgi;h=f6ec208be94a548d5398f2a6f633c4de882ef566;hb=0c9c9e95f2f32e7d55dd53f2903c21eb8ce7af6b;hp=0e53e29d0b58a91ace18e83a90aee346d610b5fb;hpb=e3503e19a5a6c876f410903a3946dd9f1597aa46;p=freeside.git
diff --git a/httemplate/edit/part_export.cgi b/httemplate/edit/part_export.cgi
index 0e53e29d0..f6ec208be 100644
--- a/httemplate/edit/part_export.cgi
+++ b/httemplate/edit/part_export.cgi
@@ -183,6 +183,10 @@ my $widget = new HTML::Widgets::SelectLayers(
? $optinfo->{default}
: ''
);
+
+ #handle these with post_config_element
+ next if $type eq 'custom';
+
if ( $type eq 'title' ) {
$html .= qq!
! .
$label .
@@ -281,8 +285,38 @@ my $widget = new HTML::Widgets::SelectLayers(
$html .= ' ';
}
+ $html .= 'Do not suspend services ' .
+ ' no_suspend eq 'Y';
+ $html .= '> ';
+
+ foreach my $script ( keys %{$exports->{$layer}{scripts}} ) {
+ $html .= '' .
+ include('/elements/progress-init.html',
+ $part_export->exporttype,
+ [ $script.'_exportnum', $script.'_script' ],
+ rooturl().'view/svc_export/run_script.cgi',
+ rooturl().'edit/part_export.cgi?'.$part_export->{Hash}->{exportnum},
+ $script,
+ ) .
+ '
+
+ '.$exports->{$layer}{scripts}{$script}->{html_label}.' ';
+ }
+
$html .= '';
+ # false laziness with config_element above
+ # create 'post_config_element' to generate the whole layer with a Mason component
+ if ( my $include = $exports->{$layer}{post_config_element} ) {
+ # might need to adjust the scope of this at some point
+ $html .= $m->scomp($include,
+ part_export => $part_export,
+ layer => $layer,
+ export_info => $exports->{$layer}
+ );
+ }
+
$html .= ' ';