From 49fc33db77d202f175a4d8a33e3eab1e52080a4d Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 15 May 2012 18:25:37 -0700 Subject: read only access to message templates, RT#1`7477 --- httemplate/elements/tr-select-agent.html | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'httemplate/elements/tr-select-agent.html') diff --git a/httemplate/elements/tr-select-agent.html b/httemplate/elements/tr-select-agent.html index ce03c40f5..321bd6b32 100644 --- a/httemplate/elements/tr-select-agent.html +++ b/httemplate/elements/tr-select-agent.html @@ -22,7 +22,7 @@ Example: ); -% if ( scalar(@agents) == 1 ) { +% if ( scalar(@agents) == 1 || $opt{'fixed'} ) { -%# YUCK. empty row so we don't throw g_row in edit.html off :/ - - +% if ( scalar(@agents) != 1 ) { + + <% $opt{'label'} || emt('Agent') %> + > +% my $agent = qsearchs('agent', { 'agentnum' => $agentnum }); + <% $agent ? $agent->agent : '(all)' |h %> + + + +% } else { # YUCK. empty row so we don't throw g_row in edit.html off :/ + + +% } +% % } else { -- cgit v1.2.1