Revert "RT#38217: Send email when logging conditions are met"
[freeside.git] / httemplate / browse / cable_model.html
1 <& elements/browse.html,
2      'title'              => 'Cable modem models',
3      'html_init'          => $html_init,
4      'name'               => 'models',
5      'disableable'        => 1,
6      'disabled_statuspos' => 1,
7      'query'              => { 'table'     => 'cable_model',
8                                'hashref'   => {},
9                                'order_by' => 'ORDER BY model_name',
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   #'Cable "modem" models.<BR><BR>'.
23   qq!<A HREF="${p}edit/cable_model.html"><I>Add a model</I></A><BR><BR>!;
24
25 my $count_query = 'SELECT COUNT(*) FROM cable_model';
26
27 my $link = [ $p.'edit/cable_model.html?', 'modelnum' ];
28
29 my $header = [ 'Model' ];
30 my $fields = [ 'model_name' ];
31 my $links  = [ $link ];
32
33 </%init>