<?xml version="1.0"?>
<!--
/**
 * Copyright © 2013-2017 Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <update handle="sales_transactions_grid_block"/>
    <body>
        <referenceContainer name="admin.scope.col.wrap" htmlClass="admin__old" /> <!-- ToDo UI: remove this wrapper with old styles removal. The class name "admin__old" is for tests only, we shouldn't use it in any way -->
        
        <referenceBlock name="sales.transactions.grid">
            <arguments>
                <argument name="id" xsi:type="string">order_transactions</argument>
                <argument name="dataSource" xsi:type="object">
                    <updater>Magento\Sales\Model\Grid\CollectionUpdater</updater>
                </argument>
                <argument name="use_ajax" xsi:type="boolean">true</argument>
                <argument name="default_sort" xsi:type="string">created_at</argument>
                <argument name="default_dir" xsi:type="string">DESC</argument>
                <argument name="save_parameters_in_session" xsi:type="boolean">true</argument>
                <argument name="grid_url" xsi:type="url" path="*/*/transactions">
                    <param name="_current">1</param>
                </argument>
            </arguments>
            <referenceBlock name="sales.transactions.grid.columnSet">
                <arguments>
                    <argument name="id" xsi:type="string">order_transactions</argument>
                    <argument name="rowUrl" xsi:type="array">
                        <item name="path" xsi:type="string">sales/transactions/view</item>
                        <item name="params" xsi:type="array">
                            <item name="_current" xsi:type="string">1</item>
                        </item>
                        <item name="extraParamsTemplate" xsi:type="array">
                            <item name="txn_id" xsi:type="string">getId</item>
                        </item>
                    </argument>
                </arguments>
            </referenceBlock>
        </referenceBlock>
    </body>
</page>
