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',
7 'order_by' => 'ORDER BY dbtable',
9 'count_query' => 'SELECT COUNT(1) from part_virtual_field',
16 'fields' => [ 'vfieldpart',
22 'links' => [ [ $p.'edit/part_virtual_field.html?', 'vfieldpart' ],
33 unless $FS::CurrentUser::CurrentUser->access_right('Edit custom fields');