projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git]
/
httemplate
/
browse
/
tower.html
diff --git
a/httemplate/browse/tower.html
b/httemplate/browse/tower.html
index
7f096a7
..
e2f9fd0
100644
(file)
--- a/
httemplate/browse/tower.html
+++ b/
httemplate/browse/tower.html
@@
-8,12
+8,13
@@
'count_query' => 'SELECT COUNT(*) FROM tower',
'disableable' => 1,
'disabled_statuspos' => 1,
'count_query' => 'SELECT COUNT(*) FROM tower',
'disableable' => 1,
'disabled_statuspos' => 1,
- 'header' => [ 'Name', '
Sectors', 'Coordinates'
],
+ 'header' => [ 'Name', '
Location', 'Sectors',
],
'fields' => [ $tower_sub,
'fields' => [ $tower_sub,
- $sector_sub,
$coord_sub,
$coord_sub,
+ $sector_sub,
],
'links' => [ ],
],
'links' => [ ],
+ 'cell_style' => [ $tagdesc_style ],
)
%>
<%init>
)
%>
<%init>
@@
-21,6
+22,9
@@
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+#false laziness w/ browse/part_tag.html
+my $tagdesc_style = sub { 'background-color:#'.shift->color };
+
my $num_svc_links = sub {
my ($query_string, $sectors) = @_;
return if !$sectors;
my $num_svc_links = sub {
my ($query_string, $sectors) = @_;
return if !$sectors;
@@
-57,7
+61,12
@@
my $coord_sub = sub {
[
[
[
[
- { 'data' => "Latitude: " . $tower->latitude . "<br>Longitude: " . $tower->longitude, },
+ { 'data' => "Latitude: ". $tower->latitude.
+ "<br>Longitude: ". $tower->longitude.
+ "<br>Altitude: ". $tower->altitude.
+ "<br>Height: ". $tower->height.
+ "<br>Veg. height: ". $tower->veg_height,
+ },
{ 'data' => $coords, 'link' => "Coordinates", },
],
]
{ 'data' => $coords, 'link' => "Coordinates", },
],
]
@@
-70,7
+79,7
@@
my $tower_sub = sub {
);
[ #rows
[
);
[ #rows
[
- { 'data' => $tower->towername, },
+ { 'data' => $tower->towername
. ' '
, },
{ 'data' => ' (edit) ', size => '-1',
'link' => $p.'edit/tower.html?' . $tower->towernum },
],
{ 'data' => ' (edit) ', size => '-1',
'link' => $p.'edit/tower.html?' . $tower->towernum },
],
@@
-89,7
+98,7
@@
my $sector_sub = sub {
my $sectornum = $sector->sectornum;
[
{
my $sectornum = $sector->sectornum;
[
{
- 'data' => $sector->sectorname,
+ 'data' => $sector->sectorname
. ' '
,
'link' => ( $sector->ip_addr ? 'http://'. $sector->ip_addr : '' ),
},
'link' => ( $sector->ip_addr ? 'http://'. $sector->ip_addr : '' ),
},