diff options
Diffstat (limited to 'httemplate/edit')
-rw-r--r-- | httemplate/edit/cust_main/billing.html | 6 | ||||
-rwxr-xr-x | httemplate/edit/cust_main_note.cgi | 7 | ||||
-rw-r--r-- | httemplate/edit/process/tower.html | 3 | ||||
-rw-r--r-- | httemplate/edit/tower.html | 19 |
4 files changed, 25 insertions, 10 deletions
diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index 50262e82c..649c4c945 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -124,6 +124,12 @@ <SELECT NAME="prorate_day"> <% prorate_day_options($cust_main->prorate_day) %> </SELECT> + <& /elements/checkbox.html, + field => 'force_prorate_day', + value => 'Y', + curr_value => $cust_main->force_prorate_day + &> + <label><% emt('Force all packages to this day') %></label> </TD> </TR> diff --git a/httemplate/edit/cust_main_note.cgi b/httemplate/edit/cust_main_note.cgi index c295e0d7a..cc93f2498 100755 --- a/httemplate/edit/cust_main_note.cgi +++ b/httemplate/edit/cust_main_note.cgi @@ -6,14 +6,17 @@ <INPUT TYPE="hidden" NAME="custnum" VALUE="<% $custnum %>"> <INPUT TYPE="hidden" NAME="notenum" VALUE="<% $notenum %>"> -% if ($conf->exists('note-classes') && $conf->config('note-classes') > 0) { +% if ($conf->exists('note-classes') && $conf->config('note-classes')) { +% my %includeopts = $conf->config('note-classes') eq 'Enabled' +% ? ('empty_label' => '(unclassified)') +% : ('disable_empty' => 1); # eq 'Required' Class <% include( '/elements/select-table.html', 'table' => 'cust_note_class', 'name_col' => 'classname', 'curr_value' => $classnum, - 'empty_label' => '(none)', 'hashref' => { 'disabled' => '' }, + %includeopts, ) %> <BR> % } diff --git a/httemplate/edit/process/tower.html b/httemplate/edit/process/tower.html index d14ac56f8..cfbb4ffa3 100644 --- a/httemplate/edit/process/tower.html +++ b/httemplate/edit/process/tower.html @@ -4,7 +4,8 @@ process_o2m => { 'table' => 'tower_sector', 'fields' => [qw( sectorname ip_addr height freq_mhz direction width - downtilt v_width margin + downtilt v_width db_high db_low power line_loss + antenna_gain hardware_typenum sector_range )], }, diff --git a/httemplate/edit/tower.html b/httemplate/edit/tower.html index 377a33e9b..946a1405e 100644 --- a/httemplate/edit/tower.html +++ b/httemplate/edit/tower.html @@ -2,6 +2,7 @@ name_singular => 'tower', table => 'tower', viewall_dir => 'browse', + html_init => include('/elements/mapselect.html'), fields => [ 'towername', { field=>'disabled', type=>'checkbox', value=>'Y', }, { field=>'color', type=>'pickcolor' }, @@ -12,11 +13,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', @@ -27,7 +32,7 @@ 'latitude' => 'Latitude', 'longitude' => 'Longitude', 'altitude' => 'Altitude (feet)', - 'height' => 'Height (feet)', + 'height' => 'Tower height (feet)', 'veg_height' => 'Vegetation height (feet)', 'color' => 'Color', }, @@ -38,7 +43,7 @@ my $m2_error_callback = sub { # reconstruct the list my ($cgi, $object) = @_; my @fields = qw( - sectorname ip_addr height freq_mhz direction width tilt v_width margin sector_range + sectorname ip_addr height freq_mhz direction width tilt v_width db_high db_low sector_range ); map { |