diff options
author | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
---|---|---|
committer | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
commit | c82d349f864e6bd9f96fd1156903bc1f7193a203 (patch) | |
tree | e117a87533656110b6acd56fc0ca64289892a9f5 /httemplate/elements/tr-select-agent.html | |
parent | 74e058c8a010ef6feb539248a550d0bb169c1e94 (diff) |
This commit was manufactured by cvs2svn to create tag 'TORRUS_1_0_9'.TORRUS_1_0_9
Diffstat (limited to 'httemplate/elements/tr-select-agent.html')
-rw-r--r-- | httemplate/elements/tr-select-agent.html | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/httemplate/elements/tr-select-agent.html b/httemplate/elements/tr-select-agent.html deleted file mode 100644 index 9f2f76a6c..000000000 --- a/httemplate/elements/tr-select-agent.html +++ /dev/null @@ -1,60 +0,0 @@ -<%doc> - -Example: - - include( '/elements/tr-select-agent.html', - - #recommended to keep things "sticky" on errors - 'curr_value' => $curr_value, - - ## - # optional - ## - - 'label' => 'Agent for this thing', - 'empty_label' => 'Select agent', #override default - 'disable_empty' => 1, - - #set to 'None' or something to override default of showing all agents - #for employees w/ 'View customers of all agents' right - viewall_right => 'None', - - ); - -</%doc> -% if ( scalar(@agents) == 1 ) { - - <INPUT TYPE="hidden" NAME="<% $opt{'field'} || 'agentnum' %>" VALUE="<% $agents[0]->agentnum %>"> - -%# YUCK. empty row so we don't throw g_row in edit.html off :/ - <TR> - </TR> -% } else { - - <TR> - <TD ALIGN="right"><% $opt{'label'} || 'Agent' %></TD> - <TD> - <% include( '/elements/select-agent.html', - 'curr_value' => $agentnum, - 'agents' => \@agents, - %opt, - ) - %> - </TD> - </TR> - -% } - -<%init> - -my %opt = @_; -my $agentnum = $opt{'curr_value'} || $opt{'value'}; - -my @agents = - $opt{'agents'} - ? @{ $opt{'agents'} } - : $FS::CurrentUser::CurrentUser->agents( - 'viewall_right' => $opt{'viewall_right'}, - ); - -</%init> |