fix contact self-service disabled on edit (and some basic contact reports), RT#25533...
[freeside.git] / httemplate / search / report_contact.html
1 <& /elements/header.html, mt($title) &>
2
3 <FORM ACTION="contact.html" METHOD="GET">
4
5 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
6
7   <& /elements/tr-select-agent.html,
8                  'curr_value'    => scalar( $cgi->param('agentnum') ),
9                  'label'         => emt('Contacts for agent: '),
10                  'disable_empty' => 0,
11   &>
12
13   <& /elements/tr-select.html,
14        'label'      => 'Contact source', #??? not "type" - contacts have a type
15        'field'      => 'link',
16        'options'    => [ 'prospect_main', 'cust_main', '' ],
17        'labels'     => { 'prospect_main' => 'Prospect contacts',
18                          'cust_main'     => 'Customer contacts',
19                          ''              => 'All contacts',
20                        },
21        'curr_value' => scalar( $cgi->param('link') ),
22   &>
23
24 </FORM>
25
26 </TABLE>
27
28 <BR>
29 <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
30
31 </FORM>
32
33 <& /elements/footer.html &>
34 <%init>
35
36 die "access denied"
37   unless $FS::CurrentUser::CurrentUser->access_right('List contacts');
38
39 my $conf = new FS::Conf;
40
41 my $title = 'Contact Report';
42
43 </%init>