projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
temporarily disabling torrus source build
[freeside.git]
/
httemplate
/
elements
/
tr-select-agent_type.html
diff --git
a/httemplate/elements/tr-select-agent_type.html
b/httemplate/elements/tr-select-agent_type.html
index
3fcbcd3
..
3e6ce07
100644
(file)
--- a/
httemplate/elements/tr-select-agent_type.html
+++ b/
httemplate/elements/tr-select-agent_type.html
@@
-1,27
+1,26
@@
-%
#%
if ( scalar(@agent_types) == 1 ) {
-%#
-
%#
<INPUT TYPE="hidden" NAME="<% $opt{'field'} || 'typenum' %>" VALUE="<% $agent_types[0]->typenum %>">
-%#
-%
#%
} else {
+% if ( scalar(@agent_types) == 1 ) {
+
+ <INPUT TYPE="hidden" NAME="<% $opt{'field'} || 'typenum' %>" VALUE="<% $agent_types[0]->typenum %>">
+
+% } else {
<TR>
<TD ALIGN="right"><% $opt{'label'} || 'Agent Type' %></TD>
<TD>
<TR>
<TD ALIGN="right"><% $opt{'label'} || 'Agent Type' %></TD>
<TD>
- <% include( '/elements/select-agent_type.html',
- 'curr_value' => $typenum,
- %opt,
- )
- %>
+ <& /elements/select-agent_type.html,
+ 'curr_value' => $typenum,
+ %opt,
+ &>
</TD>
</TR>
</TD>
</TR>
-%
#%
}
+% }
<%init>
my %opt = @_;
my $typenum = $opt{'curr_value'} || $opt{'value'};
<%init>
my %opt = @_;
my $typenum = $opt{'curr_value'} || $opt{'value'};
-delete $opt{'agent_types'} if $opt{'agent_types'}; #?
+my @agent_types = qsearch('agent_type', { 'disabled' => '' });
</%init>
</%init>