{extends file="admin-layout.tpl"}

{block name="page-title"}{intl l='Tools'}{/block}

{block name="check-resource"}admin.tools{/block}
{block name="check-access"}view{/block}

{block name="main-content"}
    <div class="configuration">

        <div id="wrapper" class="container">

            {module_include location='tools_top'}

            <h2>{intl l="Thelia tools"}</h2>

            <div class="row">

                <div class="col-md-4">
                    <div class="menu-list-table general-block-decorator">
                        <div class="table-responsive">
                            <table class="table table-striped table-condensed">
                                <caption>{intl l='General tools'}</caption>

                                {module_include location='tools_col1_top'}

                                {loop name="auth-coupon" type="auth" role="ADMIN" resource="admin.coupon"  access="VIEW"}
                                    <tr>
                                        <td><a href="{url path='/admin/coupon'}">{intl l="Coupons"}</a></td>
                                        <td><a class="btn btn-default btn-xs" href="{url path='/admin/coupon'}"><i class="glyphicon glyphicon-edit"></i></a></td>
                                    </tr>
                                {/loop}

                                {loop name="auth-export" type="auth" role="ADMIN" resource="admin.export"  access="VIEW"}
                                    <tr>
                                        <td><a href="{url path='/admin/export'}">{intl l="Export"}</a></td>
                                        <td><a class="btn btn-default btn-xs" href="{url path='/admin/export'}"><i class="glyphicon glyphicon-edit"></i></a></td>
                                    </tr>
                                {/loop}

                                {module_include location='tools_col1_bottom'}
                            </table>
                        </div>
                    </div>
                </div>

                {module_include location='configuration_bottom'}
            </div>
        </div>
    </div>
{/block}

{block name="javascript-last-call"}
    {module_include location='configuration-js'}
{/block}