primer commit
This commit is contained in:
12
Views/Home/Index.cshtml
Normal file
12
Views/Home/Index.cshtml
Normal 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>
|
||||
52
Views/Home/Inquilino.cshtml
Normal file
52
Views/Home/Inquilino.cshtml
Normal 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>
|
||||
6
Views/Home/Privacy.cshtml
Normal file
6
Views/Home/Privacy.cshtml
Normal 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>
|
||||
Reference in New Issue
Block a user