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'",
22 fields => [ 'zonenum',
24 sub { my $self = shift;
25 $tech_label->{$self->technology} },
26 sub { my $self = shift;
28 $self->is_consumer ? 'consumer' : (),
29 $self->is_business ? 'business' : ()
32 sub { my $self = shift;
34 $self->adv_speed_down,
38 sub { my $self = shift;
40 $self->cir_speed_down,
44 sub { my $self = shift;
45 FS::deploy_zone_block->count('zonenum = '.$self->zonenum)
48 sort_fields => [ 'zonenum',
51 '(is_consumer is not null, is_business is not null)',
52 '(adv_speed_down, adv_speed_up)',
53 '(cir_speed_down, cir_speed_up)',
55 links => [ '', $link_fixed, ],
58 disable_maxselect => 1,
61 <P><FONT SIZE="+1"><B>Mobile Zones</B></FONT></P>
62 <& elements/browse.html,
63 name_singular => 'zone',
64 query => { table => 'deploy_zone',
65 hashref => { zonetype => 'P' },
67 count_query => "SELECT COUNT(*) FROM deploy_zone WHERE zonetype = 'P'",
75 'Vertices', # number of vertices? not so useful
77 fields => [ 'zonenum',
79 sub { my $self = shift;
80 $tech_label->{$self->technology} },
81 sub { my $self = shift;
82 $spec_label->{$self->spectrum} },
83 sub { my $self = shift;
85 $self->is_voice ? 'voice' : (),
86 $self->is_broadband ? 'broadband' : (),
89 sub { my $self = shift;
91 $self->adv_speed_down,
95 sub { my $self = shift;
96 FS::deploy_zone_vertex->count('zonenum = '.$self->zonenum)
99 sort_fields => [ 'zonenum',
103 '(is_voice is not null, is_broadband is not null)',
104 '(adv_speed_down, adv_speed_up)',
106 links => [ '', $link_mobile, ],
109 disable_maxselect => 1,
113 <& /elements/footer.html &>
115 my $curuser = $FS::CurrentUser::CurrentUser;
116 my $acl_edit = $curuser->access_right('Edit FCC report configuration');
117 my $acl_edit_global = $curuser->access_right('Edit FCC report configuration for all agents');
119 unless $acl_edit or $acl_edit_global;
121 my $link_fixed = [ $p.'edit/deploy_zone-fixed.html?', 'zonenum' ];
122 my $link_mobile= [ $p.'edit/deploy_zone-mobile.html?', 'zonenum' ];
124 my $tech_label = FS::part_pkg_fcc_option->technology_labels;
125 my $spec_label = FS::part_pkg_fcc_option->spectrum_labels;