56 lines
1.4 KiB
Plaintext
56 lines
1.4 KiB
Plaintext
@{
|
|
ViewData["Title"] = "Crud Inquilino";
|
|
}
|
|
@{
|
|
Layout = "_Layout";
|
|
}
|
|
|
|
<h3>Inquilinos</h3>
|
|
<table border="1">
|
|
<thead>
|
|
<tr>
|
|
<th>Dni</th>
|
|
<th>Nombre</th>
|
|
<th>Apellido</th>
|
|
<th>Dirección</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="inquilino-data" hx-get="/api/inquilino" hx-trigger="load" hx-swap="innerHTML">
|
|
<!-- Los datos serán cargados aquí -->
|
|
</tbody>
|
|
</table>
|
|
|
|
<h3>Dar de alta</h3>
|
|
<form hx-post="/api/inquilino" hx-target="#responce" hx-swap="innerHTML">
|
|
<label for="Dni">Dni:</label>
|
|
<input type="text" id="Dni" name="Dni" required>
|
|
<br>
|
|
|
|
<label for="Cuil">Cuil:</label>
|
|
<input type="text" id="Cuil" name="Cuil" required>
|
|
<br>
|
|
|
|
<label for="nombre">Nombre:</label>
|
|
<input type="text" id="nombre" name="nombre" required>
|
|
<br>
|
|
|
|
<label for="apellido">Apellido:</label>
|
|
<input type="text" id="Apellido" name="apellido" required>
|
|
<br>
|
|
|
|
<label for="Domicilio">Domicilio:</label>
|
|
<input type="text" id="Domicilio" name="Domicilio" required>
|
|
<br>
|
|
|
|
<label for="Email">Email:</label>
|
|
<input type="text" id="Email" name="Email" required>
|
|
<br>
|
|
|
|
<span id="responce"></span>
|
|
|
|
<button
|
|
type="submit">Agregar Inquilino</button>
|
|
</form>
|
|
|
|
|
|
</button> |