Revision 368

Date:
2013/07/16 11:38:07
Author:
ahitrov
Revision Log:
More informative and user-friendly block view

Files:

Legend:

 
Added
 
Removed
 
Modified
  • utf8/core/comps/contenido/document_filter_list.html

     
    6 6 <div style="font-size:12px; font-family:Arial; text-align:center;">
    7 7 <& /inc/pages_.msn, p => $p, n => $size, total => $total, params => {%ARGS} &></div>
    8 8 % }
    9 % my @props = sort { $a->{column} <=> $b->{column} } grep { exists $_->{column} } $docs->[0]->required_properties;
    9 % my @props = sort { $a->{column} <=> $b->{column} } grep { exists $_->{column} && $_->{column} } $docs->[0]->structure;
    10 10 <table width="100%" border="0" cellpadding="4" cellspacing="0" class="tlistdocs">
    11 11 <tr bgcolor="#efefef">
    12 12 % foreach my $prop (@props) {
     
    25 25 <tr>
    26 26 % foreach my $prop (@props) {
    27 27 % my $attr = $prop->{attr};
    28 % if ( $attr =~ /dtime/ ) {
    28 % if ( $prop->{type} =~ /(datetime|date)/ ) {
    29 29 <td><% $a1 %><& "/contenido/components/show_dtime.msn", dtime => $doc->$attr &><% $a2 %></td>
    30 % }else{
    30 % } elsif ( $prop->{type} eq 'status' ) {
    31 % my ($case) = grep { $_->[0] == $doc->$attr } @{$prop->{cases}};
    32 <td><% ref $case ? $case->[1] : 'неизвестно ['.$doc->$attr.']' %></td>
    33 % } else {
    31 34 <td><% $a1.$doc->$attr.$a2 %></td>
    32 35 % }
    33 36 % }