From 67569e1bc81a50cc680d14a6fcf7543247c3c8b2 Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Tue, 15 Dec 2015 20:31:53 -0600 Subject: RT#39115: View SNMP info on svc_broadband service [got rid of dialog, displays inline] --- httemplate/elements/broadband_snmp_get-dialog.html | 68 ---------------------- httemplate/elements/broadband_snmp_get.html | 56 ++++++++++++++++++ 2 files changed, 56 insertions(+), 68 deletions(-) delete mode 100644 httemplate/elements/broadband_snmp_get-dialog.html create mode 100644 httemplate/elements/broadband_snmp_get.html (limited to 'httemplate/elements') diff --git a/httemplate/elements/broadband_snmp_get-dialog.html b/httemplate/elements/broadband_snmp_get-dialog.html deleted file mode 100644 index 61bb9c763..000000000 --- a/httemplate/elements/broadband_snmp_get-dialog.html +++ /dev/null @@ -1,68 +0,0 @@ -<%doc> -Adds a link to display snmp statistics based on broadband_snmp_get export config. -Performs necessary checks such that, if no such exports are configured for the passed -service, returns blank space (ie may be safely invoked even if no exports are configured.) - - <& '/elements/broadband_snmp_get-dialog.html', svc => $svc &> - - -% if (@snmp) { -<& '/elements/xmlhttp.html', - 'url' => $fsurl.'misc/xmlhttp-broadband_snmp_get.cgi', - 'subs' => [ 'broadband_snmp_get_request' ] - &> - - - -(snmp) - - -% } #if @snmp -<%init> -my(%opt) = @_; -my @snmp = $opt{'svc'}->cust_svc->part_svc->part_export('broadband_snmp_get'); -my $svcnum = $opt{'svc'}->svcnum; - diff --git a/httemplate/elements/broadband_snmp_get.html b/httemplate/elements/broadband_snmp_get.html new file mode 100644 index 000000000..d4cc4e49d --- /dev/null +++ b/httemplate/elements/broadband_snmp_get.html @@ -0,0 +1,56 @@ +<%doc> +Adds a table to display dynamically loaded snmp statistics based on broadband_snmp_get +export config. Performs necessary checks such that, if no such exports are configured +for the passed service, returns blank space (ie may be safely invoked even if no exports +are configured.) + + <& '/elements/broadband_snmp_get.html', svc => $svc &> + + +% if (@snmp) { +<& '/elements/xmlhttp.html', + 'url' => $fsurl.'misc/xmlhttp-broadband_snmp_get.cgi', + 'subs' => [ 'broadband_snmp_get_request' ] + &> +
+ +% } #if @snmp +<%init> +my(%opt) = @_; +my @snmp = $opt{'svc'}->cust_svc->part_svc->part_export('broadband_snmp_get'); +my $svcnum = $opt{'svc'}->svcnum; + -- cgit v1.2.1