don't redirect to a GET with sensitive data, RT#26099
[freeside.git] / httemplate / edit / sales.html
1 <& elements/edit.html,
2      'name_singular' => 'sales person',
3      'table'         => 'sales',
4      'fields'        => [ 'salesperson',
5                           { field=>'agentnum', type=>'select-agent', disable_empty=>1, },
6                           { field=>'sales_custnum', type=>'search-cust_main', },
7                           { field=>'disabled', type=>'checkbox', value=>'Y', },
8                         ],
9      'labels'        => { 'salesnum'      => 'Sales Person',
10                           'salesperson'   => 'Name',
11                           'agentnum'      => 'Agent',
12                           'sales_custnum' => 'Master customer',
13                           'disabled'      => 'Disabled',
14                         },
15      'viewall_dir'   => 'browse',
16      'agent_virt'    => 1,
17      'html_bottom'   => sub {
18                               my $sales = shift;
19
20                               '<BR>'.
21                               include('/elements/table-commissions.html',
22                                         'source_obj'    => $sales,
23                                         'link_table'    => 'sales_pkg_class',
24                                         #'target_table' => 'pkg_class',
25                                         'show_duration' => 1,
26                                      );
27                             },
28 &>
29 <%init>
30
31 die "access denied"
32   unless $FS::CurrentUser::CurrentUser->access_right('Edit sales people');
33
34 </%init>