1 <% include('tr-td-label.html', @_) %>
5 <SELECT NAME = "<% $opt{'field'} || 'templatename' %>"
6 ID = "<% $opt{'id'} %>"
9 % foreach my $templatename ( '', @templatenames ) {
11 <OPTION VALUE="<% $templatename %>"
12 <% $templatename eq $curr_value ? 'SELECTED' : '' %>
13 ><% $templatename || '(Default)' %>
27 my $onchange = $opt{'onchange'}
28 ? 'onChange="'. $opt{'onchange'}. '(this)"'
31 my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';
33 my $curr_value = $opt{'curr_value'} || $opt{'value'};
35 my $conf = new FS::Conf;
37 my @templatenames = $conf->invoice_templatenames;