falta mirar en la base de datos si guardo el tipo de moneda
This commit is contained in:
@@ -5,15 +5,16 @@
|
||||
import type { Propiedad } from "../types";
|
||||
import { urlG } from "../stores/urlStore";
|
||||
|
||||
let propiedad: Propiedad = {
|
||||
let propiedad = $state({
|
||||
ubicacion: "",
|
||||
canthabitaciones: 1,
|
||||
piso: 0,
|
||||
letra: "",
|
||||
email: localStorage.getItem("email") || "",
|
||||
idtipropiedad: 1,
|
||||
iddivisa:0,
|
||||
monto: 1,
|
||||
};
|
||||
});
|
||||
|
||||
let token = sessionStorage.getItem("token");
|
||||
let mostrarModal = $state(false);
|
||||
@@ -116,6 +117,31 @@
|
||||
/>
|
||||
<label for="letra">Letra</label>
|
||||
</div>
|
||||
|
||||
<div class="form-floating mb-3">
|
||||
<h6 class="form-floating form-label">Moneda</h6>
|
||||
<div class="form-check">
|
||||
<input
|
||||
type="radio"
|
||||
class="form-check-input"
|
||||
bind:group={propiedad.iddivisa}
|
||||
value={0}
|
||||
id="moneda-ar"
|
||||
/>
|
||||
<label class="form-check-label" for="moneda-ar">AR$</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input
|
||||
type="radio"
|
||||
class="form-check-input"
|
||||
bind:group={propiedad.iddivisa}
|
||||
value={1}
|
||||
id="moneda-us"
|
||||
/>
|
||||
<label class="form-check-label" for="moneda-us">US$</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-floating mb-3">
|
||||
<select
|
||||
id="idtipropiedad"
|
||||
|
||||
Reference in New Issue
Block a user