1 <& /elements/header.html, {
2 'title' => 'Sector coverage maps',
21 border-bottom: 1px solid #999999;
31 <table class="grid" style="border-spacing: 0px">
34 <th>Tower / sector</th>
40 % foreach my $sector (@sectors) {
41 % my $sectornum = $sector->sectornum;
42 <tr class="row<% $row % 2 %>">
44 <a href="<% $fsurl %>edit/tower.html?<% $sector->towernum |h %>">
45 <% $sector->description |h %>
49 % my @need_fields = $sector->need_fields_for_coverage;
50 % if ( @need_fields ) {
53 <% join('<br>', @need_fields) %>
56 <td colspan="2" style="text-align: center">
57 % my $text = 'Create map';
58 % if ( length($sector->image) > 0 ) {
59 % $text = 'Reprocess';
61 <form name="create_<% $sectornum |h %>">
62 <input type="hidden" name="sectornum" value="<% $sectornum |h %>">
63 <& /elements/progress-init.html,
66 $fsurl.'misc/sector-create_map.html',
67 { 'message' => 'Map generated',
68 'url' => $cgi->self_url },
71 <a class="createmap" href="#" onclick="sector<% $sectornum %>process()">
78 % if ( length($sector->image) > 0 ) {
79 <a class="viewmap" href="<% $fsurl %>search/svc_broadband-map.html?sectornum=<% $sectornum %>">
80 View map—<% $sector->margin %>dB margin
89 <& /elements/footer.html &>
93 unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
96 table => 'tower_sector',
97 select => 'tower_sector.*,
98 tower.latitude, tower.longitude, tower.color, tower.towername',
99 extra_sql => ' WHERE tower.disabled is null',
100 addl_from => ' JOIN tower USING (towernum)',
101 order_by => ' ORDER BY towername, sectorname',
104 my @sectors = qsearch($query);