Revision 645

Date:
2017/04/04 14:16:42
Author:
ahitrov
Revision Log:
Link to the object URL in object editing form (if defined object's 'get_url' method).

Files:

Legend:

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

     
    10 10 <tr>
    11 11 <td style="font-size:110%;">
    12 12 <b><% (ref($object) && $object->id() ) ? 'Редактирование' : 'Создание' %> <% $PROTOS->{$proto}->[0] %> типа "<% $object->class_name() %>"</b>
    13 % if ( $object->get_url ) {
    14 <div style="margin-top:5px; font-size:85%;">Ссылка: <a href="<% $object->get_url %>"><% $object->get_url %></a></div>
    15 % }
    13 16 </td>
    14 17 <td align="right">
    15 18 % unless ( $proto eq 'sections' && $object->id == 1 ) {