summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-select-agent_types.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/elements/tr-select-agent_types.html')
-rw-r--r--httemplate/elements/tr-select-agent_types.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/httemplate/elements/tr-select-agent_types.html b/httemplate/elements/tr-select-agent_types.html
new file mode 100644
index 0000000..efbf386
--- /dev/null
+++ b/httemplate/elements/tr-select-agent_types.html
@@ -0,0 +1,19 @@
+% 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>