<?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">
    <body>
        <referenceContainer name="content">
            <block class="Magento\Sales\Block\Adminhtml\Order\Status" name="sales_order_status.grid.container">
                <block class="Magento\Backend\Block\Widget\Grid" name="sales_order_status.grid" as="grid">
                    <arguments>
                        <argument name="id" xsi:type="string">sales_order_status_grid</argument>
                        <argument name="dataSource" xsi:type="object">Magento\Sales\Model\ResourceModel\Status\Collection</argument>
                        <argument name="default_sort" xsi:type="string">state</argument>
                        <argument name="default_dir" xsi:type="string">desc</argument>
                        <argument name="pager_visibility" xsi:type="string">1</argument>
                    </arguments>
                    <block class="Magento\Backend\Block\Widget\Grid\ColumnSet" as="grid.columnSet" name="sales_order_status.grid.columnSet">
                        <arguments>
                            <argument name="rowUrl" xsi:type="array">
                                <item name="path" xsi:type="string">sales/order_status/edit</item>
                                <item name="extraParamsTemplate" xsi:type="array">
                                    <item name="status" xsi:type="string">getStatus</item>
                                </item>
                            </argument>
                            <argument name="filter_visibility" xsi:type="string">1</argument>
                        </arguments>
                        <block class="Magento\Backend\Block\Widget\Grid\Column" as="label">
                            <arguments>
                                <argument name="header" xsi:type="string" translate="true">Status</argument>
                                <argument name="index" xsi:type="string">label</argument>
                            </arguments>
                        </block>
                        <block class="Magento\Backend\Block\Widget\Grid\Column" as="status">
                            <arguments>
                                <argument name="header" xsi:type="string" translate="true">Status Code</argument>
                                <argument name="index" xsi:type="string">status</argument>
                                <argument name="type" xsi:type="string">text</argument>
                                <argument name="filter_index" xsi:type="string">main_table.status</argument>
                                <argument name="width" xsi:type="string">200</argument>
                            </arguments>
                        </block>
                        <block class="Magento\Backend\Block\Widget\Grid\Column" as="is_default">
                            <arguments>
                                <argument name="header" xsi:type="string" translate="true">Default Status</argument>
                                <argument name="index" xsi:type="string">is_default</argument>
                                <argument name="type" xsi:type="string">options</argument>
                                <argument name="sortable" xsi:type="string">0</argument>
                                <argument name="column_css_class" xsi:type="string">col-status-default</argument>
                                <argument name="header_css_class" xsi:type="string">col-status-default</argument>
                                <argument name="options" xsi:type="array">
                                    <item name="no" xsi:type="array">
                                        <item name="value" xsi:type="string">0</item>
                                        <item name="label" xsi:type="string" translate="true">No</item>
                                    </item>
                                    <item name="yes" xsi:type="array">
                                        <item name="value" xsi:type="string">1</item>
                                        <item name="label" xsi:type="string" translate="true">Yes</item>
                                    </item>
                                </argument>
                            </arguments>
                        </block>
                        <block class="Magento\Backend\Block\Widget\Grid\Column" as="visible_on_front">
                            <arguments>
                                <argument name="header" xsi:type="string" translate="true">Visible On Storefront</argument>
                                <argument name="index" xsi:type="string">visible_on_front</argument>
                                <argument name="type" xsi:type="string">options</argument>
                                <argument name="sortable" xsi:type="string">0</argument>
                                <argument name="column_css_class" xsi:type="string">col-status-visible</argument>
                                <argument name="header_css_class" xsi:type="string">col-status-visible</argument>
                                <argument name="options" xsi:type="array">
                                    <item name="no" xsi:type="array">
                                        <item name="value" xsi:type="string">0</item>
                                        <item name="label" xsi:type="string" translate="true">No</item>
                                    </item>
                                    <item name="yes" xsi:type="array">
                                        <item name="value" xsi:type="string">1</item>
                                        <item name="label" xsi:type="string" translate="true">Yes</item>
                                    </item>
                                </argument>
                            </arguments>
                        </block>
                        <block class="Magento\Sales\Block\Status\Grid\Column\State" as="state">
                            <arguments>
                                <argument name="header" xsi:type="string" translate="true">State Code and Title</argument>
                                <argument name="index" xsi:type="string">state</argument>
                                <argument name="type" xsi:type="string">text</argument>
                            </arguments>
                        </block>
                        <block class="Magento\Sales\Block\Status\Grid\Column\Unassign" as="unassign">
                            <arguments>
                                <argument name="header" xsi:type="string" translate="true">Action</argument>
                                <argument name="index" xsi:type="string">unassign</argument>
                                <argument name="type" xsi:type="string">text</argument>
                                <argument name="sortable" xsi:type="string">0</argument>
                                <argument name="filter" xsi:type="string">0</argument>
                                <argument name="column_css_class" xsi:type="string">col-actions</argument>
                                <argument name="header_css_class" xsi:type="string">col-actions</argument>
                            </arguments>
                        </block>
                    </block>
                </block>
            </block>
        </referenceContainer>
    </body>
</page>
