From dba6b1030a2694cbb69371c171e4ebb8c52db830 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Fri, 30 May 2014 14:04:09 -0700 Subject: MySQL support, RT#28895 --- httemplate/edit/process/tower.html | 5 ++++- httemplate/edit/tower.html | 5 ++++- httemplate/elements/tower_sector.html | 14 +++++++------- 3 files changed, 15 insertions(+), 9 deletions(-) (limited to 'httemplate') diff --git a/httemplate/edit/process/tower.html b/httemplate/edit/process/tower.html index bbfc1a670..02362db6a 100644 --- a/httemplate/edit/process/tower.html +++ b/httemplate/edit/process/tower.html @@ -2,6 +2,9 @@ table => 'tower', viewall_dir => 'browse', process_o2m => { 'table' => 'tower_sector', - 'fields' => [qw( sectorname ip_addr height freq_mhz direction width range )], + 'fields' => [qw( + sectorname ip_addr height freq_mhz direction width + sector_range + )], }, &> diff --git a/httemplate/edit/tower.html b/httemplate/edit/tower.html index 00c9adde1..fa3838dcf 100644 --- a/httemplate/edit/tower.html +++ b/httemplate/edit/tower.html @@ -37,7 +37,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 sector_range + ); + map { my $k = $_; new FS::tower_sector { diff --git a/httemplate/elements/tower_sector.html b/httemplate/elements/tower_sector.html index 406895ed9..151d3ba65 100644 --- a/httemplate/elements/tower_sector.html +++ b/httemplate/elements/tower_sector.html @@ -51,13 +51,13 @@ if ( $curr_value ) { my %size = ( 'title' => 12 ); tie my %label, 'Tie::IxHash', - 'sectorname' => 'Name', - 'ip_addr' => 'IP Address', - 'height' => 'Height', - 'freq_mhz' => 'Freq. (MHz)', - 'direction' => 'Direction', # or a button to set these to 0 for omni - 'width' => 'Width', # - 'range' => 'Range', + 'sectorname' => 'Name', + 'ip_addr' => 'IP Address', + 'height' => 'Height', + 'freq_mhz' => 'Freq. (MHz)', + 'direction' => 'Direction', # or a button to set these to 0 for omni + 'width' => 'Width', # + 'sector_range' => 'Range', ; my @fields = keys %label; -- cgit v1.2.1