X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_477.html;h=c9d97c5eb2301feba4d988690c80f8a0702dcf47;hb=0948b20054aebe11ee24718556fd17f33c13699a;hp=d34fb8f96a744a25d62d585e87a492b30d5b98cd;hpb=1d15c6930650f2cceb13f7ae9da4acea5213643f;p=freeside.git diff --git a/httemplate/search/report_477.html b/httemplate/search/report_477.html index d34fb8f96..c9d97c5eb 100755 --- a/httemplate/search/report_477.html +++ b/httemplate/search/report_477.html @@ -33,13 +33,23 @@ element.style.display = 'none'; } } + function toggleV() { + document.getElementById('enableV').disabled = + ! (document.getElementById('enableIIA').checked || + document.getElementById('enableIIB').checked); + } + function toggleVI() { + document.getElementById('enableVI').disabled = + ! document.getElementById('enableIA').checked; + } <% include( '/elements/tr-checkbox.html', 'label' => 'Enable part IA?', 'field' => 'part', + 'id' => 'enableIA', 'value' => 'IA', - 'onchange' => 'partchange(this)', + 'onchange' => 'partchange(this); toggleVI();', ) %> @@ -115,12 +125,14 @@ <% include( '/elements/tr-checkbox.html', 'label' => 'Enable part IIA?', 'field' => 'part', + 'id' => 'enableIIA', 'value' => 'IIA', - 'onchange' => 'partchange(this)', + 'onchange' => 'partchange(this); toggleV();', ) %> Part IIA +% $i = 0; % foreach my $option ( @FS::Report::FCC_477::part2aoption ) { @@ -130,22 +142,27 @@ 'name_col' => 'name', 'hashref' => { 'disabled' => '' }, 'element_name' => 'part2a_row_option', + 'curr_value' => + FS::Report::FCC_477::restore_fcc477map("part2a_row_option_$i"), ) %> +% $i++ % }
<% $option %>
<% include( '/elements/tr-checkbox.html', 'label' => 'Enable part IIB?', 'field' => 'part', + 'id' => 'enableIIB', 'value' => 'IIB', - 'onchange' => 'partchange(this)', + 'onchange' => 'partchange(this); toggleV();', ) %> Part IIB +% $i = 0; % foreach my $option ( @FS::Report::FCC_477::part2boption ) { @@ -155,16 +172,20 @@ 'name_col' => 'name', 'hashref' => { 'disabled' => '' }, 'element_name' => 'part2b_row_option', + 'curr_value' => + FS::Report::FCC_477::restore_fcc477map("part2b_row_option_$i"), ) %> +% $i++ % }
<% $option %>
<% include( '/elements/tr-checkbox.html', 'label' => 'Enable part IV?', 'field' => 'part', + 'id' => 'enableIV', #unused 'value' => 'IV', 'onchange' => 'partchange(this)', ) @@ -185,16 +206,39 @@ 'label' => 'Enable part V?', 'field' => 'part', 'value' => 'V', + 'id' => 'enableV', + 'onchange' => 'partchange(this)', + 'postfix' => + ' (requires Part IIA or IIB)', ) %> + + Part V + + <% include( '/elements/select-table.html', + 'table' => 'part_pkg_report_option', + 'name_col' => 'name', + 'hashref' => { 'disabled' => '' }, + 'element_name' => 'partv_report_option', + ) + %> + + + <% include( '/elements/tr-checkbox.html', 'label' => 'Enable part VI?', 'field' => 'part', + 'id' => 'enableVI', 'value' => 'VI_census', + 'postfix' => + ' (requires part IA)', ) %> - +