X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_477.html;h=a36ac39b843c6df36caf007683ed348e3889ffa3;hb=c1fa2b017e4f7d79e47e4e2257f17cf8a3d0c84b;hp=2b5111209323b0ad344254d4cbb916f234cde218;hpb=f22b714f2b7a38c8a930d8248ccb32751db82b5e;p=freeside.git diff --git a/httemplate/search/report_477.html b/httemplate/search/report_477.html index 2b5111209..a36ac39b8 100755 --- a/httemplate/search/report_477.html +++ b/httemplate/search/report_477.html @@ -18,35 +18,204 @@ %> <% include( '/elements/tr-select-pkg_class.html', - 'pre_options' => [ '0' => 'all' ], + 'multiple' => 1, 'empty_label' => '(empty class)', ) %> -% if ( scalar( qsearch( 'part_pkg_report_option', { 'disabled' => '' } ) ) ) { -% # the m2 javascript magic in edit/elements/edit.html would be better here + - <% include( '/elements/tr-select-table.html', - 'label' => 'Column report classes', - 'table' => 'part_pkg_report_option', - 'name_col' => 'name', - 'hashref' => { 'disabled' => '' }, - 'element_name' => 'column_option', - 'multiple' => 'multiple', + <% include( '/elements/tr-checkbox.html', + 'label' => 'Enable part IA?', + 'field' => 'part', + 'value' => 'IA', + 'onchange' => 'partchange(this)', ) %> - <% include( '/elements/tr-select-table.html', - 'label' => 'Row report classes', - 'table' => 'part_pkg_report_option', - 'name_col' => 'name', - 'hashref' => { 'disabled' => '' }, - 'element_name' => 'row_option', - 'multiple' => 'multiple', + Part IA + + + +
Download speeds + +% my $i = 0; +% foreach my $speed ( @FS::Report::FCC_477::download ) { + + + + +% $i++ +% } +
<% $speed %> + <% include( '/elements/select-table.html', + 'table' => 'part_pkg_report_option', + 'name_col' => 'name', + 'hashref' => { 'disabled' => '' }, + 'element_name' => 'part1_column_option', + 'disable_empty' => 1, + 'curr_value' => + FS::Report::FCC_477::restore_fcc477map("part1_column_option_$i"), + ) + %> +
Upload speeds + +% $i = 0; +% foreach my $speed ( @FS::Report::FCC_477::upload ) { + + + + +% $i++ +% } +
<% $speed %> + <% include( '/elements/select-table.html', + 'table' => 'part_pkg_report_option', + 'name_col' => 'name', + 'hashref' => { 'disabled' => '' }, + 'element_name' => 'part1_row_option', + 'disable_empty' => 1, + 'curr_value' => + FS::Report::FCC_477::restore_fcc477map("part1_row_option_$i"), + ) + %> +
Technologies + +% $i = 0; +% foreach my $tech ( @FS::Report::FCC_477::technology ) { + + + + +% $i++ +% } +
<% $tech %> + <% include( '/elements/select-table.html', + 'table' => 'part_pkg_report_option', + 'name_col' => 'name', + 'hashref' => { 'disabled' => '' }, + 'element_name' => "part1_technology_option_$i", + 'empty_label' => '(omit)', + 'curr_value' => + FS::Report::FCC_477::restore_fcc477map("part1_technology_option_$i"), + ) + %> +
+ + <% include( '/elements/tr-checkbox.html', + 'label' => 'Enable part IIA?', + 'field' => 'part', + 'value' => 'IIA', + 'onchange' => 'partchange(this)', + ) + %> + + Part IIA +% $i = 0; +% foreach my $option ( @FS::Report::FCC_477::part2aoption ) { + + + + +% $i++ +% } +
<% $option %> + <% include( '/elements/select-table.html', + 'table' => 'part_pkg_report_option', + 'name_col' => 'name', + 'hashref' => { 'disabled' => '' }, + 'element_name' => 'part2a_row_option', + 'curr_value' => + FS::Report::FCC_477::restore_fcc477map("part2a_row_option_$i"), + ) + %> +
+ + <% include( '/elements/tr-checkbox.html', + 'label' => 'Enable part IIB?', + 'field' => 'part', + 'value' => 'IIB', + 'onchange' => 'partchange(this)', ) %> + Part IIB +% $i = 0; +% foreach my $option ( @FS::Report::FCC_477::part2boption ) { + + + + +% $i++ % } +
<% $option %> + <% include( '/elements/select-table.html', + 'table' => 'part_pkg_report_option', + 'name_col' => 'name', + 'hashref' => { 'disabled' => '' }, + 'element_name' => 'part2b_row_option', + 'curr_value' => + FS::Report::FCC_477::restore_fcc477map("part2b_row_option_$i"), + ) + %> +
+ + <% include( '/elements/tr-checkbox.html', + 'label' => 'Enable part IV?', + 'field' => 'part', + 'value' => 'IV', + 'onchange' => 'partchange(this)', + ) + %> + + Part IV + <% include( '/elements/tr-textarea.html', + 'label' => 'Explanatory notes', + 'id' => 'partIV', + 'field' => 'notes', + 'rows' => 15, + 'cols' => 80, + ) + %> +
+ + <% include( '/elements/tr-checkbox.html', + 'label' => 'Enable part V?', + 'field' => 'part', + 'value' => 'V', + 'onchange' => 'partchange(this)', + ) + %> + + 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', + 'value' => 'VI_census', + ) + %>