diff options
author | Mark Wells <mark@freeside.biz> | 2016-10-10 11:59:41 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2016-10-10 11:59:41 -0700 |
commit | 49d9ea969069430ef3fe23e5b1ac3599e929bb04 (patch) | |
tree | 24a3feb13b0a8db68f7a634de239b97d106a5efe /httemplate/view | |
parent | 53a8c81b4f3a414803a52fc8114b26a71055d012 (diff) |
new tower/sector UI, mapping features, and network monitoring, #37802
Diffstat (limited to 'httemplate/view')
-rw-r--r-- | httemplate/view/svc_broadband-popup.html | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/httemplate/view/svc_broadband-popup.html b/httemplate/view/svc_broadband-popup.html new file mode 100644 index 000000000..1c2347454 --- /dev/null +++ b/httemplate/view/svc_broadband-popup.html @@ -0,0 +1,35 @@ +<%init> +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('View customer services'); + +my ($svcnum) = $cgi->keywords; +# cleans svcnum, checks agent access, etc. +my $svc = qsearchs( FS::svc_broadband->search({ 'svcnum' => $svcnum }) ); +my $addr_status = $svc->addr_status; +my @label = $svc->cust_svc->label; +</%init> + +<H3> + <a target="_blank" href="<% $fsurl %>view/svc_broadband.cgi?<% $svc->svcnum %>"> + <% $label[0] |h %> #<% $svc->svcnum %> | <% $label[1] %> + </a> +</H3> +% if ( $addr_status ) { +<P> + <SPAN STYLE="font-weight: bold; color: <% $svc->addr_status_color %>"> + <% emt( $addr_status->up ? 'UP' : 'DOWN' ) %> + </SPAN> +% if ( $addr_status->up ) { + (<% $addr_status->delay |h %> ms) +% } + <% emt('as of') . ' ' . time2str('%b %o %H:%M', $addr_status->_date) %> +</P> +% } +% my $cust_main = $svc->cust_main; +<a target="_blank" href="<% $fsurl %>view/cust_main.cgi?<% $cust_main->custnum %>"> +<& /elements/small_custview.html, { + cust_main => $svc->cust_main, + #url => $fsurl.'view/cust_main.cgi', +} &> +</a> + |