diff options
Diffstat (limited to 'httemplate/misc/part_pkg_fcc_options.html')
-rw-r--r-- | httemplate/misc/part_pkg_fcc_options.html | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/httemplate/misc/part_pkg_fcc_options.html b/httemplate/misc/part_pkg_fcc_options.html index f74328446..27b45e003 100644 --- a/httemplate/misc/part_pkg_fcc_options.html +++ b/httemplate/misc/part_pkg_fcc_options.html @@ -90,10 +90,21 @@ <& .checkbox, 'is_voip' &> <LABEL FOR="is_voip">This package provides VoIP telephone service</LABEL> <FIELDSET ID="voip"> + <LABEL FOR="voip_sessions">Number of simultaneous calls possible</LABEL> + <INPUT NAME="voip_sessions" ID="voip_sessions"> + <BR> <& .checkbox, 'voip_lastmile' &> <LABEL FOR="voip_lastmile">Do you also provide last-mile connectivity?</LABEL> </FIELDSET> </P> + <P> + <& .checkbox, 'is_mobile' &> + <LABEL FOR="is_mobile">This package provides mobile telephone service</LABEL> + <FIELDSET ID="mobile"> + <LABEL FOR="mobile_direct">Do you bill the customer directly?</LABEL> + <& .checkbox, 'mobile_direct' &> + </FIELDSET> + </P> <DIV WIDTH="100%" STYLE="text-align:center"> <INPUT TYPE="submit" VALUE="Save changes"> </DIV> @@ -145,7 +156,7 @@ function save_changes() { } parent_input.value = JSON.stringify(data); // update the display - parent.show_fcc_options(); + parent.show_fcc_options(parent_input.id); parent.cClick(); //overlib } @@ -166,7 +177,7 @@ function enable_fieldset(fieldset_id) { // set up all event handlers addEventListener(form, 'submit', save_changes); - var sections = [ 'broadband', 'phone', 'voip' ]; + var sections = [ 'broadband', 'phone', 'voip', 'mobile' ]; for(var i = 0; i < sections.length; i++) { var toggle = form.elements['is_'+sections[i]]; addEventListener(toggle, 'change', enable_fieldset(sections[i])); @@ -179,6 +190,11 @@ function enable_fieldset(fieldset_id) { form.elements['phone1'].disabled = (this.value == ''); } ); + addEventListener(form.elements['is_phone'], 'change', + function() { + form.elements['phone_wholesale'].dispatchEvent( new Event('change') ); + } + ); // load data from the parent form and trigger handlers for(var i = 0; i < form.elements.length; i++) { |