%# vim:syn=mason
<& "/contenido/components/header.msn" &>
<& "/contenido/components/naviline.msn", sect_id => $owner->id &>
% if ($error) {
<% $error %>
% }
% if (!ref($document)) {
% if ($id) {
Документ с идентификатором <% $id %> не найден
% } elsif ($class) {
|
% } else {
Не верный вызов документа!!! (отсутствуют id и class одновременно)
% }
% } else {
<& "/contenido/components/obj_list_js.msn", object => $document &>
<& "/contenido/components/object_form.msn",
object => $document,
proto => 'documents',
sect_id => $owner->id,
clone => $clone,
filter_params => \%filter_params,
&>
% if (ref($document) && ($document->id))
% {
\
<& "/contenido/components/document_sections.msn", document => $document &>\
<& "/contenido/components/user_sections.msn", luser => $document &>\
% if ( $m->comp_exists ("/contenido/components/pbase_rubrics.msn") ) {
<& "/contenido/components/pbase_rubrics.msn", document => $document &>\
% }
|
\
% if ( $m->comp_exists ("/contenido/components/pbase_links.msn") ) {
<& "/contenido/components/pbase_links.msn", document => $document &>\
% }
|
% }
% }