Update nach BlazorApp Berufe
This commit is contained in:
1 parent
a437ae0be4
commit
93e3957702
4853 files changed
+9820723
-2369
No files matched your search
@@ -0,0 +1,5 @@
|
||||
@{
|
||||
ViewData["Title"] = "Error";
|
||||
}
|
||||
|
||||
<ejs-menu id="menu" items="ViewBag.menuItems"></ejs-menu>
|
||||
@@ -0,0 +1,5 @@
|
||||
@{
|
||||
ViewData["Title"] = "Error";
|
||||
}
|
||||
|
||||
Ich bin der User-Status
|
||||
@@ -0,0 +1,25 @@
|
||||
@model 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>
|
||||
@@ -0,0 +1,135 @@
|
||||
@using Syncfusion.EJ2;
|
||||
@using Microsoft.AspNetCore.Http;
|
||||
@inject IHttpContextAccessor HttpContextAccessor
|
||||
@model APP.Models.LoginModel
|
||||
@{
|
||||
var defaultanimation = new Syncfusion.EJ2.Popups.DialogAnimationSettings { Effect = Syncfusion.EJ2.Popups.DialogEffect.Zoom };
|
||||
}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>@ViewData["Title"] - sf1</title>
|
||||
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="~/css/site.css" />
|
||||
<link rel="stylesheet" href="~/css/ej2/bootstrap.css" />
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
|
||||
|
||||
<script src="~/js/ej2/ej2.min.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<nav class="navbar navbar-dark navbar-expand-lg fixed-top bg-white portfolio-navbar gradient">
|
||||
<div class="container">
|
||||
<a class="navbar-brand logo" href="#">BWPM</a><button data-bs-toggle="collapse" class="navbar-toggler" data-bs-target="#navbarNav"><span class="visually-hidden">Toggle navigation</span><span class="navbar-toggler-icon"></span></button>
|
||||
<div class="collapse navbar-collapse" id="navbarNav">
|
||||
@(await Component.InvokeAsync("MenuItems"))
|
||||
@*<ul class="navbar-nav ms-auto">
|
||||
<li class="nav-item"><a class="nav-link active" href="index.html">Home</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="projects-grid-cards.html">Projects</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="cv.html">CV</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="hire-me.html">Hire me</a></li>
|
||||
</ul>*@
|
||||
</div>
|
||||
</div>
|
||||
<button id="btnclick" type="button">Login</button>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
</header>
|
||||
<style>
|
||||
.popup {
|
||||
position: absolute;
|
||||
margin: auto;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 500px;
|
||||
height: 400px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@if (HttpContextAccessor.HttpContext.Session.GetString("ShowLogin") == "True")
|
||||
{
|
||||
@:<div id="mycontainer" class="popup" style="display:block">
|
||||
HttpContextAccessor.HttpContext.Session.SetString("ShowLogin", "False");
|
||||
}
|
||||
else
|
||||
{
|
||||
@:<div id="mycontainer" class="popup" style="display:none">
|
||||
};
|
||||
}
|
||||
@*//<div id="mycontainer" class="popup" style="display:none">*@
|
||||
<ejs-dialog id="default_dialog" width="500px" target="#mycontainer" showCloseIcon="true" header="Berufwahl-Parcours-Manager Login">
|
||||
<e-content-template>
|
||||
<form method="post" action="/Login/login">
|
||||
<div class="col-12 form-item">
|
||||
<input class="e-input" placeholder="UserName" name="UserName">
|
||||
</div>
|
||||
<div class="col-12 form-item">
|
||||
<div class="e-input-group">
|
||||
<input class="e-input" placeholder="Password" type="password" name="password">
|
||||
</div>
|
||||
</div>
|
||||
<div style="text-align: center">
|
||||
<button class="e-btn" type="submit"> Login </button>
|
||||
</div>
|
||||
</form>
|
||||
</e-content-template>
|
||||
</ejs-dialog>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
window.onload = function () {
|
||||
document.getElementById('btnclick').onclick = function () {
|
||||
var cont = document.getElementById("mycontainer");
|
||||
cont.style.display = "block";
|
||||
var dialog = document.getElementById("default_dialog").ej2_instances[0];
|
||||
dialog.show();
|
||||
}
|
||||
}
|
||||
document.getElementById('sendButton').onclick = function (e) {
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$('form').submit(function (e) {
|
||||
e.preventDefault();
|
||||
$.post(this.action, $(this).serialize(), function (response) {
|
||||
if (response.error) {
|
||||
alert(response.error);
|
||||
}
|
||||
else {
|
||||
var dialog = document.getElementById("default_dialog").ej2_instances[0];
|
||||
dialog.hide();
|
||||
window.location.href = "/Home";
|
||||
}
|
||||
}, 'json');
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<div class="container">
|
||||
<main role="main" class="pb-3">
|
||||
@RenderBody()
|
||||
</main>
|
||||
</div>
|
||||
|
||||
|
||||
<footer class="border-top footer text-muted">
|
||||
<div class="container">
|
||||
© @DateTime.Now.Year - sf1 - <a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
||||
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="~/js/site.js" asp-append-version="true"></script>
|
||||
<ejs-scripts></ejs-scripts>
|
||||
@RenderSection("Scripts", required: false)
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,15 @@
|
||||
@{
|
||||
|
||||
string funktion = "";
|
||||
string ut = "";
|
||||
if (ut == "")
|
||||
{
|
||||
@:Login
|
||||
}
|
||||
else
|
||||
{
|
||||
@:Logout
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
<script src="~/lib/jquery-validation/dist/jquery.validate.min.js"></script>
|
||||
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script>
|
||||
Reference in new issue
Block a user