From f715c23517292a11330ab241fb13221fd89ffc37 Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Thu, 30 Apr 2015 17:28:36 -0500 Subject: RT#18834: Cacti integration [added graph generation] --- httemplate/edit/part_export.cgi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'httemplate/edit/part_export.cgi') 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 .= ''; -- cgit v1.2.1