diff options
| author | Christopher Burger <burgerc@freeside.biz> | 2019-05-16 09:16:09 -0400 |
|---|---|---|
| committer | Christopher Burger <burgerc@freeside.biz> | 2019-05-16 11:29:04 -0400 |
| commit | a25adda7b5c3235e7a048d4125039e808ebca8e8 (patch) | |
| tree | e1aa6c6f2a53278973816cddba976adb9d6953e8 /httemplate/elements | |
| parent | 41eec783951d2378d7d6f5f6b6f4c6e3bf50647b (diff) | |
RT# 83179 - set agent num to use default agentnum if configured, and fixed adding contact rows
Conflicts:
httemplate/edit/prospect_main.html
httemplate/elements/tr-select-agent.html
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 321bd6b32..7f8187926 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> - <TD ALIGN="right"><% $opt{'label'} || emt('Agent') %></TD> + <TD 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> - <TD ALIGN="right"><% $opt{'label'} || emt('Agent') %></TD> + <TD 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'} |
