Trac

Changeset 15996


Ignore:
Timestamp:
Feb 15, 2012, 11:56:27 PM (3 years ago)
Author:
Anton Lesnikov
Message:

Page Builder checklists -> page deletable

Location:
trunk/studio/templates/base
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/studio/templates/base/bp_block_panel_top.html

    r15945 r15996  
    66        <button class="bx-btn bx-def-margin-sec-left" onclick="javascript:__js_object__.performAction('__action_page_edit__')"><bx_text:_adm_bp_btn_settings /></button> 
    77        <button class="bx-btn bx-def-margin-sec-left" onclick="javascript:__js_object__.performAction('__action_block_create__')"><bx_text:_adm_bp_btn_add_block /></button> 
    8         <button class="bx-btn bx-def-margin-sec-left" onclick="javascript:__js_object__.performAction('__action_page_delete__');"><bx_text:_adm_bp_btn_delete /></button> 
     8        <bx_if:can_delete> 
     9            <button class="bx-btn bx-def-margin-sec-left" onclick="javascript:__js_object__.performAction('__action_page_delete__');"><bx_text:_adm_bp_btn_delete /></button> 
     10        </bx_if:can_delete> 
    911    </bx_if:show_actions> 
    1012</div> 
  • trunk/studio/templates/base/scripts/BxBaseStudioBuilderPage.php

    r15994 r15996  
    212212            $aTmplVarsActions = array( 
    213213                'js_object' => $this->getPageJsObject(), 
    214                 'url_view' => BX_DOL_URL_ROOT . $this->aPageRebuild['url'],  
    215                 'action_page_delete' => $this->sActionPageDelete, 
    216                 'action_page_edit' => $this->sActionPageEdit, 
     214                'url_view' => BX_DOL_URL_ROOT . $this->aPageRebuild['url'], 
     215                'action_page_edit' => $this->sActionPageEdit, 
     216                'bx_if:can_delete' => array( 
     217                    'condition' => (int)$this->aPageRebuild['deletable'] == 1, 
     218                    'content' => array( 
     219                        'action_page_delete' => $this->sActionPageDelete, 
     220                    ) 
     221                ), 
    217222                'action_block_create' => $this->sActionBlockCreate, 
    218223            ); 
Note: See TracChangeset for help on using the changeset viewer.