diff options
| author | Mark Wells <mark@freeside.biz> | 2012-11-30 17:38:45 -0800 |
|---|---|---|
| committer | Mark Wells <mark@freeside.biz> | 2012-11-30 17:38:45 -0800 |
| commit | b3f8d200be3833b4f60ceae973f2e76d57e0b3cb (patch) | |
| tree | ea03b5fd6a6e7d963e24050598ee814ff02f0ce8 /httemplate/edit/part_export.cgi | |
| parent | 88ee94c8cbe28332a40c3d2ca3f84f3e14867a5b (diff) | |
broadband_snmp export: better MIB selection, #16588
Diffstat (limited to 'httemplate/edit/part_export.cgi')
| -rw-r--r-- | httemplate/edit/part_export.cgi | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/httemplate/edit/part_export.cgi b/httemplate/edit/part_export.cgi index d7219b74a..e15271656 100644 --- a/httemplate/edit/part_export.cgi +++ b/httemplate/edit/part_export.cgi @@ -68,6 +68,15 @@ my $widget = new HTML::Widgets::SelectLayers( 'html_between' => "</TD></TR></TABLE>\n", 'layer_callback' => sub { my $layer = shift; + # create 'config_element' to generate the whole layer with a Mason component + if ( my $include = $exports->{$layer}{config_element} ) { + # might need to adjust the scope of this at some point + return $m->scomp($include, + part_export => $part_export, + layer => $layer, + export_info => $exports->{$layer} + ); + } my $html = qq!<INPUT TYPE="hidden" NAME="exporttype" VALUE="$layer">!. ntable("#cccccc",2); |
