X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fpart_export.cgi;h=3820931167d00f6e1e738ac0c94536dc95f87e59;hp=0e53e29d0b58a91ace18e83a90aee346d610b5fb;hb=f715c23517292a11330ab241fb13221fd89ffc37;hpb=3acf33a87b4e8ebaac08652177d79b22721e2690 diff --git a/httemplate/edit/part_export.cgi b/httemplate/edit/part_export.cgi index 0e53e29d0..382093116 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 . @@ -283,6 +287,17 @@ my $widget = new HTML::Widgets::SelectLayers( $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 .= '';