primer commit

This commit is contained in:
2024-08-30 03:19:36 -03:00
commit 2ce2a3ce01
81 changed files with 74938 additions and 0 deletions

12
Views/Home/Index.cshtml Normal file
View File

@@ -0,0 +1,12 @@
@{
ViewData["Title"] = "Menu Principal";
}
<div class="text-center">
<h1><u>@ViewData["Title"]</u></h1>
<h3>Crud</h3>
<ul>
<a href="/Home/Inquilino">Inquilino</a>
</ul>
</div>

View File

@@ -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>

View File

@@ -0,0 +1,6 @@
@{
ViewData["Title"] = "Info";
}
<h1>@ViewData["Title"]</h1>
<p>Este es un sistema hecho por Federico Polidoro Para las materias de Ing en sistemas y Trabajo de diploma.</p>