{% set userData = app.session.get('userData') %}
<form method="POST" id="form-patientTransfer" style="height: 30%;">
    <h5>{{ title }}</h5>
    <div class="large-12 columns">
        <div class="row">
            <div class="large-3 large-text-right columns">
                <label for="patient">Patient</label>
            </div>
            <div class="large-9 columns">
                <input type="text" id="patient-name">
                <input type="hidden" id="patient-id">
            </div>
        </div>
    </div>
    <hr>
    <div class="row-max-width-initial">
        <div class="small-12 columns no-padding-right">
            <div class="button-container text-right">
                <a href="javascript:void(0)" class="button just-continue href-patient-transfer-action"
                   data-message="Are you sure you want to transfer encounter to this patient?"
                   style="margin-left: 10px; margin-right: 0;"
                >Save</a>
                <a href="javascript:void(0)" class="button secondary" data-close style="margin-left: 10px; margin-right: 0;">Close</a>
            </div>
        </div>
    </div>
    <script>
        let autoCompleteUrl = '{{ path('patient_autocomplete') }}' ;
        global.autocomplete.bind(autoCompleteUrl, '#patient-name', '#patient-id');
    </script>
</form>