primer commit
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
@{
|
||||
ViewData["Title"] = "Crud Inquilino";
|
||||
}
|
||||
<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>
|
||||
Reference in New Issue
Block a user