{% extends '@RxConnexion/Admin/content.html.twig' %}
{% block content %}
    <div class="row max-width-initial">
        <div class="small-12 columns">
            <div class="content-container has-loading">
                <div class="content-container-content hide">
                    <div class="row max-width-initial">
                        <div class="columns small-3">
                            <label for="transaction">Transaction</label>
                            <input type="text" class="filter" id="transaction">
                        </div>
                        <div class="columns small-3">
                            <label for="action">Action</label>
                            <input type="text" class="filter" id="action">
                        </div>
                        <div class="columns small-3">
                            <label for="table">Table</label>
                            <input type="text" class="filter" id="table">
                        </div>
                        <div class="columns small-3">
                            <label for="id">ID</label>
                            <input type="text" class="filter" id="id">
                        </div>
                    </div>
                    <table class="display responsive" id="auditTrail-datalist" width="100%">
                        <thead>
                        <tr>
                            <th>Date/Time</th>
                            <th>User</th>
                            <th>Transaction</th>
                            <th>Action</th>
                            <th>Table / ID</th>
                            <th></th>
                        </tr>
                        </thead>
                        <tbody></tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    {% include '@RxConnexion/Admin/js.html.twig' %}
    <script language="javascript">
        //<![CDATA[
        auditTrail.settings.ajaxUrl = '{{ path('audit_trail_ajax_list') }}';
        jQ(document).ready(auditTrail.init);
        //]]>
    </script>
{% endblock %}