<form action="#" autocomplete="off" @submit.prevent="guardarFactor" id="modal_form_factor">
    <div class="modal fade" id="modal_factor" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog" 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">
                    <table class="table">
                        <thead>
                            <tr>
                                <th>Divisa</th>
                                <th></th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="row in divisasDiferentes" :key="row.id">
                                <td>{{ row.descripcion }}</td>
                                <td class="text-right">
                                    <input type="text" class="text-right" id="factord" v-model.lazy="row.factor">
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <div class="alert alert-warning" v-for="row in errorFormFactor">{{ row }}</div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary  btn-sm" data-dismiss="modal">Cerrar</button>
                    <button v-if="cargando" class="btn btn-primary btn-sm is-loading" id="btn_actualizar_factor" disabled>Actualizando</button>
                    <button v-else type="submit" class="btn btn-primary  btn-sm" id="btn_actualizar_factor">Actualizar</button>
                </div>
            </div>
        </div>
    </div>
</form>