X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ftr-tower_sectors.html;h=106fc76f61b10f5e90ff7b0f91f6dbaa694f3329;hp=4e8f3fb473a8fc9e84f380095a850e408a381bcc;hb=04f53daab621710db56b075e1aaf56e7c52f9ba9;hpb=49d9ea969069430ef3fe23e5b1ac3599e929bb04 diff --git a/httemplate/elements/tr-tower_sectors.html b/httemplate/elements/tr-tower_sectors.html index 4e8f3fb47..106fc76f6 100644 --- a/httemplate/elements/tr-tower_sectors.html +++ b/httemplate/elements/tr-tower_sectors.html @@ -1,3 +1,11 @@ +<%shared> +# kind of a hack... +my ($export) = FS::tower_sector->part_export; +my $antenna_types; # will be an ordered hash +if ($export and $export->can('get_antenna_types')) { + $antenna_types = $export->get_antenna_types; +} + <%init> my %opt = @_; my $tower = $opt{'object'}; @@ -7,8 +15,9 @@ my $cgi = $opt{'cgi'}; my $tabcounter = 0; my @fields = qw( - sectorname ip_addr height freq_mhz direction width tilt v_width db_high - db_low sector_range + sectorname ip_addr height freq_mhz direction width downtilt v_width + db_high db_low sector_range + power line_loss antenna_gain hardware_typenum ); my @sectors; @@ -74,6 +83,11 @@ my $id = $opt{id} || $opt{field} || 'sectornum'; border: none; text-align: left; } + .ui-tabs p { + margin-top: 8px; + margin-bottom: 8px; + } + @@ -216,6 +230,38 @@ $(function() {

+ + + <% emt('dBm') %>
+ + + <% emt('dB antenna gain') %>
+ + + <% emt('dB line loss') %> + +% if ( $antenna_types ) { +

+ + <& /elements/select.html, + field => $id.'_hardware_typenum', + options => [ '', keys %$antenna_types ], + labels => $antenna_types, + curr_value => $sector->hardware_typenum, + &> +

+% } +% # this next section might not be necessary if you enter an antenna type +

-

+
<% emt('dB (low quality)') %> -
+