<form action="#" autocomplete="off" @submit.prevent="editarGuardar" id="form_modal_banco">
    <div class="modal fade" id="modal_banco" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-md" role="document">
            <div class="modal-content">
                <div class="modal-header mh">
                    <h5 class="modal-title">{{ titulo }}</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <div class="form-group">
                        <label for="bancodigo">Código</label>
                        <div class="input-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text">
                                    <i class="fas fa-hashtag"></i>
                                </span>
                            </div>
                            <input type="text" id="bancodigo" v-model="dataForm.codigo" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="bandescripcion">Descripción</label>
                        <div class="input-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text">
                                    <i class="fas fa-question-circle"></i>
                                </span>
                            </div>
                            <input type="text" id="bandescripcion" v-model="dataForm.descripcion" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="banpais">Paises</label>
                        <div class="input-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text">
                                    <i class="fas fa-question-circle"></i>
                                </span>
                            </div>
                            <select id="banpais" v-model="dataForm.pais" class="form-control custom-select">
                                <option disabled value="">Seleccione un Pais</option>
                                <?php foreach ($paises as $row) : ?>
                                    <option value="<?= $row['pa_id'] ?>"><?= $row['pa_nombre'] ?></option>
                                <?php endforeach; ?>
                            </select>
                        </div>
                    </div>
                    <div class="alert alert-warning" v-if="errorForm.length">
                        <p class="mb-1" v-for="row in errorForm">{{ row }}</p>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary  btn-sm" data-dismiss="modal">Cerrar</button>
                    <button type="submit" class="btn btn-primary  btn-sm">{{ accion }}</button>
                </div>
            </div>
        </div>
    </div>
</form>
