{% 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>Affiliate/Clinic</label>
                                    <input type="text" id="form-affiliate" />
                                    <input type="hidden" id="form-affiliate-id" />
                                </div>
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>Referring Affiliate</label>
                                    <input type="text" id="form-referring-affiliate" />
                                    <input type="hidden" id="form-referring-affiliate-id" />
                                </div>
                            </div>
                            <div class="row max-width-initial">
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>Sales Agent</label>
                                    <input type="text" id="form-sales-agent" />
                                    <input type="hidden" id="form-sales-agent-id" />
                                </div>
                            </div>
                        </div>
                    </div>
                    {%
                        include '@RxConnexion/Report/buttons.html.twig'
                        with {
                        'preview_url': 'main/report/affiliation/preview',
                        'export_to_pdf_url': 'main/report/affiliation/export_to_pdf',
                        'export_to_excel_url': 'main/report/affiliation/export_to_excel',
                        'paramsIds': 'form-affiliate-id|form-referring-affiliate-id|form-sales-agent-id'
                    }
                    %}
                </div>
            </div>
        </div>
    </div>
    {% include '@RxConnexion/Admin/js.html.twig' %}
    <script language="javascript">
        //<![CDATA[
        medical_institution.settings.affiliation_autocompleteUrl = '{{ path('referring_health_facility_autocomplete') }}';
        medical_institution.settings.referring_affiliate_autocompleteUrl = '{{ path('referring_provider_autocomplete') }}';
        medical_institution.settings.salesAgent_autocompleteUrl = '{{ path('sales_agent_autocomplete') }}';
        jQ(document).ready(function(){
            report.init('{{ app.environment }}');
            medical_institution.init();
        });
        //]]>
    </script>
{% endblock %}