Revision 271

Date:
2013/02/01 20:50:31
Author:
ahitrov
Revision Log:
Some bug fixes
Files:

Legend:

 
Added
 
Removed
 
Modified
  • utf8/core/comps/contenido/components/inputs/string.msn

     
    1 <input <% $prop->{readonly} ? 'readonly ' : '' %> type="text" name="<% $name %>" id="<% $name%>_text" size="60" value="<% defined $check ? html_escape($check) : $prop->{default} %>" style="width: 95%;" onkeyup="<% $name %>_changed();">
    1 <input <% $prop->{readonly} || $prop->{virtual} ? 'readonly ' : '' %> type="text" name="<% $name %>" id="<% $name%>_text" size="60" value="<% defined $check ? html_escape($check) : $prop->{default} %>" style="width: 95%;" onkeyup="<% $name %>_changed();">
    2 2
    3 3 <table id="<% $name %>_prev_table" style="width: 95%; display: none;" cellspacing="0" cellpadding="0" border="0">
    4 4 <tr>
  • utf8/core/comps/contenido/components/object_form.msn

     
    39 39 {
    40 40
    41 41 my $prop = $properties[$_];
    42 my $name = $prop->{attr};
    42 43 next if ($prop->{hidden} == 1) || ($prop->{type} eq 'image') || ($prop->{type} eq 'external') || ($prop->{type} =~ /^array/i) || ($prop->{type} =~ /^image/) || ($prop->{type} eq 'multimedia') || ($prop->{type} eq 'multimedia_new') || ($prop->{type} eq 'audio');
    43 44
    44 45 </%perl>
     
    48 49 <tr>
    49 50 % if( ( $prop->{type} eq 'flag' ) || ($prop->{type} eq 'checkbox') )
    50 51 % {
    51 <td><& "/contenido/components/inputs/checkbox.msn", prop => $prop, object=>$object, options=>$options, name => $prop->{attr}, check => $object->{$prop->{attr}}, id => $object->id() &></td>
    52 <td><& "/contenido/components/inputs/checkbox.msn", prop => $prop, object=>$object, options=>$options, name => $name, check => ($object->$name || $object->{$name}), id => $object->id() &></td>
    52 53 % }
    53 54 <td nowrap><b><% $prop->{rusname} %></b>&nbsp;/</td>
    54 55 <td align="right" nowrap><font color="#888888" size="-1">&nbsp;name="<% $prop->{attr} %>"</font></td>
     
    61 62 </td></tr>
    62 63 % if ($prop->{type} eq 'parent')
    63 64 % {
    64 <tr><td><& "/contenido/components/inputs/$prop->{type}.msn", prop => $prop, object=>$object, options=>$options, name => $prop->{attr}, check => ($object->{$prop->{attr} } || $prop->{default} || $sect_id ), id => $object->id() &></td></tr>
    65 <tr><td><& "/contenido/components/inputs/$prop->{type}.msn", prop => $prop, object=>$object, options=>$options, name => $name, check => ($object->$name || $prop->{default} || $sect_id ), id => $object->id() &></td></tr>
    65 66 % }
    66 67 % elsif( ( $prop->{type} ne 'flag' ) && ($prop->{type} ne 'checkbox') )
    67 68 % {
    68 <tr><td><& "/contenido/components/inputs/$prop->{type}.msn", prop => $prop, object=>$object, options => $options, name => $prop->{attr}, check => $object->{$prop->{attr}}, id => ($object->id() || 0) &></td></tr>
    69 <tr><td><& "/contenido/components/inputs/$prop->{type}.msn", prop => $prop, object=>$object, options => $options, name => $name, check => ($object->$name || $object->{$name}), id => ($object->id() || 0) &></td></tr>
    69 70 % }
    70 71 % }
    71 72 <tr>