blob: 7ba8d990732b15e1eb927436b3c1a1e5c26c78ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<% include('tr-td-label.html', @_) %>
<TD <% $style %>>
<SELECT NAME = "<% $opt{'field'} || 'templatename' %>"
ID = "<% $opt{'id'} %>"
>
% foreach my $templatename ( '', @templatenames ) {
<OPTION VALUE="<% $templatename %>"
<% $templatename eq $curr_value ? 'SELECTED' : '' %>
><% $templatename || '(Default)' %>
% }
</SELECT>
</TD>
</TR>
<%init>
my %opt = @_;
my $onchange = $opt{'onchange'}
? 'onChange="'. $opt{'onchange'}. '(this)"'
: '';
my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';
my $curr_value = $opt{'curr_value'} || $opt{'value'};
my $conf = new FS::Conf;
my @templatenames = $conf->invoice_templatenames;
</%init>
|