X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Felements%2Fsvc_Common.html;h=7d21e764f66b365ca41dea010c8f91cfbd2283ff;hb=b85a720cb3605855f685c8af1dce98c7b1658b4b;hp=25845ddc5e38c6bb450771f1a3869fe0a7ce9c4d;hpb=46ef8524cf2e6db7b851967062ce92ffb0773d10;p=freeside.git diff --git a/httemplate/view/elements/svc_Common.html b/httemplate/view/elements/svc_Common.html index 25845ddc5..7d21e764f 100644 --- a/httemplate/view/elements/svc_Common.html +++ b/httemplate/view/elements/svc_Common.html @@ -27,74 +27,69 @@ + % if ( $custnum ) { - <% include("/elements/header.html","View $label: $value") %> + <& /elements/header.html, mt("View [_1]: [_2]",$label,$value) &> - <% include( '/elements/small_custview.html', $custnum, '', 1, - "${p}view/cust_main.cgi") %> + <& /elements/small_custview.html, $custnum, '', 1, + "${p}view/cust_main.cgi" &>
% } else { - <% include("/elements/header.html","View $label: $value", menubar( - "Cancel this (unaudited) $label" => + <& /elements/header.html, mt("View [_1]: [_2]",$label,$value), menubar( + emt("Cancel this (unaudited) [_1]",$label) => "javascript:areyousure(\'${p}misc/cancel-unaudited.cgi?$svcnum\')" - )) %> + ) &> % } -Service #<% $svcnum %> -% my $url = $opt{'edit_url'} || $p. 'edit/'. $opt{'table'}. '.cgi?'; -| Edit this <% $label %> +% if ( $opt{radius_usage} ) { + <& svc_radius_usage.html, + 'svc' => $svc_x, + 'part_svc' => $part_svc, + 'cust_pkg' => $cust_pkg, + &> +% } -% unless ( $opt{'disable_unprovision'} ) { -| -Unprovision this Service -
+<% mt('Service #') |h %><% $svcnum %> +% if ( $custnum ) { +% my $url = $opt{'edit_url'} || $p. 'edit/'. $opt{'table'}. '.cgi?'; +<& /view/elements/svc_edit_link.html, 'svc' => $svc_x, 'edit_url' => $url &> % } +
<% ntable("#cccccc") %><% ntable("#cccccc",2) %> % foreach my $f ( @$fields ) { -% -% my($field, $type, $value, $hack_strict_refs); -% if ( ref($f) ) { -% $field = $f->{'field'}, -% $hack_strict_refs = \&{ $f->{'value'} } if $f->{'value'}; -% $value = $f->{'value'} ? &$hack_strict_refs($svc_x) : $svc_x->$field; -% $type = $f->{'type'} || 'text', -% } else { -% $field = $f; -% $value = $svc_x->$field; -% $type = 'text'; -% } -% -% my $columndef = $part_svc->part_svc_column($field); -% unless ($columndef->columnflag eq 'F' && !length($columndef->columnvalue)) { - +% my ($field, $label, $value) = &{ $format_field }($f); +% next if !$field; - <% ( $opt{labels} && exists $opt{labels}->{$field} ) - ? $opt{labels}->{$field} - : $field - %> + <% $label %> -% #eventually more options for