improve performance of self-service usage overview with lots of CDRs, RT#73889
[freeside.git] / httemplate / edit / pkg_category.html
1 <% include( 'elements/edit.html',
2               'name_singular' => 'Package Category',
3               'table'  => 'pkg_category',
4               'fields' => [
5                             'categoryname',
6                             'weight',
7                             { field=>'ticketing_queueid',
8                               type =>'select-ticketing_queueid',
9                               post_options => [ -1 => 'Agent-specific queue' ],
10                             },
11                             { field=>'condense', type=>'checkbox', value=>'Y' },
12                             { field=>'disabled', type=>'checkbox', value=>'Y' },
13                           ],
14               'labels' => {
15                             'categorynum'  => 'Category number',
16                             'categoryname' => 'Category name',
17                             'weight'       => 'Weight',
18                             'ticketing_queueid' => 'Appointment ticketing queue',
19                             'condense'     => 'Collapse identical items to one',
20                             'disabled'     => 'Disable category',
21                           },
22               'viewall_dir' => 'browse',
23               %opt,
24            )
25 %>
26 <%init>
27
28 die "access denied"
29   unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
30
31 my %opt = @_;
32
33 </%init>