Option to ignore old CDRs, RT#81480
[freeside.git] / httemplate / browse / part_virtual_field.html
1 <% include( 'elements/browse.html',
2                  'title'       => 'Custom field definitions',
3                  'menubar'     => [ 'Add a new field' => $p.'edit/part_virtual_field.html', ],
4                  'name'        => 'custom fields',
5                  'query'       => { 'table'     => 'part_virtual_field',
6                                     'hashref'   => {},
7                                     'order_by' => 'ORDER BY dbtable',
8                                   },
9                  'count_query' => 'SELECT COUNT(1) from part_virtual_field',
10                  'header'      => [ '#',
11                                     'Table',
12                                     'Name',
13                                     'Length',
14                                     'Label',
15                                   ],
16                  'fields'      => [ 'vfieldpart',
17                                     'dbtable',
18                                     'name',
19                                     'length',
20                                     'label',
21                                   ],
22                  'links'       => [ [ $p.'edit/part_virtual_field.html?', 'vfieldpart' ],
23                                     '',
24                                     '',
25                                     '',
26                                     '',
27                                   ],
28              )
29 %>
30 <%init>
31
32 die "access denied"
33   unless $FS::CurrentUser::CurrentUser->access_right('Edit custom fields');
34
35 </%init>