• sections.html

    449 450  
    79 79 % if ($total || scalar @documents || defined($alpha) || defined($search) ) {
    80 80 % if ($section_access == 2) {
    81 81 <& "/contenido/components/new_objects_form.msn", proto => 'documents',
    82 sect_id => $owner->id,
    82 sect_id => $owner->id, section => $owner,
    83 83 default => ($owner->default_document_class ? $owner->default_document_class : undef) &>
    84 84 % }
    85 85 <div style="font-size:12px; font-family:Arial;">
     
    91 91 % ## Форма поиска. Работает при включенном фильтре класса
    92 92 % ## и описанной для класса функции search_fields
    93 93 % ########################################################
    94 % if ( $filter{class} ) {
    95 % my $document = $filter{class}->new ($keeper);
    94 % if ( $filter{class} || $filter{table} ) {
    95 % my ($document) = $filter{class} ? ($filter{class}->new( $keeper )) : grep { $_->new( $keeper )->class_table eq $owner->default_table_class } @{ $user->get_available_classes };
    96 96 % my @fields = $document->search_fields;
    97 97 % if ( @fields ) {
    98 98 % my @props = $document->required_properties;