summaryrefslogtreecommitdiff
path: root/httemplate/browse/cable_model.html
blob: af98d89414e9c6363f982cb0a7c4d1dcf1b0174d (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
<& elements/browse.html,
     'title'              => 'Cable modem models',
     'html_init'          => $html_init,
     'name'               => 'models',
     'disableable'        => 1,
     'disabled_statuspos' => 1,
     'query'              => { 'table'     => 'cable_model',
                               'hashref'   => {},
                               'order_by' => 'ORDER BY model_name',
                             },
     'count_query'        => $count_query,
     'header'             => $header,
     'fields'             => $fields,
     'links'              => $links,
&>
<%init>

die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');

my $html_init =
  #'Cable "modem" models.<BR><BR>'.
  qq!<A HREF="${p}edit/cable_model.html"><I>Add a model</I></A><BR><BR>!;

my $count_query = 'SELECT COUNT(*) FROM cable_model';

my $link = [ $p.'edit/cable_model.html?', 'modelnum' ];

my $header = [ 'Model' ];
my $fields = [ 'model_name' ];
my $links  = [ $link ];

</%init>