a ver si no me olcideo de commitear otra vez
This commit is contained in:
@@ -20,37 +20,7 @@
|
||||
</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>
|
||||
<button hx-get="/Home/InquilinoForm/0" hx-target="#addInquilino" hx-swap="innerHTML">Añadir Inquilino</button>
|
||||
|
||||
<label for="nombre">Nombre:</label>
|
||||
<input type="text" id="nombre" name="nombre" required>
|
||||
<br>
|
||||
<div id="addInquilino"></div>
|
||||
|
||||
<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>
|
||||
@@ -0,0 +1,36 @@
|
||||
<form hx-post="/api/inquilino" hx-swap="outerHTML" hx-on="htmx:afterRequest: hx-get='/api/inquilino' hx-target='#inquilino-data' hx-swap='innerHTML'">
|
||||
<label for="Dni">Dni:</label><br>
|
||||
<input type="number" id="Dni" name="Dni" min="1" step="1" required>
|
||||
<br>
|
||||
|
||||
<label for="Cuil">Cuil:</label><br>
|
||||
<input type="number" id="Cuil" name="Cuil" min="1" step="1" required>
|
||||
<br>
|
||||
|
||||
<label for="nombre">Nombre:</label><br>
|
||||
<input type="text" id="nombre" name="nombre" required>
|
||||
<br>
|
||||
|
||||
<label for="apellido">Apellido:</label><br>
|
||||
<input type="text" id="Apellido" name="apellido" required>
|
||||
<br>
|
||||
|
||||
<label for="Domicilio">Domicilio:</label><br>
|
||||
<input type="text" id="Domicilio" name="Domicilio" required>
|
||||
<br>
|
||||
|
||||
<label for="Email">Email:</label><br>
|
||||
<input type="email" id="Email" name="Email" required>
|
||||
<br>
|
||||
|
||||
<label for="Contraseña">Contraseña:</label><br>
|
||||
<input type="text" id="Contraseña" name="Contraseña" required>
|
||||
<br>
|
||||
|
||||
<label for="Celular">Celular:</label><br>
|
||||
<input type="tel" id="Celular" name="Celular" required>
|
||||
<br>
|
||||
|
||||
<button
|
||||
type="submit">Agregar Inquilino</button>
|
||||
</form>
|
||||
@@ -1,25 +0,0 @@
|
||||
@model Modelo.ErrorViewModel
|
||||
@{
|
||||
ViewData["Title"] = "Error";
|
||||
}
|
||||
|
||||
<h1 class="text-danger">Error.</h1>
|
||||
<h2 class="text-danger">An error occurred while processing your request.</h2>
|
||||
|
||||
@if (Model.ShowRequestId)
|
||||
{
|
||||
<p>
|
||||
<strong>Request ID:</strong> <code>@Model.RequestId</code>
|
||||
</p>
|
||||
}
|
||||
|
||||
<h3>Development Mode</h3>
|
||||
<p>
|
||||
Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred.
|
||||
</p>
|
||||
<p>
|
||||
<strong>The Development environment shouldn't be enabled for deployed applications.</strong>
|
||||
It can result in displaying sensitive information from exceptions to end users.
|
||||
For local debugging, enable the <strong>Development</strong> environment by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>
|
||||
and restarting the app.
|
||||
</p>
|
||||
@@ -1,3 +1,2 @@
|
||||
@using AlquilaFacil
|
||||
@using Modelo
|
||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
|
||||
Reference in New Issue
Block a user