diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2014-10-09 11:52:02 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2014-10-09 11:52:02 -0700 |
| commit | 4dd8ad334bd0aed98c4119b3199b955ef4782cb1 (patch) | |
| tree | 7dd1f0c7104c2174ae240a7f4efc4dcea94c421f /httemplate/elements | |
| parent | 003eca97bc3a50b8f52a0713273ad60459e00c8f (diff) | |
fix agent type selection for the simple case, RT#30942, RT#28804
Diffstat (limited to 'httemplate/elements')
| -rw-r--r-- | httemplate/elements/select-agent_types.html | 30 | ||||
| -rw-r--r-- | httemplate/elements/tr-select-agent_types.html | 19 |
2 files changed, 0 insertions, 49 deletions
diff --git a/httemplate/elements/select-agent_types.html b/httemplate/elements/select-agent_types.html deleted file mode 100644 index 400b453b3..000000000 --- a/httemplate/elements/select-agent_types.html +++ /dev/null @@ -1,30 +0,0 @@ -%# if ( $cgi->param('clone') ) { #XXX -% if ( $opt{'disabled'} ) { - - <INPUT TYPE="hidden" NAME="agent_type" VALUE=""> - -% } elsif ( scalar(@all_agent_types) == 1) { - - <INPUT TYPE="hidden" NAME="agent_type" VALUE="<% $all_agent_types[0] %>"> - -% } else { - - <% include( 'select-table.html', - 'element_name' => 'agent_type', - 'table' => 'agent_type', - 'name_col' => 'atype', - #'value' => \@agent_type, - 'element_etc' => 'size="10"', - %opt, - 'multiple' => '1', #cause edit.html is dum - ) - %> - -% } -<%init> - -my %opt = @_; - -my @all_agent_types = map {$_->typenum} qsearch('agent_type',{}); - -</%init> diff --git a/httemplate/elements/tr-select-agent_types.html b/httemplate/elements/tr-select-agent_types.html deleted file mode 100644 index efbf386a7..000000000 --- a/httemplate/elements/tr-select-agent_types.html +++ /dev/null @@ -1,19 +0,0 @@ -% unless ( $opt{'disabled'} || scalar(@all_agent_types) == 1 ) { - -<% include('/elements/tr-justtitle.html', value=>'Agent (reseller) types') %> - -% } - -<TR> - <TD COLSPAN=2> - <% include('select-agent_types.html', %opt) %> - </TD> -</TR> - -<%init> - -my %opt = @_; - -my @all_agent_types = map {$_->typenum} qsearch('agent_type',{}); - -</%init> |
