projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix field order in docs for new import formats, RT#77747, RT#76992
[freeside.git]
/
httemplate
/
elements
/
select-cust-fields.html
diff --git
a/httemplate/elements/select-cust-fields.html
b/httemplate/elements/select-cust-fields.html
index
98feaf8
..
5e30638
100644
(file)
--- a/
httemplate/elements/select-cust-fields.html
+++ b/
httemplate/elements/select-cust-fields.html
@@
-1,22
+1,18
@@
-%
-% my( $cust_fields, %opt ) = @_;
-%
-% use FS::ConfDefaults;
-% $opt{'avail_fields'} ||= [ FS::ConfDefaults->cust_fields_avail() ];
-%
-% tie my %hash, 'Tie::IxHash', @{ $opt{'avail_fields'} };
-%
-%
+<%init>
+ my( $cust_fields, %opt ) = @_;
+ use FS::ConfDefaults;
+ $opt{'avail_fields'} ||= [ FS::ConfDefaults->cust_fields_avail() ];
+
+ tie my %hash, 'Tie::IxHash', @{ $opt{'avail_fields'} };
+</%init>
<SELECT NAME="cust_fields">
<OPTION VALUE="">(configured default)
<SELECT NAME="cust_fields">
<OPTION VALUE="">(configured default)
-%
-% foreach my $value ( keys %hash ) {
-
- <OPTION VALUE="<% $value %>"><% $hash{$value} %>
+% foreach my $value ( keys %hash ) {
+ <OPTION VALUE="<% $value %>"><% $hash{$value} %>
% }
% }