diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2015-01-22 15:51:11 -0600 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2015-01-23 14:09:16 -0600 |
commit | b951a687384fb16e2970ff45626de570dac6d574 (patch) | |
tree | 30bab2208d08d4bceb1ce3d6c822ac1fa1df43ed /httemplate/view/elements | |
parent | 101091d3af57a314eead7f60d9fdc98fada8f8e8 (diff) |
30392, refactored manage devices link, added it to broadband service page
Diffstat (limited to 'httemplate/view/elements')
-rw-r--r-- | httemplate/view/elements/svc_Common.html | 12 | ||||
-rw-r--r-- | httemplate/view/elements/svc_edit_link.html | 8 |
2 files changed, 18 insertions, 2 deletions
diff --git a/httemplate/view/elements/svc_Common.html b/httemplate/view/elements/svc_Common.html index 7d21e764f..771bfb276 100644 --- a/httemplate/view/elements/svc_Common.html +++ b/httemplate/view/elements/svc_Common.html @@ -22,6 +22,11 @@ #at the very bottom (well, as low as you can go from here) 'html_foot' => '', + #only needed for svc_broadband Manage Devices link + 'manage_link' => scalar($conf->config('svc_broadband-manage_link')), + 'manage_link_text' => scalar($conf->config('svc_broadband-manage_link_text')), + 'manage_link-new_window' => $conf->exists('svc_broadband-manage_link-new_window') + ) </%doc> @@ -70,7 +75,11 @@ function areyousure(href) { <% mt('Service #') |h %><B><% $svcnum %></B> % if ( $custnum ) { % my $url = $opt{'edit_url'} || $p. 'edit/'. $opt{'table'}. '.cgi?'; -<& /view/elements/svc_edit_link.html, 'svc' => $svc_x, 'edit_url' => $url &> +<& /view/elements/svc_edit_link.html, 'svc' => $svc_x, 'part_svc' => $part_svc, 'edit_url' => $url, + 'manage_link' => $opt{'manage_link'}, + 'manage_link_text' => $opt{'manage_link_text'}, + 'manage_link-new_window' => $opt{'manage_link-new_window'} +&> % } <BR> @@ -222,7 +231,6 @@ my $format_field = sub { $field = $f; $type = 'text'; } - warn "$field\t$type\t$value\n"; my $columndef = $part_svc->part_svc_column($field); # skip fields that are fixed and empty diff --git a/httemplate/view/elements/svc_edit_link.html b/httemplate/view/elements/svc_edit_link.html index 5438ed266..3ff2f58b6 100644 --- a/httemplate/view/elements/svc_edit_link.html +++ b/httemplate/view/elements/svc_edit_link.html @@ -14,6 +14,14 @@ function areyousure_delete() { | <A HREF="javascript:areyousure_delete()"><% mt('Unprovision this Service') |h %></A> % } % } +<& /elements/manage_device_link.html, + 'svc' => $svc_x, + 'part_svc' => $opt{'part_svc'} || $cust_svc->part_svc, + 'manage_link' => $opt{'manage_link'}, + 'manage_link_text' => $opt{'manage_link_text'}, + 'manage_link-new_window' => $opt{'manage_link-new_window'}, + 'prepend' => '| ' +&> <%init> my %opt = @_; my $svc_x = $opt{'svc'} or die "'svc' required"; |