diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-10-23 01:53:07 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-10-23 01:53:07 -0700 |
commit | 235ea1322692166f921cadbdc373a34c8f1694d2 (patch) | |
tree | d6143091e64c52b466a2c105c7731a136f587be6 /httemplate/edit/tower.html | |
parent | f8b21b0164ccef1152c66d7e1db47311213f4b95 (diff) |
add more fields to towers and sectors, RT#16372
Diffstat (limited to 'httemplate/edit/tower.html')
-rw-r--r-- | httemplate/edit/tower.html | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/httemplate/edit/tower.html b/httemplate/edit/tower.html index 673a2713a..00c9adde1 100644 --- a/httemplate/edit/tower.html +++ b/httemplate/edit/tower.html @@ -4,24 +4,32 @@ viewall_dir => 'browse', fields => [ 'towername', { field=>'disabled', type=>'checkbox', value=>'Y', }, - { field => 'default_ip_addr', + { field=>'color', type=>'pickcolor' }, + { field => 'default_ip_addr', curr_value_callback => $default_ip_addr_callback }, + 'latitude', + 'longitude', + 'altitude', + 'height', + 'veg_height', { field => 'sectornum', type => 'tower_sector', o2m_table => 'tower_sector', m2_label => 'Sector', m2_error_callback => $m2_error_callback, }, - 'latitude', - 'longitude', ], - labels => { 'towernum' => 'Tower', - 'towername' => 'Name', - 'sectornum' => 'Sector', - 'disabled' => 'Disabled', + labels => { 'towernum' => 'Tower', + 'towername' => 'Name', + 'sectornum' => 'Sector', + 'disabled' => 'Disabled', 'default_ip_addr' => 'Tower IP address', - 'latitude' => 'Latitude', - 'longitude' => 'Longitude', + 'latitude' => 'Latitude', + 'longitude' => 'Longitude', + 'altitude' => 'Altitude', + 'height' => 'Height', + 'veg_height' => 'Vegetation height', + 'color' => 'Color', }, &> <%init> @@ -29,7 +37,7 @@ my $m2_error_callback = sub { # reconstruct the list my ($cgi, $object) = @_; - my @fields = qw(sectorname ip_addr); + my @fields = qw( sectorname ip_addr height freq_mhz direction width range ); map { my $k = $_; new FS::tower_sector { |