summaryrefslogtreecommitdiff
path: root/httemplate/edit/part_referral.html
blob: 04287d63202e44b40d9c59bd5b8ad79b956e65c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<% include( 'elements/edit.html',
                'name'        => 'Advertising source',
                'table'       => 'part_referral',
                'fields'      => [ 'referral',
                                   { field=>'agentnum', type=>'select-agent', },
                                   'title',
                                   { field=>'disabled', type=>'checkbox', value=>'Y'  } ,
                                 ],
                'labels'      => { 'refnum'   => 'Ad Source',
                                   'referral' => 'Advertising source',
                                   'agentnum' => 'Agent',
                                   'title'    => 'External ID',
                                   'disabled' => 'Disabled',
                                 },
                'viewall_dir' => 'browse',
           )
%>
<%init>

die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('Edit advertising sources')
      || $FS::CurrentUser::CurrentUser->access_right('Edit global advertising sources');

</%init>