2 'name_singular' => 'deployment zone',
3 'table' => 'deploy_zone',
4 'post_url' => popurl(1).'process/deploy_zone-fixed.html',
5 'viewall_dir' => 'browse',
7 'description' => 'Description',
9 'dbaname' => 'Business name (if different from agent)',
10 'technology' => 'Technology',
11 'adv_speed_up' => 'Upstream',
12 'adv_speed_down' => 'Downstream',
13 'cir_speed_up' => 'Upstream',
14 'cir_speed_down' => 'Downstream',
15 'is_consumer' => 'Consumer/mass market',
16 'is_business' => 'Business/government',
18 'active_date' => 'Active since',
19 'file' => 'Import blocks from text file',
20 'censusyear' => 'as census year',
23 { field => 'zonetype',
27 { field => 'is_broadband',
32 { field => 'active_date',
36 { field => 'agentnum',
37 type => 'select-agent',
39 viewall_right => 'Edit FCC report configuration for all agents',
42 { field => 'technology',
44 options => [ map { @$_ } values(%$media_types) ],
45 labels => $technology_labels,
47 { field => 'is_consumer', type => 'checkbox', value=>'Y' },
48 { field => 'is_business', type => 'checkbox', value=>'Y' },
49 { type => 'tablebreak-tr-title',
50 value => 'Advertised maximum speed (Mbps)' },
53 { type => 'tablebreak-tr-title',
54 value => 'Contractually guaranteed speed (Mbps)' },
57 { type => 'tablebreak-tr-title', value => 'Footprint'},
58 { field => 'vertices',
60 curr_value_callback => sub {
61 my ($cgi, $object) = @_;
62 $cgi->param('vertices') || $object->vertices_json;
66 # { type => 'tablebreak-tr-title', value => 'Census blocks'},
68 # type => 'file-upload',
70 # { field => 'format',
74 # { field => 'censusyear',
76 # options => [ '', qw( 2013 2012 2011 ) ],
79 # { type => 'tablebreak-tr-title', value => '', },
80 # { field => 'blocknum',
81 # type => 'deploy_zone_block',
82 # o2m_table => 'deploy_zone_block',
84 # m2_error_callback => $m2_error_callback,
89 my $curuser = $FS::CurrentUser::CurrentUser;
91 unless $curuser->access_right([
92 'Edit FCC report configuration',
93 'Edit FCC report configuration for all agents',
96 my $technology_labels = FS::part_pkg_fcc_option->technology_labels;
97 my $media_types = FS::part_pkg_fcc_option->media_types;
98 delete $media_types->{'Mobile Wireless'}; # cause this is the fixed zone page
100 #my $m2_error_callback = sub {
101 # my ($cgi, $deploy_zone) = @_;
102 # my @blocknums = grep {
103 # /^blocknum\d+/ and length($cgi->param($_.'_censusblock'))
106 # sort { $a->censusblock <=> $b->censusblock }
109 # FS::deploy_zone_block->new({
110 # blocknum => scalar($cgi->param($k)),
111 # zonenum => $deploy_zone->zonenum,
112 # censusblock => scalar($cgi->param($k.'_censusblock')),
113 # censusyear => scalar($cgi->param($k.'_censusyear')),