summaryrefslogtreecommitdiff
path: root/httemplate/browse/part_virtual_field.html
blob: 5e3876285d4311a30491e6a1f632db01ea5d3a15 (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('Edit custom fields');

</%init>