diff options
Diffstat (limited to 'httemplate/elements/select-cust-fields.html')
-rw-r--r-- | httemplate/elements/select-cust-fields.html | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/httemplate/elements/select-cust-fields.html b/httemplate/elements/select-cust-fields.html index 4d47fbe40..98feaf85c 100644 --- a/httemplate/elements/select-cust-fields.html +++ b/httemplate/elements/select-cust-fields.html @@ -1,23 +1,24 @@ -<% - my( $cust_fields, %opt ) = @_; +% +% my( $cust_fields, %opt ) = @_; +% +% use FS::ConfDefaults; +% $opt{'avail_fields'} ||= [ FS::ConfDefaults->cust_fields_avail() ]; +% +% tie my %hash, 'Tie::IxHash', @{ $opt{'avail_fields'} }; +% +% - use FS::ConfDefaults; - $opt{'avail_fields'} ||= [ FS::ConfDefaults->cust_fields_avail() ]; - - tie my %hash, 'Tie::IxHash', @{ $opt{'avail_fields'} }; - -%> <SELECT NAME="cust_fields"> <OPTION VALUE="">(configured default) +% +% foreach my $value ( keys %hash ) { - <% - foreach my $value ( keys %hash ) { %> - <OPTION VALUE="<%= $value %>"><%= $hash{$value} %> + <OPTION VALUE="<% $value %>"><% $hash{$value} %> +% } - <% } %> </SELECT> |