[freeside-commits] freeside/httemplate/browse tower.html,NONE,1.1
Ivan,,,
ivan at wavetail.420.am
Fri Dec 9 16:36:49 PST 2011
Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail.420.am:/tmp/cvs-serv4959/httemplate/browse
Added Files:
tower.html
Log Message:
tower tracking, RT#15538
--- NEW FILE: tower.html ---
<% include( 'elements/browse.html',
'title' => 'Towers',
'name' => 'towers',
'menubar' => [ 'Add a new tower' =>
$p.'edit/tower.html',
],
'query' => { 'table' => 'tower', },
'count_query' => 'SELECT COUNT(*) FROM tower',
'disableable' => 1,
'disabled_statuspos' => 1,
'header' => [ 'Name', 'Sectors', ],
'fields' => [ 'towername',
$sector_sub,
],
'links' => [ $link,
'',
],
)
%>
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
my $link = [ "${p}edit/tower.html?", 'towernum' ];
my $sector_sub = sub {
my $tower = shift;
[ map {
[
{ 'data' => $_->sectorname,
'link' => ( $_->ip_addr ? 'http://'. $_->ip_addr : '' ),
},
],
}
$tower->tower_sector
];
};
</%init>
More information about the freeside-commits
mailing list