1 <& /elements/header.html, 'Deployment zones' &>
2 <& /elements/menubar.html,
3 'Add a new fixed broadband zone' => $p.'edit/deploy_zone-fixed.html',
4 'Add a new mobile zone' => $p.'edit/deploy_zone-mobile.html',
6 <P><FONT SIZE="+1"><B>Fixed Broadband Zones</B></FONT></P>
7 <& elements/browse.html,
8 name_singular => 'zone',
9 query => { table => 'deploy_zone',
10 hashref => { zonetype => 'B' },
12 count_query => "SELECT COUNT(*) FROM deploy_zone WHERE zonetype = 'B'",
23 fields => [ 'zonenum',
25 sub { my $self = shift;
26 $tech_label->{$self->technology} },
27 sub { my $self = shift;
29 $self->is_consumer ? 'consumer' : (),
30 $self->is_business ? 'business' : ()
33 sub { my $self = shift;
35 $self->adv_speed_down,
39 sub { my $self = shift;
41 $self->cir_speed_down,
45 sub { my $self = shift;
46 FS::deploy_zone_vertex->count('zonenum = '.$self->zonenum)
48 sub { my $self = shift;
49 FS::deploy_zone_block->count('zonenum = '.$self->zonenum)
52 sort_fields => [ 'zonenum',
55 '(is_consumer is not null, is_business is not null)',
56 '(adv_speed_down, adv_speed_up)',
57 '(cir_speed_down, cir_speed_up)',
59 links => [ $link_fixed, $link_fixed, ],
62 disable_maxselect => 1,
65 <P><FONT SIZE="+1"><B>Mobile Zones</B></FONT></P>
66 <& elements/browse.html,
67 name_singular => 'zone',
68 query => { table => 'deploy_zone',
69 hashref => { zonetype => 'P' },
71 count_query => "SELECT COUNT(*) FROM deploy_zone WHERE zonetype = 'P'",
79 'Vertices', # number of vertices? not so useful
81 fields => [ 'zonenum',
83 sub { my $self = shift;
84 $tech_label->{$self->technology} },
85 sub { my $self = shift;
86 $spec_label->{$self->spectrum} },
87 sub { my $self = shift;
89 $self->is_voice ? 'voice' : (),
90 $self->is_broadband ? 'broadband' : (),
93 sub { my $self = shift;
95 $self->adv_speed_down,
99 sub { my $self = shift;
100 FS::deploy_zone_vertex->count('zonenum = '.$self->zonenum)
103 sort_fields => [ 'zonenum',
107 '(is_voice is not null, is_broadband is not null)',
108 '(adv_speed_down, adv_speed_up)',
110 links => [ '', $link_mobile, ],
113 disable_maxselect => 1,
117 <& /elements/footer.html &>
119 my $curuser = $FS::CurrentUser::CurrentUser;
120 my $acl_edit = $curuser->access_right('Edit FCC report configuration');
121 my $acl_edit_global = $curuser->access_right('Edit FCC report configuration for all agents');
123 unless $acl_edit or $acl_edit_global;
125 my $link_fixed = [ $p.'edit/deploy_zone-fixed.html?', 'zonenum' ];
126 my $link_mobile= [ $p.'edit/deploy_zone-mobile.html?', 'zonenum' ];
128 my $tech_label = FS::part_pkg_fcc_option->technology_labels;
129 my $spec_label = FS::part_pkg_fcc_option->spectrum_labels;