{% extends '@RxConnexion/Admin/content.html.twig' %}
{% block content %}
    <style>
        #pdf { display: none;}
    </style>
    <div class="row max-width-initial">
        <div class="small-12 columns">
            <div class="content-container">
                <div class="content-container-content">
                    <div class="row max-width-initial">
                        <div class="large-12 columns">
                            <div class="row max-width-initial">
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>Date From</label>
                                    <input type="text" class="date" id="date_from" value="{{ 'now'| date_modify('first day of this month') | date('m-d-Y') }}" />
                                </div>
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>Date To</label>
                                    <input type="text" class="date" id="date_to" value="{{ 'now'|date('m/d/Y') }}" />
                                </div>
                            </div>
                            <div class="row max-width-initial">
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>User</label>
                                    <input type="text" id="form-accountUser-fullName" />
                                    <input type="hidden" id="form-accountUser-id" />
                                </div>
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>Module</label>
                                    <select id="table_desc">
                                        <option value="null">All
                                        {% for tl in tableList %}
                                            <option value="{{ tl.table_name }}">{{ tl.tran_label }}</option>
                                        {% endfor %}
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                    {%
                        include '@RxConnexion/Report/buttons.html.twig'
                        with {
                        'preview_url': 'main/report/report_cbt_tracker/preview',
                        'export_to_pdf_url': 'main/report/report_cbt_tracker/export_to_pdf',
                        'export_to_excel_url': 'main/report/report_cbt_tracker/export_to_excel',
                        'paramsIds': 'date_from|date_to|form-accountUser-id|table_desc'
                    }
                    %}
                </div>
            </div>
        </div>
    </div>
    {% include '@RxConnexion/Admin/js.html.twig' %}
    <script language="javascript">
        //<![CDATA[
        cbtTracker.settings.account_user_autocompleteUrl = '{{ path('account_user_autocomplete') }}';
        jQ(document).ready(function(){
            report.init('{{ app.environment }}');
            cbtTracker.init();
        });
        //]]>
    </script>
{% endblock %}