summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-10-09 11:52:02 -0700
committerIvan Kohler <ivan@freeside.biz>2014-10-09 12:00:07 -0700
commit6c332f225b646c3c07f247f8d65d2c58fb6a306e (patch)
tree3623fec6ad1753a76772486a8eb71f5bb4f5d6af /httemplate/elements
parent81ccfc6f631270015f2ae11d4019c4b8b9ce7514 (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.html30
-rw-r--r--httemplate/elements/tr-select-agent_types.html19
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>