diff options
author | Christopher Burger <burgerc@freeside.biz> | 2019-05-16 09:16:09 -0400 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2019-05-16 09:16:09 -0400 |
commit | dac9051f94d03903c00a46117f6edf8315ec57dc (patch) | |
tree | ca3ab99193d33c06349edbb64b0876916c6f1028 /httemplate/elements | |
parent | aa6da3f37ddddf21ea5935f4e8f5fe531d18cc89 (diff) |
RT# 83179 - set agent num to use default agentnum if configured, and fixed adding contact rows
Diffstat (limited to 'httemplate/elements')
-rw-r--r-- | httemplate/elements/tr-select-agent.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/httemplate/elements/tr-select-agent.html b/httemplate/elements/tr-select-agent.html index 04600fa8d..986bbc0b1 100644 --- a/httemplate/elements/tr-select-agent.html +++ b/httemplate/elements/tr-select-agent.html @@ -22,6 +22,9 @@ Example: ); </%doc> + +% $required = '<FONT COLOR="red">*</FONT>' if $opt{'required'}; + % if ( scalar(@agents) == 1 || $opt{'fixed'} ) { <INPUT TYPE = "hidden" @@ -32,7 +35,7 @@ Example: % if ( scalar(@agents) != 1 ) { <TR> - <TH ALIGN="right"><% $opt{'label'} || emt('Agent') %></TD> + <TH ALIGN="right"><% $required %> <% $opt{'label'} || emt('Agent') %></TD> <TD BGCOLOR="#dddddd" <% $colspan %>> % my $agent = qsearchs('agent', { 'agentnum' => $agentnum }); <% $agent ? $agent->agent : '(all)' |h %> @@ -47,7 +50,7 @@ Example: % } else { <TR> - <TH ALIGN="right"><% $opt{'label'} || emt('Agent') %></TD> + <TH ALIGN="right"><% $required %> <% $opt{'label'} || emt('Agent') %></TD> <TD <% $colspan %>> <& /elements/select-agent.html, 'curr_value' => $agentnum, @@ -63,6 +66,7 @@ Example: my %opt = @_; my $agentnum = $opt{'curr_value'} || $opt{'value'}; +my $required; my @agents = $opt{'agents'} |