{% 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>Patient</label>
                                    <input type="text" id="form-patient-fullName" />
                                    <input type="hidden" id="form-patient-id" />
                                </div>
                            </div>
                            <div class="row max-width-initial">
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>Medication</label>
                                    <input type="text" id="form-medication" />
                                    <input type="hidden" id="form-medication-id" />
                                </div>
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>Medication Type</label>
                                    <input type="text" id="form-medicationType" />
                                    <input type="hidden" id="form-medicationType-id" />
                                </div>
                            </div>
                        </div>
                    </div>
                    {%
                        include '@RxConnexion/Report/buttons.html.twig'
                        with {
                        'preview_url': 'main/report/medication/preview',
                        'export_to_pdf_url': 'main/report/medication/export_to_pdf',
                        'export_to_excel_url': 'main/report/medication/export_to_excel',
                        'paramsIds': 'form-patient-id|form-medication-id|form-medicationType-id'
                    }
                    %}
                </div>
            </div>
        </div>
    </div>
    {% include '@RxConnexion/Admin/js.html.twig' %}
    <script language="javascript">
        //<![CDATA[
        medication.settings.patient_autocompleteUrl = '{{ path('patient_autocomplete') }}';
        medication.settings.medication_autocompleteUrl = '{{ path('medication_autocomplete') }}';
        medication.settings.medicationType_autocompleteUrl = '{{ path('medication_type_autocomplete') }}';
        jQ(document).ready(function(){
            report.init('{{ app.environment }}');
            medication.init();
        });
        //]]>
    </script>
{% endblock %}