summaryrefslogtreecommitdiff
path: root/httemplate/browse/part_virtual_field.html
blob: 1d8fad4c695132ebbfd2d2ba290479859d65849c (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
25
26
27
28
29
30
31
32
33
34
35
<% include( 'elements/browse.html',
                 'title'       => 'Custom field definitions',
                 'menubar'     => [ 'Add a new field' => $p.'edit/part_virtual_field.html', ],
                 'name'        => 'custom fields',
                 'query'       => { 'table'     => 'part_virtual_field',
                                    'hashref'   => {},
                                    'order_by' => 'ORDER BY dbtable',
                                  },
                 'count_query' => 'SELECT COUNT(1) from part_virtual_field',
                 'header'      => [ '#',
                                    'Table',
                                    'Name',
                                    'Length',
                                    'Label',
                                  ],
                 'fields'      => [ 'vfieldpart',
                                    'dbtable',
                                    'name',
                                    'length',
                                    'label',
                                  ],
                 'links'       => [ [ $p.'edit/part_virtual_field.html?', 'vfieldpart' ],
                                    '',
                                    '',
                                    '',
                                    '',
                                  ],
             )
%>
<%init>

die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');

</%init>