/NewDefinition page
This commit is contained in:
parent
2d56c3761d
commit
aea41069fb
@ -11,7 +11,7 @@
|
|||||||
Jerguero
|
Jerguero
|
||||||
</div>
|
</div>
|
||||||
<div class="text-center p-2">
|
<div class="text-center p-2">
|
||||||
<a class="py-1 px-2 rounded bg-c-primary text-c-on-primary hover:underline" href="/new">
|
<a href="/NewDefinition" class="py-1 px-2 rounded bg-c-primary text-c-on-primary hover:underline">
|
||||||
Agregá una nueva definición
|
Agregá una nueva definición
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
51
Pages/NewDefinition.cshtml
Normal file
51
Pages/NewDefinition.cshtml
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
@page
|
||||||
|
@model JergueroCS.Pages.NewDefinitionModel
|
||||||
|
@{
|
||||||
|
}
|
||||||
|
|
||||||
|
<h1 class="text-3xl font-bold text-center my-4 fixed top-0 w-screen">
|
||||||
|
Jerguero
|
||||||
|
</h1>
|
||||||
|
<div class="flex items-center h-screen w-full">
|
||||||
|
<div class="container mx-auto" "hx-ext"="response-targets">
|
||||||
|
<p class="my-4 p-2 rounded bg-c-bg-2 text-c-on-bg">
|
||||||
|
¡Iniciá sesión para comenzar a crear definiciones!
|
||||||
|
</p>
|
||||||
|
<form
|
||||||
|
class="my-4 py-4 px-2 rounded bg-c-bg-2 text-c-on-bg"
|
||||||
|
hx-post="/login"
|
||||||
|
hx-swap="innerHTML"
|
||||||
|
hx-target="#login-result"
|
||||||
|
hx-target-error="#login-result-error"
|
||||||
|
>
|
||||||
|
<input hidden name="login_redirect" value=(redirect_url) />
|
||||||
|
|
||||||
|
<div class="py-2">
|
||||||
|
<label class="text-sm opacity-85" for="login-email">Correo electronico:</label>
|
||||||
|
<br />
|
||||||
|
<input class="inline-block w-full rounded bg-c-bg text-c-on-bg py-2 px-1
|
||||||
|
disabled:cursor-not-allowed disabled:opacity-50 transition-opacity" id="login-email"
|
||||||
|
name="login_email" type="email" required data-loading-disable="true" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="py-2">
|
||||||
|
<label class="text-sm opacity-85" for="login-password">Contraseña:</label>
|
||||||
|
<br />
|
||||||
|
<input class="inline-block w-full rounded bg-c-bg text-c-on-bg py-2 px-1
|
||||||
|
disabled:cursor-not-allowed disabled:opacity-50 transition-opacity" id="login-password"
|
||||||
|
name="login_password" type="password" min="8" max="64" required data-loading-disable="true" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="text-center pt-2">
|
||||||
|
<button type="submit" class="py-1 px-2 rounded bg-c-primary text-c-on-primary hover:underline
|
||||||
|
disabled:cursor-not-allowed disabled:animate-pulse" data-loading-disable>
|
||||||
|
Iniciar sesión
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="login-result" class="text-center pt-2"></div>
|
||||||
|
<div id="login-result-error" class="text-center pt-2 text-red-400"></div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
13
Pages/NewDefinition.cshtml.cs
Normal file
13
Pages/NewDefinition.cshtml.cs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
|
||||||
|
namespace JergueroCS.Pages
|
||||||
|
{
|
||||||
|
public class NewDefinitionModel : PageModel
|
||||||
|
{
|
||||||
|
public void OnGet()
|
||||||
|
{
|
||||||
|
System.Console.WriteLine(":D");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,8 +0,0 @@
|
|||||||
@page
|
|
||||||
@model PrivacyModel
|
|
||||||
@{
|
|
||||||
ViewData["Title"] = "Privacy Policy";
|
|
||||||
}
|
|
||||||
<h1>@ViewData["Title"]</h1>
|
|
||||||
|
|
||||||
<p>Use this page to detail your site's privacy policy.</p>
|
|
@ -1,19 +0,0 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
|
||||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
|
||||||
|
|
||||||
namespace csharp.Pages;
|
|
||||||
|
|
||||||
public class PrivacyModel : PageModel
|
|
||||||
{
|
|
||||||
private readonly ILogger<PrivacyModel> _logger;
|
|
||||||
|
|
||||||
public PrivacyModel(ILogger<PrivacyModel> logger)
|
|
||||||
{
|
|
||||||
_logger = logger;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void OnGet()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user