diff options
author | ivan <ivan> | 2008-09-08 21:23:02 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-09-08 21:23:02 +0000 |
commit | 1918ae1ef4b40ff88f3331c72ae4440c3bbe7d48 (patch) | |
tree | 177a8bb2aeb7fd8e0d05a649e92bfebbc21b609f /httemplate | |
parent | 8a6a6e62f70f0c9b71e9171a1cca25417f8b5b06 (diff) |
also hide fixed+blank fields on service view, RT#3829
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/view/elements/svc_Common.html | 48 |
1 files changed, 26 insertions, 22 deletions
diff --git a/httemplate/view/elements/svc_Common.html b/httemplate/view/elements/svc_Common.html index b6d8e652f..a0b4e37b2 100644 --- a/httemplate/view/elements/svc_Common.html +++ b/httemplate/view/elements/svc_Common.html @@ -46,37 +46,40 @@ Service #<B><% $svcnum %></B> <BR> <% ntable("#cccccc") %><TR><TD><% 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($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)) { + <TR> + <TD ALIGN="right"> + <% ( $opt{labels} && exists $opt{labels}->{$field} ) + ? $opt{labels}->{$field} + : $field + %> + </TD> - <TR> - <TD ALIGN="right"> - <% ( $opt{labels} && exists $opt{labels}->{$field} ) - ? $opt{labels}->{$field} - : $field - %> - </TD> -% -% #eventually more options for <SELECT>, etc. fields -% +% #eventually more options for <SELECT>, etc. fields + <TD BGCOLOR="#ffffff"><% $svc_x->$field %><TD> - <TD BGCOLOR="#ffffff"><% $svc_x->$field %><TD> + </TR> - </TR> +% } +% % } -% foreach (sort { $a cmp $b } $svc_x->virtual_fields) { +% foreach (sort { $a cmp $b } $svc_x->virtual_fields) { <% $svc_x->pvf($_)->widget('HTML', 'view', $svc_x->getfield($_)) %> % } @@ -95,7 +98,6 @@ Service #<B><% $svcnum %></B> % } - <% joblisting({'svcnum'=>$svcnum}, 1) %> <% include('/elements/footer.html') %> @@ -134,6 +136,8 @@ my $svc_x = qsearchs({ my $cust_svc = $svc_x->cust_svc; my($label, $value, $svcdb) = $cust_svc->label; +my $part_svc = $cust_svc->part_svc; + my $pkgnum = $cust_svc->pkgnum; my($cust_pkg, $custnum); |