Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git] / httemplate / browse / conferencing_quality.html
1 <& elements/browse.html,
2      'title'              => 'Conferencing quality levels',
3      'html_init'          => $html_init,
4      'name_singular'      => 'quality',
5      'disableable'        => 1,
6      'disabled_statuspos' => 1,
7      'query'              => { 'table'     => 'conferencing_quality',
8                                'hashref'   => {},
9                                'order_by' => 'ORDER BY qualityid',
10                              },
11      'count_query'        => $count_query,
12      'header'             => $header,
13      'fields'             => $fields,
14      'links'              => $links,
15 &>
16 <%init>
17
18 die "access denied"
19   unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
20
21 my $html_init =
22   qq!<A HREF="${p}edit/conferencing_quality.html"><I>Add a conferencing quality</I></A><BR><BR>!;
23
24 my $count_query = 'SELECT COUNT(*) FROM conferencing_quality';
25
26 my $link = [ $p.'edit/conferencing_quality.html?', 'confqualitynum' ];
27
28 my $header = [ 'ID', 'Quality' ];
29 my $fields = [ 'qualityid', 'qualityname' ];
30 my $links  = [ $link, $link ];
31
32 </%init>