summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-05-15 10:17:38 -0700
committerIvan Kohler <ivan@freeside.biz>2017-05-15 10:17:38 -0700
commit9d1c56465919772772ec8b11fec196c8506865bb (patch)
treeeba1a7cc7a238a27baf6262d184d1666c63f5484
parent9a6e080912eb49a601b574591321cfc915359dc0 (diff)
cleanup
-rw-r--r--httemplate/elements/tr-select-cust_location.html48
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;