<?xml version="1.0"?>
<!--
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magento.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magento.com for more information.
 *
 * @category    design
 * @package     default_default
 * @copyright   Copyright (c) 2006-2017 X.commerce, Inc. and affiliates (http://www.magento.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
-->

<layout>
    <!-- admin acl users edit page -->
    <adminhtml_permissions_user_edit>
        <reference name="left">
            <block type="adminhtml/permissions_user_edit_tabs" name="adminhtml.permissions.user.edit.tabs"/>
        </reference>
        <reference name="content">
            <block type="adminhtml/permissions_user_edit" name="adminhtml.permissions.user.edit"/>
        </reference>
        <reference name="js">
            <block type="adminhtml/template" name="adminhtml.permissions.user.roles.grid.js" template="permissions/user_roles_grid_js.phtml"/>
        </reference>
    </adminhtml_permissions_user_edit>
    <!-- admin permissions block edit page -->
    <adminhtml_permissions_block_edit>
        <reference name="content">
            <block type="adminhtml/permissions_block_edit" name="adminhtml.permissions.block.edit"/>
        </reference>
    </adminhtml_permissions_block_edit>
    <!-- admin permissions variable edit page -->
    <adminhtml_permissions_variable_edit>
        <reference name="content">
            <block type="adminhtml/permissions_variable_edit" name="adminhtml.permissions.variable.edit"/>
        </reference>
    </adminhtml_permissions_variable_edit>
    <!-- admin acl roles grid page -->
    <adminhtml_permissions_role_index>
        <reference name="content">
            <block type="adminhtml/permissions_roles" name="adminhtml.permission.role.index" template="permissions/roles.phtml">
                <block type="adminhtml/permissions_grid_role" name="adminhtml.permission.role.grid" as="grid"/>
            </block>
        </reference>
    </adminhtml_permissions_role_index>
    <adminhtml_permissions_role_rolegrid>
        <remove name="root"/>
        <block type="adminhtml/permissions_grid_role" name="adminhtml.permission.role.grid"/>
    </adminhtml_permissions_role_rolegrid>

    <!-- admin acl roles edit page -->
    <adminhtml_permissions_role_editrole>
        <reference name="left">
            <block type="adminhtml/permissions_editroles" name="adminhtml.permissions.editroles"/>
        </reference>
    </adminhtml_permissions_role_editrole>
    <adminhtml_system_config_edit>
        <reference name="content">
            <block type="adminhtml/notification_curl" name="notification_curl" as="notification_curl" template="notification/curl.phtml"/>
        </reference>
        <reference name="left">
            <block type="adminhtml/system_config_switcher" name="adminhtml.system.config.switcher" before="-"/>
        </reference>
    </adminhtml_system_config_edit>
    <adminhtml_dashboard_index>
        <reference name="content">
            <block type="adminhtml/dashboard" name="dashboard">
                <block type="adminhtml/store_switcher" name="store_switcher" as="store_switcher" template="store/switcher.phtml">
                    <action method="setUseConfirm"><params>0</params></action>
                </block>
            </block>
        </reference>
    </adminhtml_dashboard_index>
    <adminhtml_cache_index>
        <reference name="content">
            <block type="adminhtml/cache" name="cache"></block>
            <block type="adminhtml/cache_additional" name="cache.additional" template="system/cache/additional.phtml"></block>
        </reference>
    </adminhtml_cache_index>
</layout>
