From fced2ed0147049fded427862a3517c172f86513e Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 11 Mar 2011 00:45:53 +0000 Subject: prospect qualifications default to prospect address if there's one, other UI cleanups RT#7111 --- httemplate/misc/qual.html | 55 +++++++++++++++++++++++++++++------------------ 1 file changed, 34 insertions(+), 21 deletions(-) (limited to 'httemplate/misc/qual.html') diff --git a/httemplate/misc/qual.html b/httemplate/misc/qual.html index 69a5f8b74..7af2590b7 100644 --- a/httemplate/misc/qual.html +++ b/httemplate/misc/qual.html @@ -9,39 +9,47 @@ <% ntable("#cccccc", 2) %> <% include('/elements/tr-td-label.html', - 'cgi' => $cgi, - 'label' => 'Qualify using', - 'cell_style' => 'font-weight: bold', - 'id' => 'exportnum', - ) + 'cgi' => $cgi, + 'label' => 'Qualify using', + #'cell_style' => 'font-weight: bold', + 'id' => 'exportnum', + ) %> <% include('/elements/select.html', - 'cgi' => $cgi, - 'field' => 'exportnum', - 'options' => \@export_options, - 'labels' => $export_labels, - 'curr_value' => $cgi->param('exportnum'), - ) + 'cgi' => $cgi, + 'field' => 'exportnum', + 'options' => \@export_options, + 'labels' => $export_labels, + 'curr_value' => $exportnum, + ) %> <% include('/elements/tr-input-text.html', - 'cgi' => $cgi, - 'label' => 'Service Telephone Number', - 'field' => 'phonenum', - 'size' => '12', - 'value' => $cgi->param('phonenum'), + 'cgi' => $cgi, + 'label' => 'Service Telephone Number', + 'field' => 'phonenum', + 'size' => '12', + 'value' => scalar($cgi->param('phonenum')), + + 'valign' => 'middle', + 'colspan' => 6, + 'prefix' => '
', + 'postfix' => ''. join('
', + 'Line-share (non dry loops) - always fill in', + 'Dry loops - always leave empty', + ). '
', ) %> <% include('/elements/tr-select-cust_location.html', - 'cgi' => $cgi, - $table => $cust_main_or_prospect_main, - 'alt_format' => $conf->exists('qual-alt-address-format') ? 1 : 0, - 'is_optional' => 1, - 'no_bold' => 1, + 'cgi' => $cgi, + $table => $cust_main_or_prospect_main, + 'alt_format' => $conf->exists('qual-alt-address-format') ? 1 : 0, + 'no_bold' => 1, + #required for ikano.. config? 'is_optional' => 1, ) %> @@ -84,5 +92,10 @@ foreach my $export ( @exports ) { push @export_options, $export->exportnum; $export_labels->{$export->exportnum} = $export->exportname; } +my $exportnum = $cgi->param('error') + ? scalar($cgi->param('exportnum')) + : scalar(@exports) == 1 + ? $exports[0]->exportnum + : ''; -- cgit v1.2.1