% if ( ref $doc ) {
% my $style = $link->contenido_status_style ? $link->contenido_status_style : $link->status ? '' : ' color:#606060;';
|
<% $doc->name %> |
% } else {
|
!!!висячая связь!!! |
% }
% if ( @props ) {
% foreach my $prop ( @props ) {
% my $field = $prop->{attr};
% if ( exists $prop->{inline} ) {
% $inline_status = 1;
% if ( $prop->{type} =~ /^(string|integer|float)$/ ) {
|
% } elsif ($prop->{type} eq 'checkbox') {
% my $checked = $link->$field ? ' checked' : '';
>
% } elsif ($prop->{type} eq 'select') {
% my $options = {};
% if ($toopi && (ref($toopi) eq 'HASH') && (exists($toopi->{$link->class}))) {
% %{ $options } = %{ $toopi->{$link->class} };
% }
% my $values = $options->{$prop->{attr}};
|
% } elsif ($prop->{type} eq 'status') {
% my $cases = $prop->{cases};
% if ( ref $cases eq 'ARRAY' ) {
|
% }
% }
% } else {
| <% $link->$field %> |
% }
% }
% }
редактировать
% if ( $inline_status ) {
% }
|
% }