%# 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 {
% if ( $document->postman_id == $user->id || $active_rights == 0 ) {
<& "/contenido/components/obj_list_js.msn", object => $document &>
<& "/contenido/webshop/components/order_form.msn",
context => 'post',
object => $document,
proto => 'documents',
sect_id => $owner->id,
clone => $clone,
filter_params => \%filter_params,
&>
% } else {
% my $profile = $keeper->get_user_by_id( $document->postman_id );
% }
% }