From 943f3ff4145a0ce2ef946aba3f0ba4aa495f224e Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Fri, 11 Mar 2016 18:56:59 -0800 Subject: move misc/cust_pkg_usageprice.html to elements/table-cust_pkg_usageprice.html, RT#33410 --- httemplate/elements/table-cust_pkg_usageprice.html | 125 +++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 httemplate/elements/table-cust_pkg_usageprice.html (limited to 'httemplate/elements/table-cust_pkg_usageprice.html') diff --git a/httemplate/elements/table-cust_pkg_usageprice.html b/httemplate/elements/table-cust_pkg_usageprice.html new file mode 100644 index 000000000..b023e81d1 --- /dev/null +++ b/httemplate/elements/table-cust_pkg_usageprice.html @@ -0,0 +1,125 @@ +<%doc> +Sets up the xmlhttp, javascript and initial (empty) table for selecting cust_pkg_usageprice. +Available values are based on pkgpart, and can be updated when changing pkgpart +by passing the new pkgpart to the following javascript: + + usageprice_pkg_changed( pkgpart, pkgnum ) + +The pkgnum input is optional, and will be used to set initial selected values. + +If pkgpart is passed as an option to this element, will run usageprice_pkg_changed +once to initialize table; pkgnum can be passed as an option along with this. + +You can disable usageprice selection temporarily (remove the fields from the form) +with the javascript usageprice_disable(1), and restore it with usageprice_disable(0,pkgnum). +While disabled, calling usageprice_pkg_changed will have no effect. + + +<& /elements/xmlhttp.html, + 'url' => $p.'misc/xmlhttp-part_pkg_usageprice.html', + 'subs' => [ 'get_part_pkg_usageprice' ], +&> + + + + +
+ + + + +<%init> +my %opt = @_; + + + -- cgit v1.2.1