2 'name_singular' => 'deployment zone',
3 'table' => 'deploy_zone',
4 'post_url' => popurl(1).'process/deploy_zone-mobile.html',
6 'description' => 'Description',
8 'dbaname' => 'Business name (if different from agent)',
9 'technology' => 'Technology',
10 'spectrum' => 'Spectrum',
11 'is_broadband', => 'Broadband Internet',
12 'adv_speed_up' => 'Upstream',
13 'adv_speed_down' => 'Downstream',
14 'is_voice', => 'Voice',
16 'active_date' => 'Active since',
19 { field => 'zonetype',
24 { field => 'active_date',
28 { field => 'agentnum',
29 type => 'select-agent',
31 viewall_right => 'Edit FCC report configuration for all agents',
34 { field => 'technology',
36 options => $media_types->{'Mobile Wireless'},
37 labels => $technology_labels,
39 { field => 'spectrum',
41 options => [ keys %$spectrum_labels ],
42 labels => $spectrum_labels,
44 { field => 'is_broadband', type => 'checkbox', value=>'Y' },
45 { field => 'is_voice', type => 'checkbox', value=>'Y' },
46 { type => 'tablebreak-tr-title',
47 value => 'Advertised minimum speed (Mbps)' },
50 { type => 'tablebreak-tr-title', value => 'Footprint'},
51 { field => 'vertexnum',
52 type => 'deploy_zone_vertex',
53 o2m_table => 'deploy_zone_vertex',
55 m2_error_callback => $m2_error_callback,
61 my $curuser = $FS::CurrentUser::CurrentUser;
63 unless $curuser->access_right([
64 'Edit FCC report configuration',
65 'Edit FCC report configuration for all agents',
68 my $technology_labels = FS::part_pkg_fcc_option->technology_labels;
69 my $spectrum_labels = FS::part_pkg_fcc_option->spectrum_labels;
70 my $media_types = FS::part_pkg_fcc_option->media_types;
72 my $m2_error_callback = sub {
73 my ($cgi, $deploy_zone) = @_;
74 my @vertexnums = sort { $a <=> $b } grep {
75 /^vertexnum\d+/ and length($cgi->param($_.'_latitude'))
81 FS::deploy_zone_vertex->new({
82 vertexnum => scalar($cgi->param($k)),
83 zonenum => $deploy_zone->zonenum,
84 latitude => scalar($cgi->param($k.'_latitude')),
85 longitude => scalar($cgi->param($k.'_longitude')),