<% my( $cust_fields, %opt ) = @_; use FS::ConfDefaults; $opt{'avail_fields'} ||= [ FS::ConfDefaults->cust_fields_avail() ]; %> <%= $opt{'label'} || 'Customer fields' %> <%= include( '/elements/select-cust-fields.html', $cust_fields, %opt ) %>