login funcional
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
</h3>
|
||||
<div id="collapseOne" class="accordion-collapse collapse show" data-bs-parent="#accordionExample">
|
||||
<div class="accordion-body">
|
||||
<a href="/Home/Inquilino">Inquilinos</a>
|
||||
<a href="/Inquilino">Inquilinos</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<h3>Alta Inquilino</h3>
|
||||
<form hx-post="/api/inquilino" hx-swap="outerHTML" hx-target="#addInquilino" hx-on="htmx:afterRequest: hx-get='/api/inquilino' hx-target='#inquilino-data' hx-swap='innerHTML'">
|
||||
<form method="post" action="/api/inquilino ">
|
||||
<label for="Dni">Dni:</label><br>
|
||||
<input type="number" id="Dni" name="Dni" min="1" step="1" required>
|
||||
<br>
|
||||
@@ -4,6 +4,7 @@
|
||||
@{
|
||||
Layout = "_Layout";
|
||||
}
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
@@ -25,7 +26,7 @@
|
||||
|
||||
<div class="btn-group" role="group" aria-label="Basic outlined example">
|
||||
<button type="button" class="btn btn-primary" data-bs-toggle="tooltip" data-bs-title="Añadir Inquilino"
|
||||
hx-get="/Home/InquilinoForm/0" hx-target="#addInquilino" hx-swap="innerHTML" >
|
||||
hx-get="/Inquilino/FormAdd/" hx-target="#addInquilino" hx-swap="innerHTML" >
|
||||
Añadir
|
||||
</button>
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
@model Entidades.Dto.LoginDto;
|
||||
|
||||
<div class="alert alert-danger" role="alert">
|
||||
"@Model.Usuario"
|
||||
</div>
|
||||
@@ -0,0 +1,27 @@
|
||||
@{
|
||||
ViewData["Title"] = "Login";
|
||||
}
|
||||
@{
|
||||
Layout = "_basicLayout";
|
||||
}
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/css/_Login.css">
|
||||
<div id="logincard" class="card centered">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Ingresar al Sistema </h5>
|
||||
<form hx-post="/api/login" hx-target="#responce" hx-swap="innerHTML">
|
||||
<label for="Usuario">Usuario</label><br>
|
||||
<input type="text" id="Usuario" name="Usuario" required>
|
||||
<br>
|
||||
|
||||
<label for="Contrasena">Contraseña</label><br>
|
||||
<input type="password" id="Contrasena" name="Contrasena" required>
|
||||
<br>
|
||||
<button type="submit">Ingresar</button>
|
||||
</form>
|
||||
<br>
|
||||
|
||||
<div id="responce"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<script src="https://unpkg.com/htmx.org@2.0.2"></script>
|
||||
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
|
||||
<link rel="stylesheet" href="~/AlquilaFacil.styles.css" asp-append-version="true" />
|
||||
</head>
|
||||
<body class="bg-dark-subtle">
|
||||
@RenderBody()
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user