{% extends '@RxConnexion/Admin/content.html.twig' %}
{% block content %}
    <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('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 class="large-6 medium-6 small-12 columns">
                                    <label>Clinician</label>
                                    <input type="text" id="clinician" />
                                    <input type="hidden" id="clinician_id" />
                                </div>
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>Exam Type</label>
                                    <input type="text" id="exam_type" />
                                    <input type="hidden" id="exam_type_id" />
                                </div>
                            </div>
                        </div>
                    </div>
                    {%
                        include '@RxConnexion/Report/buttons.html.twig'
                        with {
                        'preview_url': 'main/report/productivity/preview',
                        'export_to_pdf_url': 'main/report/productivity/export_to_pdf',
                        'export_to_excel_url': 'main/report/productivity/export_to_excel',
                        'paramsIds': 'date_from|date_to|clinician_id|exam_type_id'
                    }
                    %}
                </div>
            </div>
        </div>
    </div>
    {% include '@RxConnexion/Admin/js.html.twig' %}
    <script language="javascript">
        //<![CDATA[
        productivity.settings.clinician_autocompleteUrl = '{{ path('provider_autocomplete') }}';
        productivity.settings.examType_autocompleteUrl = '{{ path('chart_type_autocomplete') }}';

        jQ(document).ready(function(){
            report.init('{{ app.environment }}');
            productivity.init();
        });
        //]]>
    </script>
{% endblock %}