X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Felements%2Fsvc_Common.html;h=6c5c9020180c19f2e9380b1db64735160bd16d19;hb=1af8ff7f48f7259fc99f090c301c84b9680fdb4d;hp=852640e0c49341d7139aee4a5ecdc39086273493;hpb=39120f69d4372781aba0df58d06736be450009e1;p=freeside.git diff --git a/httemplate/view/elements/svc_Common.html b/httemplate/view/elements/svc_Common.html index 852640e0c..6c5c90201 100644 --- a/httemplate/view/elements/svc_Common.html +++ b/httemplate/view/elements/svc_Common.html @@ -18,71 +18,78 @@ # defaults to "edit/$table.cgi?", will have svcnum appended 'edit_url' => + + #at the very bottom (well, as low as you can go from here) + 'html_foot' => '', + ) + + + % 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, + &> +% } + +<% 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); -% if ( ref($f) ) { -% $field = $f->{'field'}, -% $type = $f->{'type'} || 'text', -% } else { -% $field = $f; -% $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