summaryrefslogtreecommitdiff
path: root/httemplate/edit/agent.cgi
diff options
context:
space:
mode:
authorivan <ivan>2009-05-05 22:02:28 +0000
committerivan <ivan>2009-05-05 22:02:28 +0000
commitb45292bc0dcdf4604a97fca130dc2a3bc54a9f49 (patch)
treec87b4a2e8c710d12ea681831482a7648292d203a /httemplate/edit/agent.cgi
parent638bbb4726bfa9bc26280b6addbf6077d2005745 (diff)
hide agent.invoice_template edit by default, with a config to turn back on, RT#5218
Diffstat (limited to 'httemplate/edit/agent.cgi')
-rwxr-xr-xhttemplate/edit/agent.cgi10
1 files changed, 9 insertions, 1 deletions
diff --git a/httemplate/edit/agent.cgi b/httemplate/edit/agent.cgi
index 215542de3..a0af9fa44 100755
--- a/httemplate/edit/agent.cgi
+++ b/httemplate/edit/agent.cgi
@@ -46,13 +46,21 @@ Agent #<% $agent->agentnum ? $agent->agentnum : "(NEW)" %>
<TD><INPUT TYPE="checkbox" NAME="disabled" VALUE="Y"<% $agent->disabled eq 'Y' ? ' CHECKED' : '' %>></TD>
</TR>
+% if ( $conf->exists('agent-invoice_template') ) {
+
<% include('/elements/tr-select-invoice_template.html',
'label' => 'Invoice template',
'field' => 'invoice_template',
'curr_value' => $agent->invoice_template,
)
%>
-
+
+% } else {
+
+ <INPUT TYPE="hidden" NAME="invoice_template" VALUE="<% $agent->invoice_template %>">
+
+% }
+
% if ( $conf->config('ticket_system') ) {
% my $default_queueid = $conf->config('ticket_system-default_queueid');
% my $default_queue = FS::TicketSystem->queue($default_queueid);