diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-05-15 10:17:38 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-05-15 10:17:38 -0700 |
commit | 9d1c56465919772772ec8b11fec196c8506865bb (patch) | |
tree | eba1a7cc7a238a27baf6262d184d1666c63f5484 | |
parent | 9a6e080912eb49a601b574591321cfc915359dc0 (diff) |
cleanup
-rw-r--r-- | httemplate/elements/tr-select-cust_location.html | 48 |
1 files changed, 23 insertions, 25 deletions
diff --git a/httemplate/elements/tr-select-cust_location.html b/httemplate/elements/tr-select-cust_location.html index 34ed78dd4..36ee7b6e5 100644 --- a/httemplate/elements/tr-select-cust_location.html +++ b/httemplate/elements/tr-select-cust_location.html @@ -2,24 +2,23 @@ Example: - include('/elements/tr-select-cust_location.html', - 'cgi' => $cgi, + <& /elements/tr-select-cust_location.html, + 'cgi' => $cgi, - 'cust_main' => $cust_main, - #or - 'prospect_main' => $prospect_main, + 'cust_main' => $cust_main, + #or + 'prospect_main' => $prospect_main, - #optional - 'empty_label' => '(default service address)', - ) + #optional + 'empty_label' => '(default service address)', + &> </%doc> -<% include('/elements/xmlhttp.html', - 'url' => $p.'misc/location.cgi', - 'subs' => [ 'get_location' ], - ) -%> +<& /elements/xmlhttp.html, + 'url' => $p.'misc/location.cgi', + 'subs' => [ 'get_location' ], +&> <SCRIPT TYPE="text/javascript"> @@ -194,17 +193,16 @@ Example: </TD> </TR> -<% include('/elements/location.html', - 'object' => $cust_location, - #'onchange' ? probably not - 'disabled' => $disabled, - 'no_asterisks' => 1, - 'no_bold' => $opt{'no_bold'}, - 'alt_format' => $opt{'alt_format'}, - 'enable_coords'=> 1, - 'enable_censustract' => 1, - ) -%> +<& /elements/location.html, + 'object' => $cust_location, + #'onchange' ? probably not + 'disabled' => $disabled, + 'no_asterisks' => 1, + 'no_bold' => $opt{'no_bold'}, + 'alt_format' => $opt{'alt_format'}, + 'enable_coords' => 1, + 'enable_censustract' => 1, +&> % unless ( $prospect_main ) { <SCRIPT TYPE="text/javascript"> @@ -292,7 +290,7 @@ push @cust_location, $cust_location @cust_location = sort $location_sort grep !$_->disabled, @cust_location; $cust_location = $cust_location[0] - if ( $prospect_main ) + if $prospect_main && !$opt{'is_optional'} && @cust_location; |