X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Ftower.html;h=dae5d5a89b3cf47450fb1f64aa67910f3ca93308;hb=227953e3a6ee41683ea06b3f440946d4007898c3;hp=00c9adde1f7db09a0f453e749029d685841f3112;hpb=df1ebf662a9fc3f89503036e0dbf6833c1b95f9e;p=freeside.git diff --git a/httemplate/edit/tower.html b/httemplate/edit/tower.html index 00c9adde1..dae5d5a89 100644 --- a/httemplate/edit/tower.html +++ b/httemplate/edit/tower.html @@ -12,11 +12,15 @@ 'altitude', 'height', 'veg_height', - { field => 'sectornum', - type => 'tower_sector', - o2m_table => 'tower_sector', - m2_label => 'Sector', - m2_error_callback => $m2_error_callback, +# { 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', @@ -26,9 +30,9 @@ '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', }, &> @@ -37,7 +41,10 @@ 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 + ); + map { my $k = $_; new FS::tower_sector {