diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-09-10 01:34:03 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-09-10 01:34:03 -0700 |
commit | dcfdfa382ec3e357f1cd3c822fd5e658b0746f85 (patch) | |
tree | 2466faf950fa2a87490bcf904bd7b72bfac4802d /httemplate/browse | |
parent | a5dce53ac50026bc6caef192100162f1d86a863f (diff) |
svc_cable service have a single serial / MAC / model, not one-to-many devices like svc_phone and svc_dsl, RT#22009
Diffstat (limited to 'httemplate/browse')
-rw-r--r-- | httemplate/browse/cable_model.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/httemplate/browse/cable_model.html b/httemplate/browse/cable_model.html new file mode 100644 index 000000000..af98d8941 --- /dev/null +++ b/httemplate/browse/cable_model.html @@ -0,0 +1,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> |