name_singular => 'tower',
table => 'tower',
viewall_dir => 'browse',
+ html_init => include('/elements/mapselect.html'),
fields => [ 'towername',
{ field=>'disabled', type=>'checkbox', value=>'Y', },
{ field=>'color', type=>'pickcolor' },
'altitude',
'height',
'veg_height',
- { field => 'sectornum',
- type => 'tower_sector',
- o2m_table => 'tower_sector',
- m2_label => 'Sector',
- m2_error_callback => $m2_error_callback,
+ 'up_rate_limit',
+ 'down_rate_limit',
+# { field => 'sectornum',
+# type => 'tower_sector',
+# o2m_table => 'tower_sector',
+# m2_label => 'Sector',
+# m2_error_callback => $m2_error_callback,
+# },
+ { type => 'tower_sectors',
+ field => 'sectornum',
+ # does its own o2m-thing
},
],
labels => { 'towernum' => 'Tower',
'default_ip_addr' => 'Tower IP address',
'latitude' => 'Latitude',
'longitude' => 'Longitude',
- 'altitude' => 'Altitude',
- 'height' => 'Height',
- 'veg_height' => 'Vegetation height',
+ 'altitude' => 'Altitude (feet)',
+ 'height' => 'Tower height (feet)',
+ 'veg_height' => 'Vegetation height (feet)',
'color' => 'Color',
+ 'up_rate_limit' => 'Up Rate Limit(Kbps)',
+ 'down_rate_limit' => 'Down Rate Limit(Kbps)',
},
&>
<%init>
my $m2_error_callback = sub { # reconstruct the list
my ($cgi, $object) = @_;
- my @fields = qw( sectorname ip_addr height freq_mhz direction width range );
+ my @fields = qw(
+ sectorname ip_addr height freq_mhz direction width tilt v_width db_high db_low sector_range up_rate_limit down_rate_limit
+ );
+
map {
my $k = $_;
new FS::tower_sector {