Skip to content

Commit

Permalink
closes #9
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaloebiz committed Mar 22, 2017
1 parent dbcb2a1 commit b8cbd22
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 4 deletions.
8 changes: 8 additions & 0 deletions view/adminhtml/layout/mailchimp_errors_grid.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/layout_generic.xsd">
<update handle="formkey"/>
<update handle="mailchimp_error_grid_block"/>
<container name="root">
<block class="Magento\Backend\Block\Widget\Grid\Container" name="mailchimp.error.grid.container" template="Magento_Backend::widget/grid/container/empty.phtml"/>
</container>
</layout>
1 change: 0 additions & 1 deletion view/adminhtml/layout/mailchimp_errors_index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@
</referenceContainer>
</body>
</page>

34 changes: 31 additions & 3 deletions view/adminhtml/ui_component/mailchimp_errors_grid.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,41 @@
<item name="config" xsi:type="array">
<item name="component" xsi:type="string">Magento_Ui/js/grid/provider</item>
<item name="update_url" xsi:type="url" path="mui/index/render"/>
<item name="storageConfig" xsi:type="array">
<item name="indexField" xsi:type="string">id</item>
</item>
<!--<item name="storageConfig" xsi:type="array">-->
<!--<item name="indexField" xsi:type="string">id</item>-->
<!--</item>-->
</item>
</argument>
</argument>
</dataSource>

<listingToolbar name="listing_top">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="sticky" xsi:type="boolean">true</item>
</item>
</argument>
<bookmark name="bookmarks"/>
<columnsControls name="columns_controls"/>
<filters name="listing_filters">
<filterSelect name="store_id">
<argument name="optionsProvider" xsi:type="configurableObject">
<argument name="class" xsi:type="string">Magento\Store\Ui\Component\Listing\Column\Store\Options</argument>
</argument>
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="provider" xsi:type="string">${ $.parentName }</item>
<item name="dataScope" xsi:type="string">store_id</item>
<item name="caption" xsi:type="string" translate="true">All Store Views</item>
<item name="label" xsi:type="string" translate="true">Store View</item>
</item>
</argument>
</filterSelect>
</filters>
<paging name="listing_paging"/>
</listingToolbar>


<columns name="mailchimp_errors_columns">
<!--The list of columns-->
<column name="id">
Expand Down

0 comments on commit b8cbd22

Please sign in to comment.