X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-tower_sectors.html;h=b3d45328260a8476cca69d14e62b36c1fd6f20e8;hb=5b0df166c22e13eba83fabee858846ead6a54141;hp=4e8f3fb473a8fc9e84f380095a850e408a381bcc;hpb=49d9ea969069430ef3fe23e5b1ac3599e929bb04;p=freeside.git diff --git a/httemplate/elements/tr-tower_sectors.html b/httemplate/elements/tr-tower_sectors.html index 4e8f3fb47..b3d453282 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 up_rate_limit down_rate_limit ); 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; + } + @@ -170,7 +184,10 @@ $(function() { % my $id = $opt{id}; # sectornumX
% # no id on this one, the panel gets the "sectornumX" id - +

+ <% $sector->sectornum |h %> + +

+ + + <% 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)') %> -
+
+

+ + +

+

+ + +